Cannot ad jQuery to a single page
-
Tried this jQuery on a single page, but I cannot update the page.
Replacing $ with jQuery didn’t work. Any ideas?$(function(){
var container = $(‘#floating-container’);
var minTop = $(‘header’).outerHeight();
var maxTop = $(‘footer’).offset().top – container.outerHeight();$(document).scroll(function() {
container.css(‘top’, Math.min( Math.max(minTop, $(document).scrollTop()), maxTop ));
});
});
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Cannot ad jQuery to a single page’ is closed to new replies.