-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
39 lines (32 loc) · 1.15 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>CringeX</title>
<link href="public/style/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<img src="CRINGE.png"/>
<h1>CringeX Channel Name Generator</h1>
<button class="button-27" role="button" onclick="generate();">GENERATE!</button>
<br><br><br>
<br><br><br>
<b id="name">Your name will appear here</b>
<br>
<br>
<br>
<br>
<b>Looking for the leaderboard? Be patient, it's currently under development.</b>
<script>
function generate(){
var names = ["Unity", "Fans", "Rewind", "World", "Land", "Space", "Time", "Watch", "Vision", "News", "Explained", "Rewind", "Central", "Journey", "Live", "Update"
];
var words = ["All", "All about","Everything", "Elon", "Musk", "Elon Musk", "SpaceX", "Tesla", "Tech", "Future", "NASA"]
var random1 = Math.floor(Math.random() * names.length);
var random2 = Math.floor(Math.random() * words.length);
document.getElementById("name").innerHTML = words[random2]+" "+names[random1];
}
</script>
</body>
</html>