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
(Created page with "if (location.href.endsWith("#internalLink")) { for (var e of document.getElementsByClassName("gw-mainpage-notice")) { e.style.display = "block"; } }")
 
(fix)
Line 1: Line 1:
 
if (location.href.endsWith("#internalLink")) {
 
if (location.href.endsWith("#internalLink")) {
     for (var e of document.getElementsByClassName("gw-mainpage-notice")) {
+
     var elems = document.getElementsByClassName("gw-mainpage-article");
         e.style.display = "block";
+
    for (var i = 0; i < elems.length; i++) {
 +
         elems[i].style.display = "block";
 
     }
 
     }
 
}
 
}

Revision as of 01:31, 13 November 2021

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