User
Difference between revisions of "WikiLucas00/bluell.js"
< User:WikiLucas00
WikiLucas00 (talk | contribs) m (test) |
WikiLucas00 (talk | contribs) m (test) |
||
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 warningleave() { | function warningleave() { | ||
− | if(mw.config.get( 'wgPageName' ) !== ' | + | if(mw.config.get( 'wgPageName' ) !== 'Special:RecordWizard') { |
return; | return; | ||
} | } |
Revision as of 09:50, 23 September 2021
$( '.queryviz-loading' ).html( '<center><img src="https://upload.wikimedia.org/wikipedia/commons/7/7a/Balls.gif" width="50" /></center>' );
function warningleave() {
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.";
}
}