MediaWiki:Zerospace EN.js
Jump to navigation
Jump to search
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Press Ctrl-F5.
// <nowiki>
$(function () {
var generateOutput = document.getElementById('generate_alien_output');
generateOutput.innerHTML = '<input type="button" id="generate_alien_button" value="GO 1" />' +
'<input type="button" value="GO 2" onclick="alert(\'I am an alert box!\');" />';
}());
(function ($) {
$('#generate_alien_button' ).on( 'click', function() {
$random_alien = '';
$dice_size = 6;
srand((double)microtime()*1000000);
$random_alien = rand(1, $dice_size);
return $random_alien;
} );
}( jQuery ) );
// </nowiki>