Anonymous

MediaWiki:Common.js: Difference between revisions

From The Blockheads Wiki
no edit summary
No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 44: Line 44:
$(document).ready(function() {
$(document).ready(function() {
     function setResponsiveWidths() {
     function setResponsiveWidths() {
        var element = $('infobox-template'); // Target the class you defined
    var element = document.getElementById("infobox-template");
         if (mobileCheck()) { // Mobile breakpoint
         if (mobileCheck()) { // Mobile breakpoint
             element.css('max-width', '100%'); // Set max width for mobile
             element.css('max-width', '100%'); // Set max width for mobile