/******* Do not edit this file ******* Simple Custom CSS and JS - by Silkypress.com Saved: Dec 16 2020 | 06:06:55 */ function onYouTubeIframeAPIReady() { var player; player = new YT.Player('YouTubeBackgroundVideoPlayer', { videoId: 'PJtajgkHbeQ', // YouTube Video ID {$loadYouTubeVideoID} width: 1920, // Player width (in px) height: 1080, // Player height (in px) playerVars: { playlist: 'PJtajgkHbeQ', // {$loadYouTubeVideoID} autoplay: 1, // Auto-play the video on load autohide: 1, 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 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() } } } }); }