<script type=”text/javascript”>
$(window).bind(“load”, function() {
if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) {
} else {
var banner = $(‘#pageWrapper img’).first();
if (banner.length === 0)
banner = $(‘.banner-thumbnail-wrapper > #thumbnail > img’).first();
if (banner.length === 0)
banner = $(‘#parallax-images img’).first();
if (banner.length === 0)
banner = $(‘.has-main-image img’).first();
if (banner.length === 0)
banner = $(‘#page-thumb img’).first();
var url = “http://adam-kadela-btsk.squarespace.com/s/yk-background-dock-edited_web1080p_clipchampcom.mp4”;
banner.hide();
$(‘<video class=”bannerVideo” autoplay=”” loop=”” preload><source src=”‘ + url + ‘” type=”video/mp4″></video>’).insertAfter(banner);
adjustBanner($(‘.bannerVideo’), banner);
setTimeout(function() {
adjustBanner($(‘.bannerVideo’), banner);
}, 2000);
$(window, banner).resize(function() {
adjustBanner($(‘.bannerVideo’), banner);
setTimeout(function() {
adjustBanner($(‘.bannerVideo’), banner);
}, 200);
});
}
function adjustBanner (video, banner) {
video.css({
height: banner.css(‘height’),
width: banner.css(‘width’),
top: banner.css(‘top’),
left: banner.css(‘left’),
position: ‘relative’,
‘object-fit’: ‘inherit’
});
}
});
</script>
<div class=”looping_video”><div class=”backgroundvid”><video style=”position: fixed; top: 0px; left: 0px; min-width: 100%; min-height: 100%;” autoplay muted loop><source src=”http://adam-kadela-btsk.squarespace.com/s/MVI_8433_web1080p_clipchampcom.mp4″> <source src=”http://adam-kadela-btsk.squarespace.com/s/MVI_8433_web1080p_clipchampcom.mp4″ type=”video/ogg; codecs=”theora, vorbis”></video></div>