Svet Posted April 23, 2012 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 }); } });
diogo Posted April 23, 2012 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.
Svet Posted April 23, 2012 Author 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
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