-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsinlos.html
More file actions
46 lines (42 loc) · 1021 Bytes
/
sinlos.html
File metadata and controls
46 lines (42 loc) · 1021 Bytes
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
<!DOCTYPE html>
<html>
<head>
<?=globals.tmp_head("SINNNN LOSSS!")?>
<style>
@font-face{font-family:Minecraft;src:url("/files/fonts/Minecraft.otf")}
body{font-family: Minecraft;font-size:2em;}
</style>
</head>
<body>
<center><h1>LEBEN IST SINN LOSS</h1></center>
<p id=p_spam></p>
<script>
const words=["pech","haha"];
let wordCount=0;
let charCount=0;
let scrollHeight=0;
const charsPerFrame=1;
function spam(){
let res="";
let counter=0;
while(counter<charsPerFrame){
//console.log(wordCount,charCount);
res+=words[wordCount].substring(charCount,charCount+1);
counter+=1;
charCount+=1;
if(charCount>words[wordCount].length){wordCount+=1;charCount=0;res+=", "}
if(wordCount>words.length-1){wordCount=0;charCount=0;}
}
GetId("p_spam").innerHTML+=res;
if(scrollHeight!==document.body.scrollHeight){
scrollHeight=document.body.scrollHeight;
window.scrollTo({
top: scrollHeight,
behavior: "smooth",
});
}
}
setInterval(spam,50);
</script>
</body>
</html>