Please sign in to edit, using the button at the upper right corner of the page.
If you would like your name changed, contact Mg27713.


Difference between revisions of "User:Mg27713/common.js"

From Gunn Wiki
Jump to navigation Jump to search
(fix)
(fix agai)
 
Line 1: Line 1:
 
if (location.href.endsWith("#internalLink")) {
 
if (location.href.endsWith("#internalLink")) {
     var elems = document.getElementsByClassName("gw-mainpage-article");
+
     var elems = document.getElementsByClassName("gw-mainpage-notice");
 
     for (var i = 0; i < elems.length; i++) {
 
     for (var i = 0; i < elems.length; i++) {
 
         elems[i].style.display = "block";
 
         elems[i].style.display = "block";
 
     }
 
     }
 
}
 
}

Latest revision as of 01:32, 13 November 2021

if (location.href.endsWith("#internalLink")) {
    var elems = document.getElementsByClassName("gw-mainpage-notice");
    for (var i = 0; i < elems.length; i++) {
        elems[i].style.display = "block";
    }
}