-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathlngi_test.html
More file actions
42 lines (39 loc) · 1.05 KB
/
lngi_test.html
File metadata and controls
42 lines (39 loc) · 1.05 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
<!DOCTYPE html>
<html>
<body>
<p><center><font face="arial" size="7" id="textstuff"></font></center></p>
<script>
var t = 0;
var s = 0;
var r = 0;
function runthisthing() {
t++;
r = Math.floor((t**1.2/40)%360);
document.body.style.backgroundColor = "hsl("+r+", 100%, 90%)";
if (t < 4000) {
document.getElementById("textstuff").innerHTML = (t / 2000).toFixed(2);
} else if (t < 50000) {
s = 2**(t / 2000 - 1);
if (s < 100) {
s = s.toFixed(2);
} else if (s < 1000) {
s = s.toFixed(1);
} else {
s = Math.floor(s).toLocaleString();
}
document.getElementById("textstuff").innerHTML = s;
} else {
s = Math.min(((128/3)**(((t/100000+0.5)**3-1)/7)*24)*Math.log10(2),Math.log10(Number.MAX_VALUE));
if (s < 12) {
s = Math.floor(10**s).toLocaleString();
} else {
s = (10**(s%1)).toFixed(3) + "e" + Math.floor(s);
}
document.getElementById("textstuff").innerHTML = s;
}
if (t==150000) window.location.href = 'https://i.gifer.com/IlDK.gif'
}
setInterval(runthisthing,3);
</script>
</body>
</html>