Svet Posted April 23, 2012 Share Posted April 23, 2012 I just cant understand why this does not work in processwire... It works great on local computer $(function () { if ($(window).innerWidth() < 600) { $('#slider').anythingSlider({ expand : false, showMultiple : false, changeBy : 1 }); } else { $('#slider').anythingSlider({ expand : true, showMultiple : 2, changeBy : 1 }); } }); Link to comment Share on other sites More sharing options...
diogo Posted April 23, 2012 Share Posted April 23, 2012 Javascript shouldn't work differently in Processwire. Check if you are including jQuery or if you have the #slider element on your template. Link to comment Share on other sites More sharing options...
Svet Posted April 23, 2012 Author Share Posted April 23, 2012 Of coarse... I must of been over tired last night... After replacing default jquery-1.4.2.min.js with jquery.min.js it works fine! Wonder if all those versions of jQuery are different somehow. Well, the site is on its way of being all sizes of screen friendly! http://www.sebagokayakcompany.com 1 Link to comment Share on other sites More sharing options...
diogo Posted April 23, 2012 Share Posted April 23, 2012 Glad it worked Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now