MediaWiki:Common.js: Difference between revisions
Replaced content with "→Any JavaScript here will be loaded for all users on every page load.: " Tag: Replaced |
No edit summary |
||
| Line 1: | Line 1: | ||
/* Any JavaScript here will be loaded for all users on every page load. */ | /* Any JavaScript here will be loaded for all users on every page load. */ | ||
var $iframe = $('iframe'), | |||
src = $iframe.data('src'); | |||
if (window.matchMedia("(min-width: 480px)").matches) { | |||
$iframe.attr('src', src); | |||
} | |||