MediaWiki:Common.js: Difference between revisions
From Lenn's Fun Stuff
No edit summary Tags: Mobile edit Mobile web edit |
No edit summary Tags: Mobile edit Mobile web edit |
||
| Line 1: | Line 1: | ||
/* | /* Universal KH Theme Loader */ | ||
$('head').append('<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css2?family=Cinzel:wght@700&family=Crimson+Pro:wght@400;700&display=swap">'); | (function() { | ||
// Load Fonts | |||
$('head').append('<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css2?family=Cinzel:wght@700&family=Crimson+Pro:wght@400;700&display=swap">'); | |||
$(document).ready(function() { | |||
$(document).ready(function() { | var currentSkin = mw.config.get('skin'); | ||
if (currentSkin === 'cosmos' || currentSkin === 'anisa') { | |||
console.log("KH Leaf Theme Active on: " + currentSkin); | |||
} | |||
}); | // Add skin-specific JS tweaks here if needed | ||
if (currentSkin === 'cosmos') { | |||
// Specific logic for Cosmos | |||
} | |||
} | |||
}); | |||
})(); | |||
Revision as of 01:27, 15 March 2026
/* Universal KH Theme Loader */
(function() {
// Load Fonts
$('head').append('<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css2?family=Cinzel:wght@700&family=Crimson+Pro:wght@400;700&display=swap">');
$(document).ready(function() {
var currentSkin = mw.config.get('skin');
if (currentSkin === 'cosmos' || currentSkin === 'anisa') {
console.log("KH Leaf Theme Active on: " + currentSkin);
// Add skin-specific JS tweaks here if needed
if (currentSkin === 'cosmos') {
// Specific logic for Cosmos
}
}
});
})();