User

Difference between revisions of "WikiLucas00/bluell.js"

< User:WikiLucas00

m
m
 
(19 intermediate revisions by the same user not shown)
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() {
+
if (mw.config.get('wgPageName') !== 'Special:RecordWizard') {
if(mw.config.get( 'wgPageName' ) !== 'Special:RecordWizard') {
+
$( '#contentHeading, #bodyContent, footer').addClass('customClass');
return;
+
}
}
+
if ((mw.config.get('wgPageName').endsWith(".js") || mw.config.get('wgPageName').endsWith(".css")) && ["edit", "submit"].includes(mw.config.get('wgAction'))) {
window.onbeforeunload = function() {
+
$('ace_text-layer *', 'ace_line', 'ace_string').css("font-family", "unset");
  return "Are you sure you want to leave? All your unsaved work will be lost.";
+
}
};
 
});
 
$( function() {
 
if (RLCONF["wgCodeEditorCurrentLanguage"]) {
 
$("*").css({ 'font-family' : ''});
 
} else {
 
return;
 
}
 
});
 

Latest revision as of 17:43, 23 March 2024

$( '.queryviz-loading' ).html( '<center><img src="https://upload.wikimedia.org/wikipedia/commons/7/7a/Balls.gif" width="50" /></center>' );
if (mw.config.get('wgPageName') !== 'Special:RecordWizard') {
	$( '#contentHeading, #bodyContent, footer').addClass('customClass');
}
if ((mw.config.get('wgPageName').endsWith(".js") || mw.config.get('wgPageName').endsWith(".css")) && ["edit", "submit"].includes(mw.config.get('wgAction'))) {
	$('ace_text-layer *', 'ace_line', 'ace_string').css("font-family", "unset");
}