Jump to content

Recommended Posts

Posted

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
  });
 }
});
Posted

Javascript shouldn't work differently in Processwire. Check if you are including jQuery or if you have the #slider element on your template.

Posted

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

  • Like 1

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...