-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindexold.html
More file actions
102 lines (91 loc) · 4.12 KB
/
Copy pathindexold.html
File metadata and controls
102 lines (91 loc) · 4.12 KB
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
92
93
94
95
96
97
98
99
100
101
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<script>(function(){if(!sessionStorage.getItem('recaptcha_verified')||sessionStorage.getItem('recaptcha_verified')!=='true'){window.location.href='exp.html';}})();</script>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>(Gen alpha) SIGMA WEBSITE</title>
<script src="https://www.google.com/recaptcha/api.js" async defer></script>
<style>
#submitBtn {
background-color: grey;
pointer-events: none;
}
</style>
</head>
<body>
<h1>Welcome to my skibidi sigma website</h1>
<label>This is my first website ever created lol.</label>
<label>You need to done your sigma test in recaptcha and click submit for go to our hub. (WARNING:GEN ALPHA + BRAINROT!!!!!1!!1)</label>
<form id="recaptcha-form" action="hub.html" method="GET">
<div class="g-recaptcha" data-sitekey="6LeEHukqAAAAAHniKmB_c2PTe5XrEgH-HFZtyLoE" data-callback="recaptchaCallback" data-expired-callback="recaptchaExpired"></div>
<button id="submitBtn" type="submit">Submit</button>
</form>
<script>
function recaptchaCallback(response) {
if (response) {
document.getElementById('submitBtn').style.backgroundColor = 'green';
document.getElementById('submitBtn').style.pointerEvents = 'auto';
}
}
function recaptchaExpired() {
document.getElementById('submitBtn').style.backgroundColor = 'grey';
document.getElementById('submitBtn').style.pointerEvents = 'none';
}
document.getElementById('recaptcha-form').addEventListener('submit', function(event) {
var recaptchaResponse = grecaptcha.getResponse();
if (recaptchaResponse.length === 0) {
event.preventDefault();
window.location.href = 'robotalert.html';
} else {
// Allow the form to be submitted normally
}
});
// Session timeout and tab exit detection
(function() {
const TIMEOUT_MS = 10 * 60 * 1000; // 10 minutes
function updateActivity() {
sessionStorage.setItem('last_activity', Date.now().toString());
}
function checkTimeout() {
const lastActivity = sessionStorage.getItem('last_activity');
if (!lastActivity || Date.now() - parseInt(lastActivity) > TIMEOUT_MS) {
sessionStorage.clear();
window.location.href = 'exp.html';
}
}
// Initialize last activity
updateActivity();
// Update activity on user interactions
['mousedown', 'keydown', 'scroll', 'touchstart'].forEach(function(event) {
document.addEventListener(event, updateActivity);
});
// Check timeout every minute
setInterval(checkTimeout, 60000);
// Clear session when tab is hidden/exited
document.addEventListener('visibilitychange', function() {
if (document.hidden) {
sessionStorage.clear();
window.location.href = 'exp.html';
}
});
})();
</script>
<!-- Link to redirect to the GitHub repository -->
<a id="repoLink" href="https://github.com/Good-player/Good-player-github.io">Go to my github thing or idk</a>
<style>
#repoLink {
position: fixed;
bottom: 20px;
left: 50%;
transform: translateX(-50%);
text-decoration: none;
color: blue;
font-size: 16px;
}
#repoLink:hover {
text-decoration: underline;
}
</style>
<iframe width="560" height="315" src="https://www.youtube.com/embed/dQw4w9WgXcQ?si=YTIAkzXUcAmJ9jAO&start=0" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
</body>