forked from theBrokenLoop/terminalJs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
188 lines (187 loc) · 7.46 KB
/
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
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
<html>
<head>
<link href="./terminalJs.css" rel="stylesheet">
<link href="./assets/bootstrap/bootstrap.css" rel="stylesheet">
<link href="./assets/font-awesome/css/font-awesome.min.css" rel="stylesheet">
<script src="./terminal.js" type="application/javascript"></script>
<script src="./assets/jquery-1.10.2.js" type="application/javascript"></script>
<script src="./assets/bootstrap/bootstrap.js" type="application/javascript"></script>
<title>TerminalJs</title>
</head>
<body onload="initTerminal();">
<style>
#terminals-tab{
padding: 20px;
border-left: solid 1px #ddd;
border-right: solid 1px #ddd;
border-bottom: solid 1px #ddd;
}
</style>
<div class="container">
<h2 class="text-center">Terminal-js</h2>
<h4>Available languages</h4>
<ul class="nav nav-tabs">
<li><a data-toggle="tab" href="#python">Python</a></li>
<li><a data-toggle="tab" href="#java">Java</a></li>
<li class="active"><a data-toggle="tab" href="#cpp">C++</a></li>
</ul>
<div class="tab-content" id="terminals-tab">
<div id="python" class="tab-pane fade">
<br>
<h4>Select Theme</h4>
<hr>
<ul class="nav nav-pills">
<li class="active"><a data-toggle="pill" href="#dark">Dark</a></li>
<li><a data-toggle="pill" href="#light">Light</a></li>
</ul>
<br>
<div class="tab-content">
<div id="dark" class="tab-pane fade in active">
<p id="terminal1">
import csv
<br>
import os
<br>
from datetime import datetime
<br>
# This is comment
<br>
file = csv.reader("this is my file name", 'rb', .4)
<br>
print(file.size)
<br>
for i in range(10):
<br>
if i < 3:
<br>
print("hello")
<br>
continue
<br>
break
<br>
elif i > 8:
<br>
print "how are you"
<br>
else:
<br>
print "hi"
<br>
pass
a</p>
</div>
<div id="light" class="tab-pane fade">
<p id="terminal2">
import csv
<br>
import os
<br>
from datetime import datetime
<br>
# This is comment
<br>
file = csv.reader("this is my file name", 'rb', .4)
<br>
print(file.size)
<br>
for i in range(10):
<br>
if i < 3:
<br>
print("hello")
<br>
continue
<br>
break
<br>
elif i > 8:
<br>
print "how are you"
<br>
else:
<br>
print "hi"
<br>
pass
a</p>
</div>
</div>
</div>
<div id="java" class="tab-pane fade">
<h3>Coming Soon ...</h3>
</div>
<div id="cpp" class="tab-pane fade in active">
<br>
<h4>Select Theme</h4>
<hr>
<ul class="nav nav-pills">
<li class="active"><a data-toggle="pill" href="#cpp-dark">Dark</a></li>
<li><a data-toggle="pill" href="#cpp-light">Light</a></li>
</ul>
<br>
<div class="tab-content">
<div id="cpp-dark" class="tab-pane fade in active">
<p id="terminal3">
#include "headher.h"
<br>
#define MAX 100
<br>
// This is comment
<br>
int main(){
<br>
int a, b;
<br>
scanf("%d %d", &a, &b);
<br>
printf("value of a: %d value of b: %d", a, b);
<br>
return 0;
<br>}
<br>
void bigger(long long int a, long long int b){
a</p>
</div>
<div id="cpp-light" class="tab-pane fade">
<p id="terminal4">
import csv
<br>
import os
<br>
from datetime import datetime
<br>
# This is comment
<br>
file = csv.reader("this is my file name", 'rb', .4)
<br>
print(file.size)
<br>
for i in range(10):
<br>
if i < 3:
<br>
print("hello")
<br>
continue
<br>
break
<br>
elif i > 8:
<br>
print "how are you"
<br>
else:
<br>
print "hi"
<br>
pass
a</p>
</div>
</div>
</div>
</div>
</div>
<br><br>
</body>
</html>