User
Difference between revisions of "WikiLucas00/bluell.js"
< User:WikiLucas00
WikiLucas00 (talk | contribs) m |
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() { | ||
+ | if(mw.config.get( 'wgPageName' ) !== 'User:WikiLucas00') { | ||
+ | return; | ||
+ | } | ||
+ | window.onbeforeunload = function() { | ||
+ | return "Are you sure you want to leave? All your unsaved work will be lost."; | ||
+ | } | ||
+ | } |
Revision as of 09:48, 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' ) !== 'User:WikiLucas00') {
return;
}
window.onbeforeunload = function() {
return "Are you sure you want to leave? All your unsaved work will be lost.";
}
}