<!--e80546c3920159de--><script>
function playVideo() {
var video = document.getElementById("video");
video.play();
document.getElementById("playButton").style.display = "none";
}
function replayVideo() {
var video = document.getElementById("video");
video.currentTime = 0;
video.play();
}
function adjustVideoSize() {
var video = document.getElementById("video");
var videoContainer = document.getElementById("videoContainer");
var width = videoContainer.offsetWidth;
var height = width * 1; // 4:4 aspect ratio (4 / 4 = 1)
video.style.width = width + "px";
video.style.height = height + "px";
}
// Play the video when the user interacts with the play button
var playButton = document.getElementById("playButton");
playButton.addEventListener("click", function() {
playVideo();
});
// Play the video when the video metadata is loaded
var video = document.getElementById("video");
video.addEventListener("loadedmetadata", function() {
video.play();
playButton.style.display = "none";
});
// Replay the video when it ends
video.addEventListener("ended", function() {
replayVideo();
});
});