2015-06-17, 10:33 AM
I am trying to put a jQuery conflict away between the code below and the buddy list popup but nothing seems to work. I know that this code is only causing the conflict because when I remove it, the buddy list pops up.
Here is the code:
Here is the code:
var srl = jQuery.noConflict();
srl(document).ready(function($){
var shrinkHeader = 300;
srl(window).scroll(function() {
var scroll = getCurrentScroll();
if ( scroll >= shrinkHeader ) {
srl('.header').addClass('shrink');
}
else {
srl('.header').removeClass('shrink');
}
});
function getCurrentScroll() {
return window.pageYOffset;
}
});