-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
41 lines (41 loc) · 837 Bytes
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<title>GitHub | SinSiXX</title>
<style type="text/css" media="screen">
body
{
background-color: #000;
font: 5px Monospace;
color: #fff;
overflow: hidden
}
</style>
</head>
<body>
<pre id="hello"></pre>
<script type="text/javascript">
o = 0;
setInterval(function(){
o+=20;
var width = 500;
var txt = '';
for(var i = 0; i < 250; i++){ //x axis
var input = ((i+o))/120;
var v = Math.round(Math.sin(input)*((width/2)-6))+(width/2);
for(var x = 0; x < width; x++){ //y axis
if(x == v){
txt += '.'
}else{
txt += ' '
}
}
txt += '\n'
}
if (document.getElementById('hello')) {
document.getElementById('hello').innerHTML = txt;
}
},100)
</script>
</boby>
</html>