Skip to content

Commit 5f0cd93

Browse files
Update index.html
1 parent 2ee7895 commit 5f0cd93

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

index.html

+26
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,22 @@
9393
height: 50px;
9494
cursor: pointer;
9595
}
96+
.background-video {
97+
position: fixed;
98+
top: 0;
99+
left: 0;
100+
width: 100%;
101+
height: 100%;
102+
object-fit: cover;
103+
z-index: -1;
104+
}
105+
.content {
106+
position: relative;
107+
z-index: 1;
108+
font-family: Arial, sans-serif;
109+
text-align: center;
110+
margin-top: 20%;
111+
}
96112
</style>
97113
</head>
98114
<body>
@@ -103,6 +119,11 @@
103119
<option value="ar">العربية</option>
104120
</select>
105121
</div>
122+
<!-- Background Video -->
123+
<video class="background-video" autoplay muted playsinline id="backgroundVideo">
124+
<source src="media/intro.mp4" type="video/mp4">
125+
Your browser does not support the video tag.
126+
</video>
106127
<div class="label-container">
107128
<div class="label" onclick="location.href='apps.html'">Applications</div>
108129
<div class="label" onclick="location.href='services.html'">Our Services</div>
@@ -148,6 +169,11 @@
148169
document.getElementById('contact-us-container').appendChild(contactOptions);
149170
});
150171

172+
const video = document.getElementById('backgroundVideo');
173+
video.addEventListener('ended', () => {
174+
video.pause(); // Ensure it doesn't restart
175+
video.currentTime = video.duration; // Hold at the last frame
176+
});
151177
</script>
152178
</body>
153179
</html>

0 commit comments

Comments
 (0)