MediaWiki:Common.js: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 12: Line 12:
   }
   }
   var z = x.getElementsByClassName("mw-references-wrap");
   var z = x.getElementsByClassName("mw-references-wrap");
  var i;
   for (i = 0; i < z.length; i++) {
   for (i = 0; i < z.length; i++) {
     if (z[i].style.display === "none") {
     if (z[i].style.display === "none") {
Line 41: Line 40:
$(function searchText() {
$(function searchText() {
if (window.location.href.indexOf("Special:Search") != -1) {
if (window.location.href.indexOf("Special:Search") != -1) {
var e = document.getElementsById('h1')[0];
var x = document.getElementById("content");
var y = x.getElementsByClassName("tagline").innerHTML ='Custom text';
var d = document.createElement('div');
/* var i;
d.innerHTML = e.innterHTML;
for (i = 0; i < y.length; i++) {
document.getElementById('section_0').innerHTML = 'Search Test';
e.parentNode.replaceChild(d, e);
}*/
document.getElementById('section_0').innerHTML = 'Search Test';
}
}
}());
}());