cringe-studios.com/blobert/index.html
2023-10-16 15:21:20 +02:00

42 lines
965 B
HTML

<!DOCTYPE html>
<html>
<head>
<style>
div {
transition: all 1s linear;
}
</style>
<link rel="icon" type="image/x-icon" href="cat-memes-cats.gif">
</head>
<body>
<div>This site is currently under construction!</div>
<div>If you are in need of entertainment in the mean time click <a href="https://www.youtube.com/watch?v=dQw4w9WgXcQ">here</a>!</div>
<script>
let divs = document.getElementsByTagName("div");
let size = parseInt(localStorage.getItem("size"));
if(isNaN(size)) size = 15;
for(let div of divs) {
div.style.fontSize = size + "px";
}
const max_size = 100;
const min_size = 10;
let growing = true;
setInterval(() => {
if(size > 100) growing = false;
if(size < 20) growing = true;
if(growing) size += 20;
else size -= 20;
for(let div of divs) {
div.style.fontSize = size + "px";
}
localStorage.setItem("size", size);
}, 1000);
</script>
</body>
</html>