Difference between revisions of "MediaWiki:Common.js"

From Sinden Lightgun
Jump to navigation Jump to search
Line 3: Line 3:
 
  var ul = document.querySelector("#p-namespaces ul");//finding the list
 
  var ul = document.querySelector("#p-namespaces ul");//finding the list
 
     var newLi = document.createElement("li");// creating a list item
 
     var newLi = document.createElement("li");// creating a list item
     newLi.innerHTML = '<span class="shop-text"><a href="https://www.sindenshop.com/" title="Sinden Shop">Sinden Shop</a></span>';
+
     newLi.innerHTML = '<span style="color:red"><a href="https://www.sindenshop.com/" title="Sinden Shop">Sinden Shop</a></span>';
 
   
 
   
 
     ul.appendChild(newLi);//adding list item to list
 
     ul.appendChild(newLi);//adding list item to list

Revision as of 13:47, 9 December 2022

/* Any JavaScript here will be loaded for all users on every page load. */

 var ul = document.querySelector("#p-namespaces ul");//finding the list
     var newLi = document.createElement("li");// creating a list item
     newLi.innerHTML = '<span style="color:red"><a href="https://www.sindenshop.com/" title="Sinden Shop">Sinden Shop</a></span>';
 
     ul.appendChild(newLi);//adding list item to list