index.html
12.3 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
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
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
<link rel="stylesheet" href="../css/responsive/css/bootstrap.min.css">
<link href="../css/reset.css" rel="stylesheet">
<link rel="stylesheet" href="../js/zTree_v3-3.5.27/css/zTreeStyle/zTreeStyle.css">
<link href="../common/fonts/iconfont.css" rel="stylesheet">
<link href="../css/codemirror.css" rel="stylesheet">
<link href="../css/cm-theme/gbtags.css" rel="stylesheet">
<link href="../css/cm-theme/erlang-dark.css" rel="stylesheet">
<link href="../css/cm-theme/gbtags-dark.css" rel="stylesheet">
<link rel="stylesheet" href="../gxb-ide/toolBox.css">
<link rel="stylesheet" href="../css/ide.css">
<link rel="stylesheet" href="../js/ladda/ladda-themeless.min.css">
<script>
var compile_api = "https://restful.gaoxiaobang.com";
var gxb_api = "http://bdlab.cczu.edu.cn/study";
</script>
<style>
.ladda-button[data-style=expand-right] .ladda-spinner{
right: 0;
}
.ladda-button[data-style=expand-right][data-loading]{
padding-right: 32px;
}
.ladda-button .ladda-spinner{
top: 0;
}
.switch{
padding: 3px 4px;
background: #FFF;
border: 1px solid #3ad5f5;
border-radius: 16px;
position: relative;
left: 22px;
color: #1FB6FF;
display: none;
}
.switch img{
width: 16px;
vertical-align: middle;
padding-right: 2px;
}
</style>
</head>
<body>
<div class="programing">
<!-- 控制条 -->
<div class="record-title">
<ul id="recordertab" class="nav nav-tabs pull-left">
<li class="active">
<a href="#recordzone" data-toggle="tab">
<i class="icon iconfont icon-tingzhi"></i><span>课程录制区</span>
</a>
</li>
<li>
<a href="#replayzone" data-toggle="tab">
<i class="icon iconfont icon-bofang2"></i><span>课程预览区</span>
</a>
</li>
<li>
<div class="btn-group" id="quickTool">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span id="text">快速引入文件</span>
<span class="caret"></span>
</button>
<ul class="dropdown-menu">
<li><a href="#">图片</a></li>
<li><a href="#">bootstrap.css</a></li>
<li><a href="#">bootstrap.js</a></li>
<li><a href="#">jQuery</a></li>
</ul>
</div>
</li>
</div>
<!-- 录制区 -->
<div class="record-wrap">
<!-- 录制区 -->
<div class="gxb-record">
<div id="ideDir">
<div class="tree-wrap" style="display: none;">
<div class="tree-header">目录</div>
<ul id="folder" class="ztree"></ul>
<div id="handleLM"></div>
</div>
<div class="question-wrap">
<div class="question_title_wrap">
<div class="question_subtitle"><span></span>题目</div>
<p class="question_describe" id="question_title">...</p>
</div>
<h3 class="question_title"></h3>
<div class="question_title_wrap">
<div class="question_subtitle"><span></span>题目描述</div>
<p class="question_describe" id="title_describe">...</p>
</div>
<div class="question_title_wrap">
<div class="question_subtitle"><span></span>输入描述</div>
<p class="question_describe" id="input_describe">...</p>
</div>
<div class="question_title_wrap">
<div class="question_subtitle"><span></span>输出描述</div>
<p class="question_describe" id="export_describe">...</p>
</div>
</div>
</div>
<div id="ideEditer" class="tab-content">
<div id="recordzone" class="tab-pane active"></div>
<div id="replayzone" class="tab-pane"></div>
</div>
<!-- 运行结果区 -->
<div class="console-wrap" id="console-wrap">
<div class="CodeMirror-gutter">
</div>
<div id="toolbar">
<!-- Nav tabs -->
<ul class="nav nav-tabs result-tabs need-compile" role="tablist" id="cmprun-tabs">
<li class="active"><a href="#stdin" role="tab" data-toggle="tab" class="text">标准</a></li>
<li><a href="#cmpinfo" role="tab" data-toggle="tab" class="text">编译</a></li>
<li><a href="#stderr" role="tab" data-toggle="tab" class="text">错误</a></li>
<li><a href="#output" role="tab" data-toggle="tab" class="text">结果</a></li>
</ul>
<div class="pull-right func">
<button class="btn switch">
<img src="../img/switch.png" alt="">
</button>
<button class="btn compile-btn" id="CompileBtn">
<span class="ladda-label"></span>
</button>
<!-- <img src="../img/full-screen-icon.svg" alt=""> -->
<a id="full-screen" class="fb">
<img src="../img/full-screen-icon.svg" alt="">
</a>
<a id="back-screen" class="fb" style="display: none;">
<img src="../img/full-screen-icon.svg" alt="">
</a>
</div>
</div>
<!-- Tab panes -->
<div id="resultoutput" class="tab-content need-compile">
<div class="tab-pane active padall15" id="stdin">
<!-- <input type="text" class="form-control" id="runtimeArgus" placeholder="标准输入"> -->
<div class="stdin-wrap">
<input class="effect-2" id="runtimeArgus" type="text" placeholder="标准输入">
<span class="focus-border"></span>
</div>
</div>
<div class="tab-pane padall15" id="cmpinfo"></div>
<div class="tab-pane padall15" id="stderr"></div>
<div class="tab-pane padall15" id="output"></div>
</div>
<div class="panel-body no-compile" id="ifrcontainer" >
<iframe id="resultiframe" frameBorder="0" width="100%" ></iframe>
</div>
</div>
</div>
<div class="pause-shodow" style="display: none;">
<div class="compile-loading">
<img src="../img/loading.png" alt="">
</div>
<div class="compile-reslut" style="display: none;">
<div class="tip-header">
<span>成功获取编译运行结果</span>
</div>
<div class="tip-content">
<p>保存编译结果后,播放到此处会在运行区域直接显示结果。需要保存结果后继续录制吗?</p>
</div>
<div class="tip-footer">
<button class="btn btn-success btn-sm" id="save_compile">保存并继续录制</button>
<button class="btn btn-danger btn-sm" id="cancel_compile">不保存继续录制</button>
</div>
</div>
</div>
</div>
<!-- 控录制录制 -->
<div class="record-toolbox">
<input type="hidden" class="audio-url" value="">
<div class="" id="toolBox">
</div>
</div>
<!-- 准备开始 -->
<div id="countdown" style="display: none;">
<img src="" alt="">
</div>
<!-- 保存提示 -->
<div class="upload-tip" style="display: none;">
<img src="../img/upload_tip.png" alt="">
</div>
<!-- 重新开始 -->
<div class="re-tips" style="display: none;">
<div class="re-reslut">
<div class="tip-header">
<span>提示</span>
</div>
<div class="tip-content">
<p>你确定要重新录制吗?</p>
</div>
<div class="tip-footer">
<button class="btn btn-success btn-sm" id="re-sure">确定</button>
<button class="btn btn-danger btn-sm" id="re-cancel">取消</button>
</div>
</div>
</div>
<div class="contrl-shodow" style="display: none;">
</div>
<div class="confirm-tip">
<div class="compile-reslut">
<div class="tip-header">
<span>提示</span>
</div>
<div class="tip-content">
<p>在开始录制之前可对文件名进行修改,开始录制后文件名将不可修改。</p>
</div>
<div class="tip-footer">
<button class="btn btn-success btn-sm" id="confirm">确定</button>
</div>
</div>
</div>
<div class="mustrecord-tip" style="display: none;">
<div class="mustrecord-reslut">
<div class="tip-header">
<span>提示</span>
</div>
<div class="tip-content">
<p>请先点击开始录制按钮录制代码!</p>
</div>
<div class="tip-footer">
<button class="btn btn-success btn-sm">确定</button>
</div>
</div>
</div>
</div>
<script src="../js/jquery-1.7.1.js"></script>
<script src="../js/bootstrap.js"></script>
<script src="../js/codemirror.js"></script>
<script type="text/javascript" src="../js/zTree_v3-3.5.27/js/jquery.ztree.core.js"></script>
<script type="text/javascript" src="../js/zTree_v3-3.5.27/js/jquery.ztree.exedit.js"></script>
<script src="../js/emmet.js"></script>
<script src="../js/ladda/spin.js"></script>
<script src="../js/ladda/ladda.js"></script>
<script src="../js/util/Hourglass.js"></script>
<script src="../js/util/util.js"></script>
<script src="../js/05-util.js"></script>
<script src="../js/03-http.js"></script>
<script src="../js/recorder/Myna.js"></script>
<script src="../gxb-ide/Dir.js"></script>
<script src="../gxb-ide/CodingEditer.js"></script>
<script src="../gxb-ide/Iterm.js"></script>
<script src="../gxb-ide/Ide.js"></script>
<script src="../gxb-ide/ToolBox.js"></script>
<script src="../js/c.js"></script>
<script src="../js/gbdebug/mode/xml/xml.js"></script>
<script src="../js/gbdebug/mode/javascript/javascript.js"></script>
<script src="../js/gbdebug/mode/css/css.js"></script>
<script src="../js/gbdebug/mode/htmlmixed/htmlmixed.js"></script>
<script src="../js/gbdebug/mode/clike/clike.js"></script>
<script src="../js/gbdebug/mode/php/php.js"></script>
<script src="../js/gbdebug/mode/python/python.js"></script>
</body>
</html>