<p><script>
var video1 = document.getElementById("thebpresident");
video1.style.opacity = 1;
video1.addEventListener("loadedmetadata", function() {
setTimeout(function() { video1.play();<br />
}, 1000);
});
slidein.className = "slidein";
});
setTimeout(function() {
video1.style.display = "block";
}, 4000);
});
var video2 = document.getElementById("majorcities");
setTimeout(function() {
video2.style.display = "block";
video2.className = "wp-block-video MajorCities video2";
video2.addEventListener("animationend", function() {
video2.style.opacity = 1;
video2.addEventListener("loadedmetadata", function() {
setTimeout(function() {
video2.play();
}, 4000);
});
});
}, 156000);
});
}); document.addEventListener("DOMContentLoaded", function() {
var videos = document.getElementsByClassName("onPause");
for (var i = 0; i < videos.length; i++) {
var video = videos[i];
video.addEventListener("click", function() {
if (this.paused) {
this.play();
} else {
this.pause();
}
});
}
});
</script></p>