19,800
edits
(test 4) |
m (http->https) |
||
| (11 intermediate revisions by the same user not shown) | |||
| Line 13: | Line 13: | ||
return opt; | return opt; | ||
} | } | ||
var | var topline = document.getElementById('contentSub'); | ||
topline.style.color = "blue"; | |||
topline.innerText = "Not finding what you're looking for? Select Google from the dropdown menu below and try again."; | |||
if (document.forms['powersearch']) | if (document.forms['powersearch']) | ||
var searchForm = document.forms['powersearch']; | var searchForm = document.forms['powersearch']; | ||
| Line 34: | Line 35: | ||
searchForm.title.name = optSelected[2]; | searchForm.title.name = optSelected[2]; | ||
} | } | ||
selectBox.appendChild(createOption('MediaWiki Search', wgScriptPath + '/index.php', 'search', 'title', 'Special:Search')); | selectBox.appendChild(createOption('MediaWiki Search', mw.config.get('wgScriptPath') + '/index.php', 'search', 'title', 'Special:Search')); | ||
selectBox.appendChild(createOption('Google', ' | selectBox.appendChild(createOption('Google', 'https://www.google.com/search', 'q', 'sitesearch', 'wiki.oni2.net')); | ||
selectBox.appendChild(createOption('Yahoo!', ' | selectBox.appendChild(createOption('Yahoo!', 'https://search.yahoo.com/search', 'p', 'vs', 'wiki.oni2.net')); | ||
selectBox.appendChild(createOption('Bing', ' | selectBox.appendChild(createOption('Bing', 'https://www.bing.com/search', 'q', 'q1', 'site:https://wiki.oni2.net')); | ||
searchBox.style.marginLeft = '0px'; | searchBox.style.marginLeft = '0px'; | ||
if (document.getElementById('loadStatus')) { | if (document.getElementById('loadStatus')) { | ||
| Line 50: | Line 51: | ||
var searchEngines = []; | var searchEngines = []; | ||
$(SpecialSearchEnhanced); | |||