Difference between revisions of "MediaWiki:Common.js"
Jump to navigation
Jump to search
Line 13: | Line 13: | ||
var myElement = document.getElementById('canvasClass'); | var myElement = document.getElementById('canvasClass'); | ||
myElement.tag = 'Canvases'; | myElement.tag = 'Canvases'; | ||
myElement.outerHTML = 'Canvas'; | //myElement.outerHTML = 'Canvas'; | ||
myElement.innerHTML = 'Canvas Changed'; | myElement.innerHTML = '<canvas>Canvas Changed<canvas>'; | ||
}()); | }()); |
Revision as of 07:56, 6 January 2022
/* Any JavaScript here will be loaded for all users on every page load. */
$(function () {
var myElement = document.getElementById('mw-mywiki-example-1');
myElement.innerHTML = 'any HTML-customized';
}());
$(function () {
$('#mw-mywiki-example').html('any HTML-The Second Function');
}());
$(function () {
var myElement = document.getElementById('canvasClass');
myElement.tag = 'Canvases';
//myElement.outerHTML = 'Canvas';
myElement.innerHTML = '<canvas>Canvas Changed<canvas>';
}());