This is a test of print-pro-matic using wp_localize to pass js vars to the js file. it also passes print-only elements.
Like this one with the .printonly class listed in the shortcode
And here is the shortcode:
Actually, this should not be passed via shortcode, but rather only defined in the option page.
This is just a simple test where we pass some pause_time and a special target
[print-me target=".print_this" do_not_print=".printomat" pause_before_print="4000"/]
Q: Can this work on mouseover or hover?
A: This is a question we get quite often. The plugin does not work with hover. We have created custom versions for clients in the past that does this, however you really need to think through how you will deal with touch devices that do not have a ‘hover’ state.
Also, when you hover over and item, how will your user close it? On mouse HoverOut is the easy answer, but then the user can never select or click on anything in the target area.
In short, it can be done but it’s a complex interaction that needs to be well planned out.
Here is an example of a plugin we custom built for a client.