MediaWiki

Monobook.js: Difference between revisions

No edit summary
No edit summary
Line 1: Line 1:
/* Deprecated; use [[MediaWiki:common.js]] */
/* Deprecated; use [[MediaWiki:common.js]] */
<!-- Google CSE code begins -->
<script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=searchbox_014896513456545327470%3Aghkptjyj_oe&lang=en"></script>
<div id="results_014896513456545327470:ghkptjyj_oe" style="display:none">
  <div class="cse-closeResults">
    <a>&times; close</a>
  </div>
  <div class="cse-resultsContainer"></div>
</div>
<style type="text/css">
@import url(http://www.google.com/cse/api/overlay.css);
</style>
<script src="http://www.google.com/uds/api?file=uds.js&v=1.0&key=ABQIAAAAGhxzf3mpiGFlyOFS7mHU1BTFeMWyVtstbgjbWL_EUhziew2K9hRpi2gZwIQLGRz9H4Owh1CYA3O8vA&hl=en" type="text/javascript"></script>
<script src="http://www.google.com/cse/api/overlay.js"></script>
<script type="text/javascript">
function OnLoad() {
  new CSEOverlay("014896513456545327470:ghkptjyj_oe",
                document.getElementById("searchbox_014896513456545327470:ghkptjyj_oe"),
                document.getElementById("results_014896513456545327470:ghkptjyj_oe"));
}
GSearch.setOnLoadCallback(OnLoad);
</script>
<!-- Google CSE Code ends -->


// [[User:Henrik/sandbox/google-search]] (please include this line)
// [[User:Henrik/sandbox/google-search]] (please include this line)
Line 7: Line 34:
'<input type="text" name="q" size="40"/>' +  
'<input type="text" name="q" size="40"/>' +  
'<input type="submit" value="Search"/>' +  
'<input type="submit" value="Search"/>' +  
'</form>' +
'</form>';
'<script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=searchbox_014896513456545327470%3Aghkptjyj_oe&lang=en"></script>' +
'<div id="results_014896513456545327470:ghkptjyj_oe" style="display:none">' +
'<div class="cse-closeResults"> ' +
'<a>&times; close</a>' +
'</div>' +
'<div class="cse-resultsContainer"></div>' +
'</div>' +
'<style type="text/css">' +
'@import url(http://www.google.com/cse/api/overlay.css);' +
'</style>' +
'<script src="http://www.google.com/uds/api?file=uds.js&v=1.0&key=ABQIAAAAGhxzf3mpiGFlyOFS7mHU1BTFeMWyVtstbgjbWL_EUhziew2K9hRpi2gZwIQLGRz9H4Owh1CYA3O8vA&hl=en" type="text/javascript"></script>' +
'<script src="http://www.google.com/cse/api/overlay.js"></script>' +
'<script type="text/javascript">' +
'function OnLoad() {' +
'new CSEOverlay("014896513456545327470:ghkptjyj_oe",' +
'document.getElementById("searchbox_014896513456545327470:ghkptjyj_oe"),' +
'document.getElementById("results_014896513456545327470:ghkptjyj_oe"));' +
'}' +
'GSearch.setOnLoadCallback(OnLoad);' +
'</script>';
  }
  }
  addOnloadHook(install_search);
  addOnloadHook(install_search);

Revision as of 21:34, 14 March 2008

/* Deprecated; use [[MediaWiki:common.js]] */

<!-- Google CSE code begins -->
<script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=searchbox_014896513456545327470%3Aghkptjyj_oe&lang=en"></script>

<div id="results_014896513456545327470:ghkptjyj_oe" style="display:none">
  <div class="cse-closeResults"> 
    <a>&times; close</a>
  </div>
  <div class="cse-resultsContainer"></div>
</div>

<style type="text/css">
@import url(http://www.google.com/cse/api/overlay.css);
</style>

<script src="http://www.google.com/uds/api?file=uds.js&v=1.0&key=ABQIAAAAGhxzf3mpiGFlyOFS7mHU1BTFeMWyVtstbgjbWL_EUhziew2K9hRpi2gZwIQLGRz9H4Owh1CYA3O8vA&hl=en" type="text/javascript"></script>
<script src="http://www.google.com/cse/api/overlay.js"></script>
<script type="text/javascript">
function OnLoad() {
  new CSEOverlay("014896513456545327470:ghkptjyj_oe",
                 document.getElementById("searchbox_014896513456545327470:ghkptjyj_oe"),
                 document.getElementById("results_014896513456545327470:ghkptjyj_oe"));
}
GSearch.setOnLoadCallback(OnLoad);
</script>
<!-- Google CSE Code ends -->


// [[User:Henrik/sandbox/google-search]] (please include this line)
 function install_search()
 {
 document.getElementById('searchBody').innerHTML='<form id="searchbox_014896513456545327470:ghkptjyj_oe" onsubmit="return false;">' + 
'<input type="text" name="q" size="40"/>' + 
'<input type="submit" value="Search"/>' + 
'</form>';
 }
 addOnloadHook(install_search);