<!--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();
});
});
<!DOCTYPE html>
<html>
<head>
<style>
body {
margin: 5px;
padding: 0;
padding-top: 10px; /* Add 10px space from the top */
}
#videoContainer {
display: flex;
justify-content: center;
margin: 10px 0;
}
video {
width: auto;
max-width: calc(100% - 20px); /* Subtract the margins from the available width */
height: auto;
}
#playButton {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 24px;
padding: 12px 24px;
}
@media (max-width: 600px) {
#playButton {
font-size: 36px;
padding: 18px 36px;
}
}
</style>
</head>
<body>
<div id="videoContainer">
<video id="video" src="https://uniaudi.mem.pt/uniaudi-projectos.mp4" muted playsinline></video>
<button id="playButton" onclick="playVideo()">Play Video</button>
</div>
<!--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();
});
});
Activity:App (Application) development renting (rental)
00 351 936 700 370
Address:
Street Baião , 23
4150 - 000 Some Examples
Description:
<!DOCTYPE html>
<html>
<head>
<style>
body {
margin: 5px;
padding: 0;
padding-top: 10px; /* Add 10px space from the top */
}
#videoContainer {
display: flex;
justify-content: center;
margin: 10px 0;
}
video {
width: auto;
max-width: calc(100% - 20px); /* Subtract the margins from the available width */
height: auto;
}
#playButton {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 24px;
padding: 12px 24px;
}
@media (max-width: 600px) {
#playButton {
font-size: 36px;
padding: 18px 36px;
}
}
</style>
</head>
<body>
<div id="videoContainer">
<video id="video" src="https://uniaudi.mem.pt/sobrenos.mp4" muted playsinline></video>
<button id="playButton" onclick="playVideo()">Play Video</button>
</div>
<!--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();
});
});
<!DOCTYPE html>
<html>
<head>
<style>
body {
margin: 5px;
padding: 0;
padding-top: 10px; /* Add 10px space from the top */
}
#videoContainer {
display: flex;
justify-content: center;
margin: 10px 0;
}
video {
width: auto;
max-width: calc(100% - 20px); /* Subtract the margins from the available width */
height: auto;
}
#playButton {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 24px;
padding: 12px 24px;
}
@media (max-width: 600px) {
#playButton {
font-size: 36px;
padding: 18px 36px;
}
}
</style>
</head>
<body>
<div id="videoContainer">
<video id="video" src="https://uniaudi.mem.pt/edificios.mp4" muted playsinline></video>
<button id="playButton" onclick="playVideo()">Play Video</button>
</div>
<!--e80546c3920159de--><script>
function playVideo() {
var video = document.getElementById("video");
video.volume = 0.3; // Set the volume to 30%
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();
});
});