-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdemo.html
executable file
·44 lines (44 loc) · 1.53 KB
/
demo.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
42
43
44
<!DOCTYPE html>
<html>
<head>
<title>Terminalize Effect - jQuery plugin demo</title>
</head>
<script type="text/javascript" src="jquery.min.js"></script>
<script type="text/javascript" src="terminalize.js"></script>
<body>
<div id="inmediate">
<a class="cmd">./document.ready</a>
<a class="cmd-response">Show when the web loads</a>
<a class="cmd">./Command2</a>
<a class="cmd-response">Response 2</a>
<a class="cmd">./Command3</a>
<a class="cmd-response">Response 3</a>
</div>
<div class="terminal">
<a class="cmd">./term1 cmd1</a>
<a class="cmd-response">Terminal 1 Command 1 Response</a>
<a class="cmd">./term1 cmd2</a>
<a class="cmd-response">Terminal 1 Command 2 Response</a>
</div>
<div class="terminal">
<a class="cmd">./term2 cmd1</a>
<a class="cmd-response">Terminal 2 Command 1 Response</a>
<a class="cmd">./term2 cmd2</a>
<a class="cmd-response">Terminal 2 Command 2 Response</a>
</div>
<script type="text/javascript" language="javascript">
$('document').ready(function(){
$('#inmediate').terminalize();
$('.terminal').terminalize({prompt: "rkgarcia@local:~$", activated:false});
});
function reset(){
$('.terminal').terminalize({prompt:"rkgarcia@reset:~$",activated:false});
}
function init(){
$('.terminal').terminalize({prompt:"rkgarcia@init:~$",mode:"all",velocity:50});
}
</script>
<a href="#" onclick="javascript:init();">Effect...!!! All at same time</a>
<a href="#" onclick="javascript:reset();">Restart terminal...</a>
</body>
</html>