removing js code that hides and shows the footer video
authorAnthony Talarico <talarico@gaslightmedia.com>
Wed, 28 Jun 2017 16:16:44 +0000 (12:16 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Wed, 28 Jun 2017 16:16:44 +0000 (12:16 -0400)
old javascript was remaining that hid the video until you scrolled to the bottom of the page

js/app.js
js/custom/pageSetup.js

index c63a71d..7f80745 100644 (file)
--- 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();
+//            }
+//        });
+//    });
 
 
 
index 588bef5..da9f309 100644 (file)
@@ -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();
+//            }
+//        });
+//    });