diff --git a/assets/js/script.js b/assets/js/script.js index c5ab48c..13a52af 100644 --- a/assets/js/script.js +++ b/assets/js/script.js @@ -158,17 +158,14 @@ $(document).ready(function () { }); // Modal Popup - $(".popup-button").magnificPopup({ - type: "iframe", - iframe: { - patterns: { - youtube: { - index: "youtube.com/", - id: "v=", - src: "//www.youtube.com/embed/tgbNymZ7vqY", - }, - }, - }, + $('.popup-button').magnificPopup({ + disableOn: 700, + type: 'iframe', + mainClass: 'mfp-fade', + removalDelay: 160, + preloader: false, + + fixedContentPos: false }); $(".portfolio-item-grid").masonry({ diff --git a/exampleSite/data/hero.yml b/exampleSite/data/hero.yml index 75af4e9..42c5b70 100644 --- a/exampleSite/data/hero.yml +++ b/exampleSite/data/hero.yml @@ -10,4 +10,4 @@ buttonName: Contact me buttonURL: contact image: images/hero/2960351.jpg videoThumb: images/hero/popup-thumb.png -videoURL: https://www.youtube.com/embed/tgbNymZ7vqY +videoURL: https://www.youtube.com/watch?v=dQw4w9WgXcQ