• Welcome to the Kancolle Wiki!
  • If you have any questions regarding site content, account registration, etc., please visit the KanColle Wiki Discord

Difference between revisions of "MediaWiki:Common.js"

From Kancolle Wiki
Jump to navigation Jump to search
m (version bump)
Line 28: Line 28:
 
         "MediaWiki:ClosedThreads.css"
 
         "MediaWiki:ClosedThreads.css"
 
     ]
 
     ]
 +
});
 +
 +
/* Sitenotice autoscroll */
 +
function AutoScroll(obj){ 
 +
        $(obj).find("ul:first").animate({ 
 +
                marginTop:"-25px" 
 +
        },500,function(){ 
 +
                $(this).css({marginTop:"0px"}).find("li:first").appendTo(this); 
 +
        });     
 +
}
 +
$(document).ready(function(){     
 +
setInterval('AutoScroll("#scrollDiv")',5000);     
 
});
 
});

Revision as of 09:01, 29 March 2015

console.log("KanColle Wiki Script 011");

// Show IP instead of "A wikia contributor"
window.RevealAnonIP = {
    permissions : ['user']
};

// Google+ JS
mw.loader.load('https://apis.google.com/js/platform.js');

// Import external scripts
importArticles({
    type: "script",
    articles: [
        "User:Dragonjet/scripts/sm2.js",
        "User:CDRW/js/Popups.js",
        "w:c:dev:BackToTopButton/code.js",
        "w:c:dev:RevealAnonIP/code.js",
        "w:c:dev:Countdown/code.js",
        "User:Dragonjet/scripts/SidebarBox.js",
        "User:Dragonjet/scripts/FleetReporting.js"
    ]
});

importArticles({
    type: "style",
    articles: [
        "MediaWiki:ClosedThreads.css"
    ]
});

/* Sitenotice autoscroll */
function AutoScroll(obj){   
        $(obj).find("ul:first").animate({   
                marginTop:"-25px"   
        },500,function(){   
                $(this).css({marginTop:"0px"}).find("li:first").appendTo(this);   
        });      
}
$(document).ready(function(){      
setInterval('AutoScroll("#scrollDiv")',5000);      
});