MediaWiki:Common.js: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 41: Line 41:
if (window.location.href.indexOf("Special:Search") != -1) {
if (window.location.href.indexOf("Special:Search") != -1) {
var x = document.getElementById("content");
var x = document.getElementById("content");
var y = x.getElementsByClassName("tagline").innerHTML ='Custom text';
var y = x.getElementsByClassName("tagline");
/* var i;
var i;
for (i = 0; i < y.length; i++) {
for (i = 0; i < y.length; i++) {
document.getElementById('section_0').innerHTML = 'Search Test';
y[i].innerHTML = 'Search Text';
}*/
}
}
}
}());
}());