From: Anthony Talarico Date: Fri, 3 Nov 2017 17:56:21 +0000 (-0400) Subject: adding controls to the video player in medium down X-Git-Tag: v1.0.0^2~63 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=6ed6c9db52f7512c351f5cc4580282b6d3494154;p=WP-Themes%2Fmeetingsmichigan.git adding controls to the video player in medium down medium down adding controls to the html5 video on the front page --- 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); + } });