/******* Do not edit this file ******* Simple Custom CSS and JS - by Silkypress.com Saved: Jan 07 2019 | 16:47:58 */ function onYouTubeIframeAPIReady() { var player; player = new YT.Player('YouTubeBackgroundVideoPlayer', { videoId: 'wezDI-YeX_4', // YouTube Video ID {$loadYouTubeVideoID} width: 1920, // Player width (in px) height: 1080, // Player height (in px) playerVars: { playlist: 'wezDI-YeX_4', // {$loadYouTubeVideoID} autoplay: 1, // Auto-play the video on load disablekb: 1, controls: 0, // Hide pause/play buttons in player showinfo: 0, // Hide the video title modestbranding: 1, // Hide the Youtube Logo loop: 1, // Run the video in a loop fs: 0, // Hide the full screen button autohide: 1, // Hide video controls when playing rel: 0, enablejsapi: 1 }, events: { onReady: function(e) { e.target.mute(); e.target.setPlaybackQuality('hd1080'); }, onStateChange: function(e) { if(e && e.data === 1){ var videoHolder = document.getElementById('home-banner-box'); if(videoHolder && videoHolder.id){ videoHolder.classList.remove('loading'); } }else if(e && e.data === 0){ e.target.playVideo() } } } }); }