MediaWiki:Common.js/search.js: Difference between revisions

m
http->https
(test 4)
m (http->https)
 
(11 intermediate revisions by the same user not shown)
Line 13: Line 13:
         return opt;
         return opt;
     }
     }
     var toptable = document.getElementById('contentSub');
     var topline = document.getElementById('contentSub');
     toptable.innerText = 'This is a test\n';
     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', 'http://www.google.com/search', 'q', 'sitesearch', 'wiki.oni2.net'));
     selectBox.appendChild(createOption('Google', 'https://www.google.com/search', 'q', 'sitesearch', 'wiki.oni2.net'));
     selectBox.appendChild(createOption('Yahoo!', 'http://search.yahoo.com/search', 'p', 'vs', 'wiki.oni2.net'));
     selectBox.appendChild(createOption('Yahoo!', 'https://search.yahoo.com/search', 'p', 'vs', 'wiki.oni2.net'));
     selectBox.appendChild(createOption('Bing', 'http://www.bing.com/search', 'q', 'q1', 'site:http://wiki.oni2.net'));
     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 = [];


addOnloadHook(SpecialSearchEnhanced);
$(SpecialSearchEnhanced);