User
Difference between revisions of "WikiLucas00/bluell.js"
< User:WikiLucas00
WikiLucas00 (talk | contribs) m (test) |
WikiLucas00 (talk | contribs) m |
||
Line 1: | Line 1: | ||
$( '.queryviz-loading' ).html( '<center><img src="https://upload.wikimedia.org/wikipedia/commons/7/7a/Balls.gif" width="50" /></center>' ); | $( '.queryviz-loading' ).html( '<center><img src="https://upload.wikimedia.org/wikipedia/commons/7/7a/Balls.gif" width="50" /></center>' ); | ||
− | function | + | $( function() { |
if(mw.config.get( 'wgPageName' ) !== 'Special:RecordWizard') { | if(mw.config.get( 'wgPageName' ) !== 'Special:RecordWizard') { | ||
return; | return; | ||
Line 7: | Line 7: | ||
return "Are you sure you want to leave? All your unsaved work will be lost."; | return "Are you sure you want to leave? All your unsaved work will be lost."; | ||
} | } | ||
− | } | + | }); |
Revision as of 10:00, 23 September 2021
$( '.queryviz-loading' ).html( '<center><img src="https://upload.wikimedia.org/wikipedia/commons/7/7a/Balls.gif" width="50" /></center>' );
$( function() {
if(mw.config.get( 'wgPageName' ) !== 'Special:RecordWizard') {
return;
}
window.onbeforeunload = function() {
return "Are you sure you want to leave? All your unsaved work will be lost.";
}
});