adding controls via js to try and adapt the ios devices to the videos
// headerVideo.play();
// }
- // if($(window).width() < 1024){
- // console.log("asdf");
- // $(headerVideo).attr("controls",true);
- // }
+ if($(window).width() < 1024){
+ console.log("asdf");
+ $(headerVideo).attr("controls",true);
+ }
});
// headerVideo.play();
// }
- // if($(window).width() < 1024){
- // console.log("asdf");
- // $(headerVideo).attr("controls",true);
- // }
+ if($(window).width() < 1024){
+ console.log("asdf");
+ $(headerVideo).attr("controls",true);
+ }
});
<?php if (is_front_page()) : ?>
<div id="front-page-video-container">
- <video id="front-page-video" autoplay="" loop="" muted="">
- <source src="<?php bloginfo('template_url'); ?>/assets/videos/header.mp4">
- </video>
+ <video src="<?php bloginfo('template_url'); ?>/assets/videos/header.mp4" id="front-page-video" autoplay="" loop="" muted=""></video>
<!-- <div class="show-for-medium-down">
<video id="front-page-video-mobile" autoplay="" loop="" muted="" controls="true">