amongdrip/Sus.html

32 lines
700 B
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" href="./Sus.ico" type="image/x-icon">
<style>
body {
background-image: url("./Sus.webp");
}
</style>
<title>Sus</title>
</head>
<body>
<script>
x = 0;
y = 0;
dx = 15;
dy = 15;
setInterval(function() {
window.moveTo(x, y);
x += dx;
y += dy;
if (y > (screen.height - window.outerHeight)) dy = -15;
if (window.y < 0) dy = 15;
if (x > (screen.width - window.outerWidth)) dx = -15;
if (window.x < 0) dx = 15;
}, 10);
</script>
</body>
</html>