Infinite SUS
This commit is contained in:
parent
dcbfd4f0e0
commit
9b7f91b319
BIN
img/sus.png
Normal file
BIN
img/sus.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.7 KiB |
49
sus.html
Normal file
49
sus.html
Normal file
@ -0,0 +1,49 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="description" content="Experience the SUS!">
|
||||
<meta property="og:image" content="https://nsfw.cringe-studios.com/sus.png">
|
||||
<meta property="og:type" content="website">
|
||||
<meta property="og:url" content="https://cringe-studios.com/">
|
||||
<meta property="og:title" content="¢яιηgє $тυ∂ισѕ Infinite SUS">
|
||||
<meta property="og:description" content="Experience the SUS!">
|
||||
<title>Infinite SUS</title>
|
||||
<style>
|
||||
.container{
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body style="font-family: 'Courier';">
|
||||
<div class="container">
|
||||
|
||||
</div>
|
||||
<button type="button" onClick="loadText();">More Sus!</button>
|
||||
|
||||
|
||||
<script>
|
||||
const container = document.querySelector('.container');
|
||||
|
||||
function loadText(numElements = 10000){
|
||||
let i=0;
|
||||
while(i < numElements){
|
||||
const img = document.createElement('div');
|
||||
img.innerText = `SUS`
|
||||
container.appendChild(img)
|
||||
i++;
|
||||
}
|
||||
}
|
||||
|
||||
loadText();
|
||||
|
||||
window.addEventListener('scroll',()=>{
|
||||
if(window.scrollY + window.innerHeight >= document.documentElement.scrollHeight){
|
||||
loadText();
|
||||
}
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in New Issue
Block a user