redoing the video tag for the front page header
authorAnthony Talarico <talarico@gaslightmedia.com>
Fri, 3 Nov 2017 18:10:52 +0000 (14:10 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Fri, 3 Nov 2017 18:10:52 +0000 (14:10 -0400)
adding controls via js to try and adapt the ios devices to the videos

js/app.js
js/custom/pageSetup.js
parts/video.php

index 21aeef1..2600fb5 100644 (file)
--- a/js/app.js
+++ b/js/app.js
@@ -39,8 +39,8 @@ $(document).ready(function () {
     //     headerVideo.play();
     // }
   
-    // if($(window).width() < 1024){
-    //     console.log("asdf");
-    //     $(headerVideo).attr("controls",true); 
-    // }
+    if($(window).width() < 1024){
+        console.log("asdf");
+        $(headerVideo).attr("controls",true); 
+    }
 });
index 1501462..1842376 100644 (file)
@@ -30,8 +30,8 @@ $(document).ready(function () {
     //     headerVideo.play();
     // }
   
-    // if($(window).width() < 1024){
-    //     console.log("asdf");
-    //     $(headerVideo).attr("controls",true); 
-    // }
+    if($(window).width() < 1024){
+        console.log("asdf");
+        $(headerVideo).attr("controls",true); 
+    }
 });
index 397f71b..ce53341 100644 (file)
@@ -1,8 +1,6 @@
 <?php if (is_front_page()) : ?>
        <div id="front-page-video-container">
-    <video id="front-page-video" autoplay="" loop="" muted="">
-        <source src="<?php bloginfo('template_url'); ?>/assets/videos/header.mp4">  
-    </video>
+    <video src="<?php bloginfo('template_url'); ?>/assets/videos/header.mp4" id="front-page-video" autoplay="" loop="" muted=""></video>
     
         <!-- <div class="show-for-medium-down">
             <video id="front-page-video-mobile" autoplay="" loop="" muted="" controls="true">