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 17: | Line 17: | ||
}); | }); | ||
})(); | })(); | ||
/* Force Viewport Width for Mobile */ | |||
$('meta[name="viewport"]').attr('content', 'width=1200'); | |||
Revision as of 01:35, 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
}
}
});
})();
/* Force Viewport Width for Mobile */
$('meta[name="viewport"]').attr('content', 'width=1200');