Difference between revisions of "MediaWiki:Common.js"
(Created page with "→Any JavaScript here will be loaded for all users on every page load.: function daysInYear(year) { if(year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0))...") |
(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) |
||
Line 1: | Line 1: | ||
/* Any JavaScript here will be loaded for all users on every page load. */ | /* Any JavaScript here will be loaded for all users on every page load. */ | ||
− | + | $(function () { | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | var myElement = document.getElementById('jsexample'); | |
− | var | + | myElement.innerHTML = 'any HTML'; |
− | |||
− | |||
− | |||
− | + | }()); | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Revision as of 16:30, 3 September 2018
/* Any JavaScript here will be loaded for all users on every page load. */ $(function () { var myElement = document.getElementById('jsexample'); myElement.innerHTML = 'any HTML'; }());