Difference between revisions of "MediaWiki:Common.js"

From UMaine SECS Numerical Modeling Laboratory
Jump to: navigation, search
 
(22 intermediate revisions by the same user not shown)
Line 2: Line 2:
  
 
$(function () {
 
$(function () {
 +
  var myElement = document.getElementById('displayText');
 +
  myElement.innerHTML = 'any HTML';
 +
}());
  
  var myElement = document.getElementById('dropdown');
+
mw.loader.load( '/w/index.php?title=MediaWiki:Md5.js&action=raw&ctype=text/javascript' );
  myElement.innerHTML = '
 
<form action="/action_page.php">
 
  <input list="browsers">
 
  <datalist id="browsers">
 
    <option value="Internet Explorer">
 
    <option value="Firefox">
 
    <option value="Chrome">
 
    <option value="Opera">
 
    <option value="Safari">
 
  </datalist>
 
</form>';
 
 
 
}());
 

Latest revision as of 01:31, 21 February 2019

/* Any JavaScript here will be loaded for all users on every page load. */

$(function () {
  var myElement = document.getElementById('displayText');
  myElement.innerHTML = 'any HTML';
}());

mw.loader.load( '/w/index.php?title=MediaWiki:Md5.js&action=raw&ctype=text/javascript' );