Difference between revisions of "User:茵陈/vector.js"

From Moegirlpedia
Jump to: navigation, search
(Created page with "(function($, mw) { function showHide() { $("#mw-content-text div").each(function() { if ($(this).css("display") == "none") { $(this).css(...")
 
m
Line 1: Line 1:
 +
mw.loader.load('https://wikiplus-app.smartgslb.com/Main.min.js');
 +
 
(function($, mw) {  
 
(function($, mw) {  
 
     function showHide() {
 
     function showHide() {

Revision as of 10:26, 2 August 2017

mw.loader.load('https://wikiplus-app.smartgslb.com/Main.min.js');

(function($, mw) { 
    function showHide() {
    	$("#mw-content-text div").each(function() {
            if ($(this).css("display") == "none") {
                $(this).css({"display": "inline-block", "background": "rgba(255, 255, 0, .3)"});
            } else if ($(this).css("visibility") == "hidden") {
                $(this).css({"visibility": "visible", "background": "rgba(255, 255, 0, .3)"});
            }
        });
    }
    
    if ($("#editform").length === 0) showHide();
})(jQuery, mediaWiki);