-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
84 lines (77 loc) · 1.91 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
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
<html>
<head>
<link href="https://fonts.googleapis.com/css?family=Indie+Flower&display=swap" rel="stylesheet">
<style>
body {
background: gray;
font-size: 250%;
}
#sticker {
background: red;
position: absolute;
/* display: block; */
top: 50%;
left: 50%;
margin-right: -50%;
padding: 0 0 0.5em 0;
border-radius: 0.5em;
text-align: center;
transform: translate(-50%, -50%);
}
#sticker .header {
color: white;
display: inline-block;
font-family: sans-serif;
text-transform: uppercase;
font-size: 130%;
width: 100%;
margin: -0.8em -1em -0.8em -1em;
}
#sticker .body {
display: inline-block;
background: white;
color: black;
font-family: 'Indie Flower', cursive;
font-size: 200%;
line-height: 0.25em;
width: 100%;
}
</style>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
<title>HACKERS USE!!!</title>
</head>
<body>
<div id="sticker">
<span class="header">
<p>Hackers use</p>
</span>
<span class="body">
<p id="object">All the things</p>
</span>
</div>
<a id="myButton" href="#">click here</a>
</body>
<script type="text/javascript" charset="utf-8">
var randomStrings = [
"Jira",
"All the things",
"Laptops",
"Hacking",
"NordVPN",
"hackersuse.com",
"Hostnames",
"Packets",
"vuln-2000",
"Cables",
"Wi-Fi",
"Windows",
];
var randomDiv = document.getElementById("object");
document.getElementById("myButton").addEventListener("click", function() {
randomIndex = Math.ceil((Math.random()*randomStrings.length-1));
newText = randomStrings[randomIndex];
randomDiv.innerHTML = newText;
});
</script>
</html>