I'm using jQuery Backstrech plugin to implement full size background images to a responsive website.
I want the jquery code to run ONLY for handheld devices, or only for viewports smaller than 480 px... can it be done?
Here's the code i'm using to implement the script & background image:
jQuery.noConflict(); jQuery(document).ready(function(){ jQuery.backstretch("www.url.com/images/bg.jpg", {speed: 150}); }); How could i add some sort of jQuery conditional to make this code execute for clients with with of 480 pixels or less?
thanks in advance for any help!