MediaWiki:Common.js: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 39: Line 39:
//script per customizzare il testo in Special:Search
//script per customizzare il testo in Special:Search
$(function searchText() {
$(function searchText() {
if (window.location.href.indexOf("search") != -1) {
if (window.location.href.indexOf("search") != -1 || window.location.href.indexOf("Special:Search") != -1) {
var x = document.getElementById("content");
var x = document.getElementById("content");
var y = x.getElementsByClassName("tagline");
var y = x.getElementsByClassName("tagline");
var i;
var i;
for (i = 0; i < y.length; i++) {
for (i = 0; i < y.length; i++) {
y[i].innerHTML = 'Search Text';
y[i].innerHTML = '<ul><li>The search functionality can be considered to operate on <strong>whole words</strong>, separated by spaces or other punctuation marks.</li><li>The results will only include pages that contain <strong>all</strong> the words in your search.</li><li>You can search for a <strong>phrase</strong> using double quotes.</li></ul>';
}
}
}
}
}());
}());