From 6ed6c9db52f7512c351f5cc4580282b6d3494154 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Fri, 3 Nov 2017 13:56:21 -0400 Subject: [PATCH] adding controls to the video player in medium down medium down adding controls to the html5 video on the front page --- js/app.js | 10 ++++++++++ js/custom/pageSetup.js | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/js/app.js b/js/app.js index f9a25b8..bf2981c 100644 --- 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); + } }); diff --git a/js/custom/pageSetup.js b/js/custom/pageSetup.js index 1f7068d..0c931c1 100644 --- a/js/custom/pageSetup.js +++ b/js/custom/pageSetup.js @@ -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); + } }); -- 2.17.1