Add fallback in case the video doesn't work.
This commit is contained in:
@@ -4,6 +4,13 @@ $(function(){
|
||||
window.onscroll = function() {
|
||||
document.getElementById("scrollDown").style.opacity = Math.max(0, 200 - window.scrollY) / 200;
|
||||
};
|
||||
|
||||
if (document.location.hash == "#video")
|
||||
toggleMovie();
|
||||
|
||||
$("video")[0].addEventListener("playing", function() {
|
||||
$(this).parents().find(".fallback").hide();
|
||||
}, true);
|
||||
});
|
||||
|
||||
function toggleMovie() {
|
||||
|
Reference in New Issue
Block a user