Watch Videos from Various Servers
body {
background-color: black;
color: black;
font-family: Arial, sans-serif;
text-align: center;
margin: 0;
padding: 0;
}
.button-container {
text-align: center;
margin: 20px;
}
.video-container {
margin-top: 20px;
background-color: black;
border: 1px solid #444;
max-width: 100%; /* Ensure container fits within screen */
overflow: hidden; /* Prevent iframe overflow */
position: relative; /* Ensure relative positioning */
display: flex; /* Use flexbox for centering */
justify-content: center; /* Center horizontally */
align-items: center; /* Center vertically */
height: 315px; /* Adjust height as needed */
}
.video-container:before {
content: ”;
display: block;
padding-top: 56.25%; /* Aspect ratio for 16:9 */
}
iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border: none;
}
.placeholder {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
color: white;
font-size: 18px;
}
button {
background-color: #E20C0C;
color: white;
border: none;
padding: 10px 20px;
margin: 5px;
cursor: pointer;
font-size: 16px;
}
button:hover {
background-color: #666;
}
Select a Server to Watch the Video
function loadVideo(url) {
document.getElementById(‘placeholder’).style.display = ‘none’;
document.getElementById(‘videoFrame’).style.display = ‘block’;
document.getElementById(‘videoFrame’).src = url;
}