From: Anthony Talarico Date: Wed, 28 Jun 2017 16:16:44 +0000 (-0400) Subject: removing js code that hides and shows the footer video X-Git-Tag: v1.0.0^2~15 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=7d4487c8fa639aba0191494f312ebfc8978a19e7;p=WP-Themes%2Fgaylordmichigan.git 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 --- 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(); +// } +// }); +// });