From 87a5e57f937061fddd81500061ba4da79d5ce96b Mon Sep 17 00:00:00 2001 From: "Aaron N. Brock" Date: Thu, 1 Oct 2020 21:37:28 -0400 Subject: [PATCH 1/4] readd the magnific-popup.css I removed --- layouts/partials/head.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 0da4431..7c840d1 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -12,6 +12,9 @@ {{ "" | safeHTML }} + {{ "" | safeHTML }} + + {{ "" | safeHTML }} {{ $style := resources.Get "scss/style.scss" | resources.ToCSS | minify }} From 5e41f8c7a2cff0b98fe99a95cdc4b6e7a79ad280 Mon Sep 17 00:00:00 2001 From: "Aaron N. Brock" Date: Thu, 1 Oct 2020 21:39:04 -0400 Subject: [PATCH 2/4] add html comment --- layouts/partials/head.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 7c840d1..67ec735 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -12,7 +12,7 @@ {{ "" | safeHTML }} - {{ "" | safeHTML }} + {{ "" | safeHTML }} {{ "" | safeHTML }} From a8cd30f1d617dae82926f89f1bfca4ab3e16ff7a Mon Sep 17 00:00:00 2001 From: "Aaron N. Brock" Date: Fri, 2 Oct 2020 18:54:48 -0400 Subject: [PATCH 3/4] fix issue 12 --- assets/js/script.js | 32 +++++++++++++++++++++----------- exampleSite/data/hero.yml | 2 +- 2 files changed, 22 insertions(+), 12 deletions(-) diff --git a/assets/js/script.js b/assets/js/script.js index c5ab48c..1ed7035 100644 --- a/assets/js/script.js +++ b/assets/js/script.js @@ -158,17 +158,27 @@ $(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({ + // 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 From 880cc5783a5c4e3aac921df9c87a30c318baebe6 Mon Sep 17 00:00:00 2001 From: "Aaron N. Brock" Date: Fri, 2 Oct 2020 18:55:14 -0400 Subject: [PATCH 4/4] remove commented code --- assets/js/script.js | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/assets/js/script.js b/assets/js/script.js index 1ed7035..13a52af 100644 --- a/assets/js/script.js +++ b/assets/js/script.js @@ -158,19 +158,6 @@ $(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',