Difference between revisions of "MediaWiki:Common.js"

From PathfinderWiki
Jump to: navigation, search
Line 3: Line 3:
  
 
   var myElement = document.getElementById('jsexample');
 
   var myElement = document.getElementById('jsexample');
   myElement.innerHTML = "Test
+
   myElement.innerHTML = "Test";
        <table>
 
<tr><td>Tag: </td><td><input type='text' id='day'></td> </tr>
 
<tr><td>Monat: </td><td><input type='text' id='month'></td> </tr>
 
<tr><td>Jahr: </td><td><input type='text' id='year'></td> </tr>
 
<tr><td>Stunde: </td><td><input type='text' id='hour'></td> </tr>
 
<tr><td>Minute: </td><td><input type='text' id='minute' onKeyUp='calculate()'> </td> <td> = <span id='stardate_out'></span></td></tr>
 
</table>";
 
  
 
}());
 
}());

Revision as of 15:33, 3 September 2018

/* Any JavaScript here will be loaded for all users on every page load. */
$(function () {

  var myElement = document.getElementById('jsexample');
  myElement.innerHTML = "Test";

}());