MediaWiki:Common.js: Difference between revisions
Jump to navigation
Jump to search
Replaced content with "→Any JavaScript here will be loaded for all users on every page load.: $(function () { var myElement = document.getElementById('jsexample'); myElement.innerHTML =..." Tag: Replaced |
No edit summary |
||
| Line 3: | Line 3: | ||
var myElement = document.getElementById('jsexample'); | var myElement = document.getElementById('jsexample'); | ||
myElement.innerHTML = ' | myElement.innerHTML = ' | ||
<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:32, 3 September 2018
/* Any JavaScript here will be loaded for all users on every page load. */
$(function () {
var myElement = document.getElementById('jsexample');
myElement.innerHTML = '
<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>';
}());