-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
178 lines (152 loc) · 5.16 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
<!--
╔═══════════════════════════════╗
║ ║
║ 037 6 ║███
║ e ║███
║ ### c ║███
║ ### h ║███
║ ### ║███
║ ### ########### ║███
║ ### ### ## ║███
║ ### ### ## ║███
║ ##########Wo6######## ║███
║ ### ║███
║ ### ║███
║ ### ║███
║ ║███
║ 53662736:772837 ║███
║ ║███
╚═══════════════════════════════╝███
█████████████████████████████████
█████████████████████████████████
-->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en-us">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="format-detection" content="telephone=no">
<title>53662736772837</title>
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<link href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;900&display=swap" rel="stylesheet">
<style>
html,
body {
height: 100%;
}
body {
background: #000;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
font-family: "Source Code Pro", monospace;
}
section {
position: absolute;
top: 0;
left: 0;
margin: 1rem;
}
main {
text-align: center;
}
h1 {
font-size: 2.5rem;
}
h1>span,
p {
color: #fff !important;
}
p {
font-size: 1rem;
}
.accent {
font-weight: 900;
}
a:link,
a:visited {
color: #606060;
font-size: 1rem;
text-decoration: none;
text-decoration: underline;
}
a:hover,
a:active {
text-decoration: underline;
color: #fff;
}
button {
border: 1px solid #000;
margin: 0;
cursor: pointer;
}
button:hover {
border: 1px solid #fff;
}
</style>
</head>
<body>
<section>
<button style="background: #00ff71;"> </button>
<button style="background: #ff7800;"> </button>
<button style="background: #008080;"> </button>
<button style="background: #f4b541;"> </button>
<button style="background: #00e2ff;"> </button>
<button style="background: #ef0909;"> </button>
</section>
<main>
<h1 class="accent">
[<span>LNRD PRTS</span>]
</h1>
<p id="n" data-initial="53662736772837">53662736772837</p>
<a href="https://github.com/odran037" target="_blank">GitHub</a>
<span class="accent">:</span>
<a href="https://skyline.github.com/odran037" target="_blank">Commits</a>
<span class="accent">:</span>
<!-- <a href="http://www.linkedin.com/in/odran037" target="_blank">LinkedIn</a>
<span class="accent">:</span> -->
<a href="https://keybase.io/odran037/key.asc" target="_blank">Keybase</a>
<span class="accent">:</span>
<a href="https://forms.gle/rgAf8mJi1FNLzjNn8" target="_blank">Contact</a>
</main>
<script>
const buttons = document.querySelectorAll("button");
const accent = document.querySelectorAll(".accent");
buttons.forEach((button) => {
button.addEventListener("click", () => {
accent.forEach(e => e.style.color = button.style.backgroundColor);
});
});
const startColor =
buttons[Math.floor(Math.random() * buttons.length)].style.backgroundColor;
accent.forEach(e => e.style.color = startColor);
const n = document.getElementById('n');
const getRandomCharacter = (min, max) =>
Math.floor(Math.random() * (max - min + 1)) + min;
const generate = (limit, min, max) => {
let charactersList = [];
do {
charactersList.push(String.fromCharCode(getRandomCharacter(min, max)));
} while (--limit);
return charactersList.join('');
};
setInterval(() => {
let initial = n.getAttribute('data-initial');
let len = initial.length;
for (let i = 0; i < 100; i++) {
setTimeout(() => {
let gen = generate(len, 48, 57);
n.innerText = gen;
document.title = gen;
}, i * 10);
}
setTimeout(() => {
n.innerText = initial;
document.title = initial;
}, 1000);
}, 5000);
</script>
</body>
</html>