Difference between revisions of "MediaWiki:Common.js"

From CJ-JT Wiki
Jump to navigation Jump to search
(Undo revision 29419 by CjjtAdmin (talk))
Tag: Undo
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. */
  
document.onload = function() {
+
$(document).ready( function () {
 +
    /*var opt = document.createElement('option');
 +
    opt.value = 1500;
 +
    opt.innerHTML = 'all';
 +
 
 +
    document.getElementsByName('DataTables_Table_0_length')[0].appendChild(opt);*/
 
     alert('Hello');
 
     alert('Hello');
};
+
} );

Revision as of 15:16, 24 April 2023

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

$(document).ready( function () {
    /*var opt = document.createElement('option');
    opt.value = 1500;
    opt.innerHTML = 'all';

    document.getElementsByName('DataTables_Table_0_length')[0].appendChild(opt);*/
    alert('Hello');
} );