Fixed Hero Video Config

** Read the magnific-popup.css I removed
** Add HTML comment
** Fix issue 12
** Remove commented code
master
Kausar Ahmed 4 years ago committed by GitHub
commit 324b1f3cdb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 19
      assets/js/script.js
  2. 2
      exampleSite/data/hero.yml
  3. 3
      layouts/partials/head.html

@ -158,17 +158,14 @@ $(document).ready(function () {
}); });
// Modal Popup // Modal Popup
$(".popup-button").magnificPopup({ $('.popup-button').magnificPopup({
type: "iframe", disableOn: 700,
iframe: { type: 'iframe',
patterns: { mainClass: 'mfp-fade',
youtube: { removalDelay: 160,
index: "youtube.com/", preloader: false,
id: "v=",
src: "//www.youtube.com/embed/tgbNymZ7vqY", fixedContentPos: false
},
},
},
}); });
$(".portfolio-item-grid").masonry({ $(".portfolio-item-grid").masonry({

@ -10,4 +10,4 @@ buttonName: Contact me
buttonURL: contact buttonURL: contact
image: images/hero/2960351.jpg image: images/hero/2960351.jpg
videoThumb: images/hero/popup-thumb.png videoThumb: images/hero/popup-thumb.png
videoURL: https://www.youtube.com/embed/tgbNymZ7vqY videoURL: https://www.youtube.com/watch?v=dQw4w9WgXcQ

@ -12,6 +12,9 @@
{{ "<!-- Font Awesome -->" | safeHTML }} {{ "<!-- Font Awesome -->" | safeHTML }}
<link rel="stylesheet" href="{{ "plugins/font-awesome/css/font-awesome.min.css" | absURL }}" /> <link rel="stylesheet" href="{{ "plugins/font-awesome/css/font-awesome.min.css" | absURL }}" />
{{ "<!-- Magnific Popup -->" | safeHTML }}
<link rel="stylesheet" href="{{"plugins/magnafic-popup/magnific-popup.css" | absURL }}" />
{{ "<!-- Stylesheets -->" | safeHTML }} {{ "<!-- Stylesheets -->" | safeHTML }}
{{ $style := resources.Get "scss/style.scss" | resources.ToCSS | minify }} {{ $style := resources.Get "scss/style.scss" | resources.ToCSS | minify }}
<link href="{{ $style.Permalink }}" rel="stylesheet" /> <link href="{{ $style.Permalink }}" rel="stylesheet" />

Loading…
Cancel
Save