Anonymous
Not logged in
Talk
Contributions
Create account
Log in
Life After BOB Wiki
Search
Changes
From Life After BOB Wiki
Namespaces
Message
Discussion
More
More
Languages
Page actions
Read
View source
History
← Older edit
Newer edit →
MediaWiki:Common.js
(view source)
Revision as of 09:14, 9 June 2021
24 bytes added
,
09:14, 9 June 2021
no edit summary
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 getRandom(){
+
mw.loader.using( 'mediawiki.api', function () {
mw.loader.using( 'mediawiki.api', function () {
var params = {
var params = {
Line 17:
Line 17:
console.log( randoms[ r ].title );
console.log( randoms[ r ].title );
}
}
+
+
$('#randompage).append("[["+random[1]+"]]");
} );
} );
} )
} )
−
−
}
Xu6ing
Interface administrators
,
Administrators
526
edits
Navigation
Navigation
Main page
Recent changes
Random page
Random Character
Random Object
About Ian
Wiki tools
Wiki tools
Special pages
Page tools
Page tools
Userpage tools
More
Printable version