-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
58 lines (49 loc) · 1.93 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Hackathon</title>
<link rel="stylesheet" href="style.css">
<link rel="shortcut icon" href="./cwc.png?" type="image/x-icon">
</head>
<body>
</div>
<div class="container">
<div class="header">
<a href="#" class="logo"></a>
<nav class="navbar">
<a href="#Rules">Rules</a>
<a href="https://drive.google.com/drive/folders/1v_jnmPODR1PzHrwCVJofwJFyxCNqo-_1?usp=sharing">Submit PPT</a>
<a href="./Problem_Statement.pdf" download="Problem_Statement.pdf">Problem_Statements</a>
</nav>
</div>
<div class="container">
<img src="qr-code.png" alt="" height="300px">
<h1 id="hackerText">CWC Hackathon</h1>
</div>
<div id="Rules" class="container">
<img src="Rules.png" class="rules">
</div>
<script>
const textElement = document.getElementById('hackerText');
const originalText = textElement.innerHTML;
function scrambleText() {
let scrambledText = '';
for (let i = 0; i < originalText.length; i++) {
if (Math.random() < 0.5) {
scrambledText += String.fromCharCode(Math.random() * 94 + 33);
} else {
scrambledText += originalText[i];
}
}
scrambledText = scrambledText.substring(0, originalText.length);
textElement.innerHTML = scrambledText;
setTimeout(() => {
textElement.innerHTML = originalText;
}, 2000);
}
setInterval(scrambleText, 50);
</script>
</body>
</html>