Skip to content
This repository was archived by the owner on Oct 1, 2019. It is now read-only.
Open

Text #2525

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 56 additions & 0 deletions the_internet.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
<html>
<style>
.background {
background-color: black;
}

.text-color {
color: green;
}

.the-internet-wrapper {
display: grid;
align-items: center;
height: 100%;
}

.the-internet {
width: 100%;
text-align: center;
font-family: 'Courier New', Courier, monospace;
font-size: 84px;
}

</style>

<head>

<script type="text/javascript">
function randString(len) {
"use strict";
var i, out="", all ="ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
for (i = 0; i < len; i++) {
out += all.charAt(Math.floor(Math.random() * all.length));
}
return out;
}

function main() {
"use strict";
var $_inter = setInterval(function() {
var text = document.getElementById("text");
text.innerHTML = randString(text.innerHTML.length);
}, 100);
}

window.onload = window.setTimeout(main, 1000);
</script>
</head>

<body class="background text-color">
<div class="the-internet-wrapper">
<div id="text" class="the-internet">THE INTERNET</div>
</div>
</body>

</html>