-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcgpaForm.html
91 lines (83 loc) · 2.78 KB
/
cgpaForm.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<!--IGNORE THIS FILE IT IS MEANT FOR RENDERING VIDEO BACKGROUND BASED ON OS -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Video Background</title>
<style>
body, html {
margin: 0;
padding: 0;
height: 100%;
overflow: hidden;
}
#video-background, #video-background-mobile {
position: fixed;
right: 0;
bottom: 0;
min-width: 100%;
min-height: 100%;
width: auto;
height: auto;
z-index: -1000;
object-fit: cover;
}
#video-content {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
color: white;
font-size: 24px;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
.content {
text-align: center;
}
@media only screen and (max-width: 600px) {
#video-background, #video-background-mobile {
width: 100%;
height: auto;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
}
}
</style>
</head>
<body>
<video id="video-background" autoplay muted loop>
<source src="shit.mp4" type="video/mp4">
<!-- Add additional video sources (e.g., WebM, Ogg) if needed -->
</video>
<video id="video-background-mobile" autoplay muted loop>
<source src="mob.mp4" type="video/mp4">
<!-- Add additional video sources (e.g., WebM, Ogg) if needed -->
</video>
<div id="video-content" class="content">
<h1>Welcome to My Site</h1>
<!-- Add any additional content here -->
</div>
<script>
alert("Oh, a visitor hmm");
alert("so you clicked on the link");
alert("hm.. reason maybe you are..");
alert("a dumb klef student like me 🥹");
alert("so you dont know how to calculate your SGPA..");
alert("dont worry i got you 😉");
// Check if the website is being viewed on a mobile device
var isMobile = /iPhone|iPad|iPod|Android/i.test(navigator.userAgent);
// Hide the appropriate video based on the device
if (isMobile) {
document.getElementById('video-background').style.display = 'none';
} else {
document.getElementById('video-background-mobile').style.display = 'none';
}
</script>
</body>
</html>