From 97fa994536c278990e62e34458b6dc8e9779527f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Melan=C3=A7on?= Date: Sat, 31 Aug 2019 09:29:27 -0400 Subject: [PATCH] Wrap this thing in JQuery --- .../custom/geofresco/src/global/js/responsive-iframes.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/web/themes/custom/geofresco/src/global/js/responsive-iframes.js b/web/themes/custom/geofresco/src/global/js/responsive-iframes.js index 6443dca..7b27b84 100644 --- a/web/themes/custom/geofresco/src/global/js/responsive-iframes.js +++ b/web/themes/custom/geofresco/src/global/js/responsive-iframes.js @@ -4,6 +4,9 @@ // @TODO Or, best, write a text formatter that does the below and assigns the // appropriate class, for example .embed-responsive-4by3 +(function ($) { + 'use strict'; + // Find all iframes var $iframes = $( "iframe" ); @@ -25,3 +28,5 @@ $( window ).resize( function () { }); // Resize to fix all iframes on page load. }).resize(); + +})(jQuery);