Jump to content

MediaWiki:Common.js: Difference between revisions

From coloradoriverscience.org
No edit summary
No edit summary
 
Line 5: Line 5:
</script>
</script>


 
/*
$(function () {
$(function () {
var myElement = document.getElementById('mw-mywiki-example');
var myElement = document.getElementById('mw-mywiki-example');
myElement.innerHTML = 'any HTML right here is text for it...';
myElement.innerHTML = 'any HTML right here is text for it...';
}());
*/
$(function () {
$('#mw-mywiki-example').html('any HTML');
}());
}());

Latest revision as of 16:58, 11 February 2022

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

<script type="text/javascript">
   document.write('I wrote something!!!');
</script>

/*
$(function () {
	var myElement = document.getElementById('mw-mywiki-example');
	myElement.innerHTML = 'any HTML right here is text for it...';
}());

*/

$(function () {
	$('#mw-mywiki-example').html('any HTML');
}());