MediaWiki:Common.js: Difference between revisions
no edit summary
FloofyPlasma (talk | contribs) No edit summary Tag: Reverted |
FloofyPlasma (talk | contribs) No edit summary Tag: Reverted |
||
Line 44: | Line 44: | ||
$(document).ready(function() { | $(document).ready(function() { | ||
function setResponsiveWidths() { | function setResponsiveWidths() { | ||
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 |