adding controls to the video player in medium down
authorAnthony Talarico <talarico@gaslightmedia.com>
Fri, 3 Nov 2017 17:56:21 +0000 (13:56 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Fri, 3 Nov 2017 17:56:21 +0000 (13:56 -0400)
medium down adding controls to the html5 video on the front page

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

index f9a25b8..bf2981c 100644 (file)
--- a/js/app.js
+++ b/js/app.js
@@ -33,4 +33,14 @@ $(document).ready(function () {
     $('#glm-member-password-lost-link').click(function() {
         $('#glm-member-password-lost-form').show();
     });
+    var headerVideo = document.getElementById('front-page-video');
+
+    // if (headerVideo) {
+    //     headerVideo.play();
+    // }
+    console.log("asdf");
+    if($(window).width() < 1024){
+        console.log("asdf");
+        $(headerVideo).attr("controls",true); 
+    }
 });
index 1f7068d..0c931c1 100644 (file)
@@ -24,4 +24,14 @@ $(document).ready(function () {
     $('#glm-member-password-lost-link').click(function() {
         $('#glm-member-password-lost-form').show();
     });
+    var headerVideo = document.getElementById('front-page-video');
+
+    // if (headerVideo) {
+    //     headerVideo.play();
+    // }
+    console.log("asdf");
+    if($(window).width() < 1024){
+        console.log("asdf");
+        $(headerVideo).attr("controls",true); 
+    }
 });