-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathindex.html
More file actions
72 lines (68 loc) · 1.97 KB
/
index.html
File metadata and controls
72 lines (68 loc) · 1.97 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<!DOCTYPE html>
<html>
<head>
<title>Manoloide</title>
<style>
body { margin: 0; background-color: #000; overflow:hidden;
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
p { font-family: "Lucida Console", Monaco, monospace; color: #00ff00; cursor: default;}
</style>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-1597354-9', 'auto');
ga('send', 'pageview');
</script>
</head>
<body>
<p id="code"></p>
<script>
var text = "";
var newText = "Welcome to manoloide 2015 \nfor more information manoloide@gmail.com ";
var code = document.getElementById("code");
code.innerText = text;
var clear = false;
var pause = 10;
setInterval(loop, 100); // 33 milliseconds = ~ 30 frames per sec
function loop() {
if(newText.length > 0){
pause--;
if(pause <= 0){
text += newText.charAt(0);
newText = newText.substring(1);
code.innerText = text;
}
}else {
if(clear){
text = "c://";
newText = "run ";
clear = false;
code.innerText = text;
}else {
if(code.clientHeight > window.innerHeight*0.8){
clear = true;
text += "\nc://";
newText = "clear ";
pause = 16;
code.innerText = text;
}
else {
text += "\nError!\nc://";
pause = 6;
newText = "run ";
code.innerText = text;
}
}
}
}
</script>
</body>
</html>