Difference between revisions of "MediaWiki:Vector.js"

From Yo-Kai Watch Wiki
Jump to: navigation, search
(Created page with "Any JavaScript here will be loaded for users using the Vector skin: sticky skyscrapper banner: $(window).scroll(function() { if ($(window).scrollTop()>1200){ /...")
 
(No difference)

Latest revision as of 11:41, 12 August 2017

/* Any JavaScript here will be loaded for users using the Vector skin */
 
/*sticky skyscrapper banner*/
$(window).scroll(function() {
  if ($(window).scrollTop()>1200){
     //alert($(document).scrollTop());
     $('.portal ins.adsbygoogle').css("position", "fixed");  
     $('.portal ins.adsbygoogle').css("top", "10px");  
   } 
   else {
     $('.portal ins.adsbygoogle').css("position", "static");  
     $('.portal ins.adsbygoogle').css("top", "auto");  
   }
});