Last active
April 5, 2017 16:28
-
-
Save Noy/d5ad3740f9f2d6394523bdd7238a4008 to your computer and use it in GitHub Desktop.
OH NO!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet"> | |
<title>HELP</title> | |
</head> | |
<body id="lol"> | |
<center><h1 id="haha" style="font-family: 'Roboto', sans-serif;"></h1></center><br> | |
<script type="text/javascript"> | |
downloadCDrive(this) | |
setInterval(yea, 20); | |
setInterval(getRekt, 1000) | |
function yea() { | |
let elem = document.getElementById('lol'); | |
elem.style.backgroundColor = getRandomColor(); | |
} | |
function getRandomColor() { | |
let letters = "0123456789ABCDEF"; | |
let colorCode = "#"; | |
for (var i = 0; i < 6; i++ ) { | |
colorCode += letters[Math.floor(Math.random() * 16)]; | |
} | |
return colorCode; | |
} | |
function getRekt() { | |
let rand = Math.random() | |
let letters = "OH NO, YOU'VE MADE A MISTAKE. DOWNLOADING C:// DRIVE" | |
document.getElementById("haha").innerHTML += letters + "<br>"; | |
} | |
function downloadCDrive(cdrive) { | |
return cdrive; // LMFAO | |
} | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment