Created
May 17, 2018 01:10
-
-
Save upekshapriya/433a49c2b0f5179a247c4c69a707fa16 to your computer and use it in GitHub Desktop.
YouTube video background displays in Preview but not live in CMP - Coming Soon & Maintenance Plugin by NiteoThemes https://wordpress.org/support/topic/youtube-video-overlay-displays-in-preview-but-not-live/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en-GB"> | |
<head> | |
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Raleway:700%7CRaleway:100,100i" /><meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<meta name="description" content="Maintenance page"> | |
<title>Clear Vision Trust is down for maintenance</title> | |
<link id="favicon" rel="shortcut icon" href="https://clearvisiontrust.org/wp-content/uploads/2016/10/Clear-Vision-Trust-10-150x150.png" type="image/x-icon"/> | |
<link rel="stylesheet" href="https://clearvisiontrust.org/wp-content/cache/min/1/wp-content/plugins/cmp-coming-soon-maintenance/themes/hardwork/style-63dff76961d316dd004616029f3fbf02.css" data-minify="1" type="text/css" media="all"> | |
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"> | |
<style> | |
body,input{font-family:'Raleway','sans-serif';color:#fff}.background-overlay{background-color:#0a0a0a;opacity:.1}.social-list{background-color:rgba(10,10,10,.4)}a{color:#fff}h1,h2,h3,h4,h5,h6{font-family:'Raleway','sans-serif'}body{font-size:17px;letter-spacing:0;font-weight:100;}h1:not(.text-logo),h2,h3,h4,h5,h6,.text-logo-wrapper{font-size:2.3529411764706em;letter-spacing:0;font-weight:700;font-style:normal;}h1{font-weight:700;font-style:normal;}</style> | |
<style> | |
.wp-video{margin:0 auto}.wp-video-shortcode{max-width:100%}</style> | |
</head> | |
<body id="body"> | |
<div id="background-wrapper"> | |
<div id="player" class="video-banner"></div><div class="background-overlay"></div> | |
</div> | |
<section class="section section-body"> | |
<div class="logo-wrapper"><img src="https://clearvisiontrust.org/wp-content/uploads/2016/12/Clear-Vision-Trust-final-logo-18.png" class="graphic-logo" alt="logo"></div><h2 class="animated ">Sorry, the website is down for maintenance</h2> | |
</section> | |
<ul class="social-list"><li><a href="https://www.facebook.com/clearvisiontrust/" target="top"><i class="fa fa-facebook" aria-hidden="true"></i></a></li><li><a href="https://www.instagram.com/clearvisiontrust/" target="top"><i class="fa fa-instagram" aria-hidden="true"></i></a></li><li><a href="https://www.youtube.com/user/clearvisiontrust" target="top"><i class="fa fa-youtube" aria-hidden="true"></i></a></li><li><a href="https://vimeo.com/clearvisiontrust" target="top"><i class="fa fa-vimeo" aria-hidden="true"></i></a></li></ul> | |
<script> | |
window.addEventListener("load",function(event) { | |
init(); | |
}); | |
function init(){ | |
var image = document.getElementById('background-image'); | |
if ( image === null ) { | |
image = document.getElementById('body'); | |
} | |
if ( image != null ) { | |
image.className += " loaded"; | |
} | |
// theme specific function after init | |
} | |
</script> | |
<script type='text/javascript' src='https://clearvisiontrust.org/wp-content/plugins/cmp-coming-soon-maintenance/js/vidim.min.js' defer></script> | |
<script> | |
var myBackground = new vidim( '#player', { | |
src: 'https://www.youtube.com/watch?v=Qj3BwGgzmkc', | |
type: 'YouTube', | |
poster: 'https://clearvisiontrust.org/wp-content/uploads/2017/06/637997955_1920x1080-1024x576.jpg', | |
quality: 'hd1080' | |
} | |
); | |
</script> | |
</body> | |
</html> | |
<!-- This website is like a Rocket, isn't it? Performance optimized by WP Rocket. Learn more: https://wp-rocket.me - Debug: cached@1526517631 --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en-GB"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<!-- SEO --> | |
<meta name="description" content="Maintenance page"> | |
<title>Clear Vision Trust is down for maintenance</title> | |
<link id="favicon" rel="shortcut icon" href="https://clearvisiontrust.org/wp-content/uploads/2016/10/Clear-Vision-Trust-10-150x150.png" type="image/x-icon"/> | |
<link href="https://fonts.googleapis.com/css?family=Raleway:700|Raleway:100,100i" rel="stylesheet"> | |
<link rel="stylesheet" href="https://clearvisiontrust.org/wp-content/plugins/cmp-coming-soon-maintenance/themes/hardwork/style.css?ver=2.6.6" type="text/css" media="all"> | |
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"> | |
<style> | |
body,input {font-family:'Raleway', 'sans-serif';color:#ffffff;} | |
.background-overlay {background-color:#0a0a0a;opacity:0.1;} | |
.social-list{background-color: rgba(10,10,10,0.4);} | |
a {color:#ffffff;} | |
h1,h2,h3,h4,h5,h6 {font-family:'Raleway', 'sans-serif';} | |
body {font-size:17px; letter-spacing: 0px; font-weight:100;; } | |
h1:not(.text-logo),h2, h3,h4,h5,h6,.text-logo-wrapper {font-size:2.3529411764706em;letter-spacing: 0px; font-weight:700;font-style: normal;; } | |
h1 {font-weight:700;font-style: normal;;} | |
</style> | |
<style> | |
.wp-video {margin: 0 auto;} | |
.wp-video-shortcode {max-width: 100%;} | |
</style> | |
</head> | |
<body id="body"> | |
<div id="background-wrapper"> | |
<div id="player" class="video-banner"></div><div class="background-overlay"></div> | |
</div> | |
<section class="section section-body"> | |
<div class="logo-wrapper"><img src="https://clearvisiontrust.org/wp-content/uploads/2016/12/Clear-Vision-Trust-final-logo-18.png" class="graphic-logo" alt="logo"></div><h2 class="animated ">Sorry, the website is down for maintenance</h2> | |
</section> | |
<ul class="social-list"><li><a href="https://www.facebook.com/clearvisiontrust/" target="top"><i class="fa fa-facebook" aria-hidden="true"></i></a></li><li><a href="https://www.instagram.com/clearvisiontrust/" target="top"><i class="fa fa-instagram" aria-hidden="true"></i></a></li><li><a href="https://www.youtube.com/user/clearvisiontrust" target="top"><i class="fa fa-youtube" aria-hidden="true"></i></a></li><li><a href="https://vimeo.com/clearvisiontrust" target="top"><i class="fa fa-vimeo" aria-hidden="true"></i></a></li></ul> | |
<script> | |
window.addEventListener("load",function(event) { | |
init(); | |
}); | |
function init(){ | |
var image = document.getElementById('background-image'); | |
if ( image === null ) { | |
image = document.getElementById('body'); | |
} | |
if ( image != null ) { | |
image.className += " loaded"; | |
} | |
// theme specific function after init | |
} | |
</script> | |
<script type='text/javascript' src='https://clearvisiontrust.org/wp-content/plugins/cmp-coming-soon-maintenance/js/vidim.min.js'></script> | |
<script> | |
var myBackground = new vidim( '#player', { | |
src: 'https://www.youtube.com/watch?v=Qj3BwGgzmkc', | |
type: 'YouTube', | |
poster: 'https://clearvisiontrust.org/wp-content/uploads/2017/06/637997955_1920x1080-1024x576.jpg', | |
quality: 'hd1080' | |
} | |
); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment