Skip to content

Commit 324b1f3

Browse files
authored
Fixed Hero Video Config
** Read the magnific-popup.css I removed ** Add HTML comment ** Fix issue 12 ** Remove commented code
2 parents 43a8de1 + 880cc57 commit 324b1f3

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

assets/js/script.js

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -158,17 +158,14 @@ $(document).ready(function () {
158158
});
159159

160160
// Modal Popup
161-
$(".popup-button").magnificPopup({
162-
type: "iframe",
163-
iframe: {
164-
patterns: {
165-
youtube: {
166-
index: "youtube.com/",
167-
id: "v=",
168-
src: "//www.youtube.com/embed/tgbNymZ7vqY",
169-
},
170-
},
171-
},
161+
$('.popup-button').magnificPopup({
162+
disableOn: 700,
163+
type: 'iframe',
164+
mainClass: 'mfp-fade',
165+
removalDelay: 160,
166+
preloader: false,
167+
168+
fixedContentPos: false
172169
});
173170

174171
$(".portfolio-item-grid").masonry({

exampleSite/data/hero.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ buttonName: Contact me
1010
buttonURL: contact
1111
image: images/hero/2960351.jpg
1212
videoThumb: images/hero/popup-thumb.png
13-
videoURL: https://www.youtube.com/embed/tgbNymZ7vqY
13+
videoURL: https://www.youtube.com/watch?v=dQw4w9WgXcQ

layouts/partials/head.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
{{ "<!-- Font Awesome -->" | safeHTML }}
1313
<link rel="stylesheet" href="{{ "plugins/font-awesome/css/font-awesome.min.css" | absURL }}" />
1414

15+
{{ "<!-- Magnific Popup -->" | safeHTML }}
16+
<link rel="stylesheet" href="{{"plugins/magnafic-popup/magnific-popup.css" | absURL }}" />
17+
1518
{{ "<!-- Stylesheets -->" | safeHTML }}
1619
{{ $style := resources.Get "scss/style.scss" | resources.ToCSS | minify }}
1720
<link href="{{ $style.Permalink }}" rel="stylesheet" />

0 commit comments

Comments
 (0)