From 7d4487c8fa639aba0191494f312ebfc8978a19e7 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Wed, 28 Jun 2017 12:16:44 -0400 Subject: [PATCH] removing js code that hides and shows the footer video old javascript was remaining that hid the video until you scrolled to the bottom of the page --- js/app.js | 22 +++++++++++----------- js/custom/pageSetup.js | 22 +++++++++++----------- 2 files changed, 22 insertions(+), 22 deletions(-) diff --git a/js/app.js b/js/app.js index c63a71d..7f80745 100644 --- a/js/app.js +++ b/js/app.js @@ -313,17 +313,17 @@ $(document).ready(function () { // }) // }); - $(window).scroll(function() { - $("iframe").each( function() { - if( $(window).scrollTop() > $(this).offset().top - 200 ) { - $(this).css('opacity',1); - player.playVideo(); - } else { - $(this).css('opacity',0); - player.stopVideo(); - } - }); - }); +// $(window).scroll(function() { +// $("iframe").each( function() { +// if( $(window).scrollTop() > $(this).offset().top - 200 ) { +//// $(this).css('opacity',1); +// player.playVideo(); +// } else { +//// $(this).css('opacity',0); +// player.stopVideo(); +// } +// }); +// }); diff --git a/js/custom/pageSetup.js b/js/custom/pageSetup.js index 588bef5..da9f309 100644 --- a/js/custom/pageSetup.js +++ b/js/custom/pageSetup.js @@ -110,17 +110,17 @@ $(document).ready(function () { // }) // }); - $(window).scroll(function() { - $("iframe").each( function() { - if( $(window).scrollTop() > $(this).offset().top - 200 ) { - $(this).css('opacity',1); - player.playVideo(); - } else { - $(this).css('opacity',0); - player.stopVideo(); - } - }); - }); +// $(window).scroll(function() { +// $("iframe").each( function() { +// if( $(window).scrollTop() > $(this).offset().top - 200 ) { +//// $(this).css('opacity',1); +// player.playVideo(); +// } else { +//// $(this).css('opacity',0); +// player.stopVideo(); +// } +// }); +// }); -- 2.17.1