player.html
13.1 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
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<!-- <meta name="renderer" content="webkit"> -->
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, minimal-ui">
<title>实境编程</title>
<link rel="stylesheet" href="css/responsive/css/bootstrap.min.css">
<link href="css/validationEngine.jquery.css" rel="stylesheet">
<link href="css/codemirror.css" rel="stylesheet">
<link href="css/cm-theme/gbtags.css" rel="stylesheet">
<link href="css/cm-theme/gbtags-dark.css" rel="stylesheet">
<link href="css/font/iconfont.css" rel="stylesheet">
<link href="css/font_all/iconfont.css" rel="stylesheet">
<link href="css/layout.css" rel="stylesheet">
<!-- <link href="css/main.css" rel="stylesheet"> -->
<link href="css/recording.css" rel="stylesheet">
<link rel="stylesheet" href="js/audioPlayer/theme.default.css">
<!-- <link rel="stylesheet" href="css/mobile-single.css"> -->
<script>
var gxb_api = "https://restful.gaoxiaobang.com";
// var gxb_api = "https://restful.gaoxiaobang.com"
</script>
<script src="js/jquery-1.7.1.js"></script>
<script src="js/bootstrap.js"></script>
<script src="js/util/util.js"></script>
<script src="js/spin.js"></script>
<script src="js/ladda.js"></script>
<!-- <script src="js/bootstrapslider.js"></script> -->
<script src="js/jquery-ui-1.8.20.custom.js"></script>
<script src="js/codemirror.js"></script>
<!-- <script src="js/handlebars-1.3.js"></script> -->
<script src="js/emmet.js"></script>
<script src="js/jshint-2.6.min.js"></script>
<script src="js/jstorage.js"></script>
<script src="js/05-util.js"></script>
<script src="js/03-http.js"></script>
<script src="js/jquery.iframe-transport.js"></script>
<script src="js/jquery.ui.widget.js"></script>
<script src="js/jquery.fileupload.js"></script>
<script src="js/jquery.validationEngine.js"></script>
<script src="js/jquery.validationEngine-zh.js"></script>
<script src="js/jquery.isotope.js"></script>
<script src="js/gbreplayer.js"></script>
<script src="js/recording/recording.js"></script>
<script src="js/player1.js"></script>
<style>
.title{
display: none;
}
.play-editor{
width: 100%;
height: 100%;
background-color: #FFF;
position: absolute;
}
.recording-wrap{
display: none;
}
#previewpanel{
position: absolute;
bottom: 48px;
width: 100%;
height: 240px;
overflow: hidden;
z-index: 99;
}
.play-editor #resultpanel{
height: 100%;
}
#recordpanel{
overflow: hidden;
width: 100%;
}
.editor-wrap{
position: absolute;
width: 100%;
height: 100%;
}
.toolbar{
width: 100%;
height: 40px;
overflow: hidden;
background-color: #F4F6F9;
padding: 0 36px;
}
#previewpanel .nav-tabs{
margin: 0;
}
#cmprun-tabs{
float: left;
border-radius: 30px;
overflow: hidden;
margin: 3px 10px !important;
color: #fff;
display: none;
}
#previewpanel .nav-tabs > li > a {
margin-right: 0;
padding: 0;
border-radius: 21px;
padding: 4px 21px;
margin: 1px;
border-radius: 15px;
font-size: 14px;
border: none !important;
}
.toolbar .result-tabs > li.active > a,
.toolbar .result-tabs > li.active > a:hover,
.toolbar .result-tabs > li > a:hover,
.toolbar .result-tabs > li.active > a:focus{
color: #FFF;
background-image: -webkit-linear-gradient(left, #1FB6FF 0%, #62DCF5 100%);
background-image: linear-gradient(to right, #1FB6FF 0%, #62DCF5 100%);
-webkit-transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) all !important;
transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) all !important;
box-shadow: 0px 0px 2px 0px #B3E5FF;
border: none;
}
.text{
color: #1FB6FF;
}
.comprun {
background: #FFF;
border: 1px solid #3ad5f5;
color: #1FB6FF;
border-radius: 24px;
}
.toolbar .btn {
padding: 3px 18px;
}
.toolbar #comprunbtngrp{
margin-right: 64px;
padding-top: 6px;
}
.full img{
width: 32px;
}
.full #full-screen, .full #back-screen{
background: transparent;
color: #FFF;
border: transparent;
position: absolute;
right: 0;
margin: 4px 52px;
}
#stdin .effect-2 {
border: 0;
padding: 12px 0 1px;
border-bottom: 1px solid #ccc;
}
#stdin .effect-2 ~ .focus-border {
position: absolute;
bottom: 0;
left: 50%;
width: 0;
height: 2px;
background-color: #62DCF5;
transition: 1s;
}
.m-label{
display: none;
}
.m-title-wrap{
display: none;
}
@media screen and (max-device-width: 480px) {
.title{
display: block;
line-height: 44px;
display: flex;
justify-content: space-between;
height: 44px;
background-color: #1FB6FF;
color: #FFF;
}
.back, .share{
width: 54px;
text-align: center;
}
.m-title-wrap{
display: block;
width: 100%;
height: 36px;
line-height: 36px;
background-color: #FFF;
display: flex;
justify-content: space-between;
padding: 0 24px;
border-bottom: 1px solid #eee;
}
p{
margin: 0;
}
.full{
display: none
}
.m-label{
display: block;
}
.pc{
display: none;
}
#previewpanel .nav-tabs > li > a{
padding: 4px 12px !important;
}
#comprunbtngrp {
height: 56px;
padding-top: 0;
position: absolute;
right: 16px;
bottom: 54px;
z-index: 9999;
}
.comprun{
position: relative;
padding: 0;
height: 56px;
width: 56px;
border-radius: 50%;
color: #FFF;
background-image: -webkit-linear-gradient(left, #1FB6FF 0%, #62DCF5 100%);
background-image: linear-gradient(to right, #1FB6FF 0%, #62DCF5 100%);
}
.toolbar .btn{
padding: 3px 0;
}
.toolbar #comprunbtngrp {
margin-right: 14px;
padding-top: 0;
}
.ladda-button .ladda-spinner{
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.player_volume_wrapper{
display: none !important;
}
.tab-content>.tab-pane {
padding-bottom: 64px;
}
.CodeMirror-scroll{
overflow: auto !important;
}
.btn-group>.btn:first-child:not(:last-child):not(.dropdown-toggle) {
border-top-right-radius:50%;
border-bottom-right-radius: 50%;
}
}
</style>
</head>
<body>
<div id="player">
<div class="title">
<div class="back">返回</div>
<div class="share">分享</div>
</div>
<div class="m-title-wrap">
<div class="m-title"></div>
</div>
<div class="play-editor">
<div class="">
<button type="button" class="btn btn-success" data-readonly="1" data-target="#saveModal" id="readonly" title="" style="display: none;"></button>
</div>
<div class="recording-wrap">
<div class="recording-header">
<ul class="nav nav-tabs pull-left" id="recordertab">
<li style="margin-left: 34px;">
<a href="#replayzone" data-toggle="tab"></a>
</li>
</ul>
<div id="editorwrapper">
<button type="button" class="lang btn btn-default btn-primary pull-right" id="htmlbutton" title="" data-editorname="html">HTML/CSS/JS</button>
</div>
</div>
</div>
<div class="editor-wrap">
<div id="recordpanel" class="panel panel-default">
<!-- 编辑播放代码区域 -->
<input type="hidden" class="audio-url" value="value">
<div class="tab-content" style="position:relative;">
<div class="tab-pane active" id="replayzone">
<textarea id="HTMLplayer" style="display: none;"></textarea>
<textarea id="CSSplayer" style="display: none;"></textarea>
<textarea id="JSplayer" style="display: none;"></textarea>
</div>
</div>
</div>
</div>
<div class="" id="previewpanel">
<div id="resultpanel" class="panel panel-default">
<div class="panel-heading toolbar">
<!-- <div class="btn-group">
<p id="replay">预览录制</p>
</div> -->
<ul class="nav nav-tabs result-tabs" 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="btn-group pull-right" id="comprunbtngrp">
</div>
<div class="full">
<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 class="clearfix"></div>
</div>
<div class="panel-body hidden" id="cmprun-output">
<div id="resultoutput" style="overflow:auto;">
<!-- Tab panes -->
<div class="tab-content">
<div class="tab-pane active padall15" id="stdin">
<input type="text" class="effect-2" id="input" placeholder="标准输入">
<span class="focus-border"></span>
<button class="btn playAudio">播放sss</button>
<audio id="dawang" controls="controls" src="../static/dawangjiaowolaixunsan.mp3"></audio>
</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>
</div>
<div class="panel-body" id="ifrcontainer">
<iframe id="resultiframe" frameBorder="0" width="100%"></iframe>
</div>
</div>
</div>
</div>
<div class="" id="audioWrap">
<button class="play-code" style="display: none;">
<i class="icon iconfont icon-play"></i>
</button>
<button class="play-pause-code" style="display: none;">
<i class="icon iconfont icon-playcopy"></i>
</button>
</div>
<button id="play" class="hidden" data-status='0' title="暂停">
<i class="icon iconfont icon-playcopy"></i>
</button>
</div>
<script type="text/javascript" src="js/audioPlayer/jQuery.AudioPlayer.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>
<script>
$(function(){
$('.back').click(function(){
console.log(plugins)
})
$('.share').click(function(){
console.log(plugins)
})
})
</script>
</body>
</html>