From 14b69e1cec9ed2f8aac21b5cb76d899aadbc0762 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Tue, 2 Aug 2016 15:32:46 -0400 Subject: [PATCH] added fancybox modal to the video player on the front page --- css/app.css | 15 +++++++++++++++ front-page.php | 4 +++- js/app.js | 14 ++++++++++++-- js/custom/pageSetup.js | 14 ++++++++++++-- scss/_main.scss | 14 ++++++++++++++ 5 files changed, 56 insertions(+), 5 deletions(-) diff --git a/css/app.css b/css/app.css index 84f6434..1f93ecc 100644 --- a/css/app.css +++ b/css/app.css @@ -6607,6 +6607,21 @@ main { #content-bulk footer img { box-shadow: none; } +.fancybox { + display: inline-block; + height: 100%; + width: 100%; } + +.fancybox iframe { + z-index: 2; } + +.iframe-screen { + background: transparent; + width: 100%; + position: absolute; + top: 150px; + height: 248px; } + @media only screen and (max-width: 40em) { #slideshow { height: 270px; } } diff --git a/front-page.php b/front-page.php index af55cec..734a635 100644 --- a/front-page.php +++ b/front-page.php @@ -30,8 +30,10 @@ Downtown Petoskey
+
+

Featured Video

- +

Full ResolutionRefresh Image (image updates at one minute intervals)

diff --git a/js/app.js b/js/app.js index 7318ff1..2d7e1d0 100644 --- a/js/app.js +++ b/js/app.js @@ -30,8 +30,18 @@ $(document).ready(function () { //console.log('ul = ' + menuImg); //console.log('menu-id = ' + menuNum); }); - $("#second-row iframe").fancybox({ - +// $("#second-row iframe").fancybox({ +// +// helpers: { +// overlay: { locked: false }, +// title: { type: 'inside'}, +// }, +// afterLoad: function(){ +// this.title = $(this.element).find('img').attr('alt'); +// } +// }); + $(".fancybox").fancybox({ + type: 'iframe', helpers: { overlay: { locked: false }, title: { type: 'inside'}, diff --git a/js/custom/pageSetup.js b/js/custom/pageSetup.js index 1d0e475..2c77d7d 100644 --- a/js/custom/pageSetup.js +++ b/js/custom/pageSetup.js @@ -21,8 +21,18 @@ $(document).ready(function () { //console.log('ul = ' + menuImg); //console.log('menu-id = ' + menuNum); }); - $("#second-row iframe").fancybox({ - +// $("#second-row iframe").fancybox({ +// +// helpers: { +// overlay: { locked: false }, +// title: { type: 'inside'}, +// }, +// afterLoad: function(){ +// this.title = $(this.element).find('img').attr('alt'); +// } +// }); + $(".fancybox").fancybox({ + type: 'iframe', helpers: { overlay: { locked: false }, title: { type: 'inside'}, diff --git a/scss/_main.scss b/scss/_main.scss index bbf72c3..370bcad 100644 --- a/scss/_main.scss +++ b/scss/_main.scss @@ -175,3 +175,17 @@ main { } } } +.fancybox{ + display: inline-block; + height: 100%; + width: 100%; +} + +.fancybox iframe { z-index: 2; } +.iframe-screen{ + background:transparent; + width:100%; + position: absolute; + top: 150px; + height: 248px; +} -- 2.17.1