From 41047edffa537512b5deff804b20d737460361ef Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Fri, 3 Nov 2017 14:12:34 -0400 Subject: [PATCH] reversing the js logic to control the video controls attr removing controls if in large view --- js/app.js | 4 ++-- js/custom/pageSetup.js | 4 ++-- parts/video.php | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) 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 @@
- +