From: Anthony Talarico Date: Fri, 3 Nov 2017 18:12:34 +0000 (-0400) Subject: reversing the js logic to control the video controls attr X-Git-Tag: v1.0.0^2~60 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=41047edffa537512b5deff804b20d737460361ef;p=WP-Themes%2Fmeetingsmichigan.git reversing the js logic to control the video controls attr removing controls if in large view --- diff --git a/js/app.js b/js/app.js index 2600fb5..9fc5ee9 100644 --- a/js/app.js +++ b/js/app.js @@ -39,8 +39,8 @@ $(document).ready(function () { // headerVideo.play(); // } - if($(window).width() < 1024){ + if($(window).width() > 1024){ console.log("asdf"); - $(headerVideo).attr("controls",true); + $(headerVideo).attr("controls",false); } }); diff --git a/js/custom/pageSetup.js b/js/custom/pageSetup.js index 1842376..cd0e4e4 100644 --- a/js/custom/pageSetup.js +++ b/js/custom/pageSetup.js @@ -30,8 +30,8 @@ $(document).ready(function () { // headerVideo.play(); // } - if($(window).width() < 1024){ + if($(window).width() > 1024){ console.log("asdf"); - $(headerVideo).attr("controls",true); + $(headerVideo).attr("controls",false); } }); diff --git a/parts/video.php b/parts/video.php index ce53341..7b6f670 100644 --- a/parts/video.php +++ b/parts/video.php @@ -1,6 +1,6 @@
- +