Commit f14559306f895510be9e17227aa74c3060009172

Authored by ykxie
1 parent 8d33dfd0

从新录制

src/css/ide.css
@@ -330,3 +330,10 @@ html, body { @@ -330,3 +330,10 @@ html, body {
330 330
331 .play-code img { 331 .play-code img {
332 width: 100%; } 332 width: 100%; }
  333 +
  334 +.confirm-tip {
  335 + position: absolute;
  336 + width: 100%;
  337 + height: 100%;
  338 + background-color: rgba(0, 0, 0, 0.5);
  339 + z-index: 999; }
src/css/main.css
@@ -252,3 +252,10 @@ html, body { @@ -252,3 +252,10 @@ html, body {
252 252
253 .play-code img { 253 .play-code img {
254 width: 100%; } 254 width: 100%; }
  255 +
  256 +.confirm-tip {
  257 + position: absolute;
  258 + width: 100%;
  259 + height: 100%;
  260 + background-color: rgba(0, 0, 0, 0.5);
  261 + z-index: 999; }
src/js/c.js
@@ -97,6 +97,10 @@ $(function(){ @@ -97,6 +97,10 @@ $(function(){
97 // $.getScript('../js/gbdebug/mode/css/css.js') 97 // $.getScript('../js/gbdebug/mode/css/css.js')
98 // $.getScript('../js/gbdebug/mode/htmlmixed/htmlmixed.js') 98 // $.getScript('../js/gbdebug/mode/htmlmixed/htmlmixed.js')
99 99
  100 + $("#confirm").on('click', function(){
  101 + $('.confirm-tip').hide();
  102 + })
  103 +
100 104
101 function recordReady(){ 105 function recordReady(){
102 var seconds = 0; 106 var seconds = 0;
src/js/gbreplayer.js
@@ -1282,6 +1282,7 @@ $(function(){ @@ -1282,6 +1282,7 @@ $(function(){
1282 compileResult(resultData); 1282 compileResult(resultData);
1283 } 1283 }
1284 1284
  1285 +
1285 GBCodePlayBack.triggertotal += 1; 1286 GBCodePlayBack.triggertotal += 1;
1286 1287
1287 // 最后一个字符调用 1288 // 最后一个字符调用
@@ -1429,12 +1430,9 @@ $(function(){ @@ -1429,12 +1430,9 @@ $(function(){
1429 var runStatus = $("#comprun").data('run'); 1430 var runStatus = $("#comprun").data('run');
1430 if (runStatus == 1) { 1431 if (runStatus == 1) {
1431 Hourglass.pauseTimer(); // 暂停计时器 1432 Hourglass.pauseTimer(); // 暂停计时器
1432 - if (_role == 0) {  
1433 - recorder.pause(); // 音频暂停  
1434 - } 1433 + recorder.pause(); // 音频暂停
1435 } 1434 }
1436 $("#comprun").data('run', 0); 1435 $("#comprun").data('run', 0);
1437 - $('.pause-shodow').show();  
1438 $('.compile-loading').show(); 1436 $('.compile-loading').show();
1439 // 暂停录制 1437 // 暂停录制
1440 var pauseState = $('#pause').data('pause'); 1438 var pauseState = $('#pause').data('pause');
@@ -1495,6 +1493,7 @@ $(function(){ @@ -1495,6 +1493,7 @@ $(function(){
1495 $('.play-code').click(function(){ 1493 $('.play-code').click(function(){
1496 $('.play-code').attr('disabled', true); 1494 $('.play-code').attr('disabled', true);
1497 playCode(); 1495 playCode();
  1496 + GBCodePlayBack.editable(0)
1498 }); 1497 });
1499 1498
1500 // 继续录制配置 1499 // 继续录制配置
@@ -1575,6 +1574,7 @@ $(function(){ @@ -1575,6 +1574,7 @@ $(function(){
1575 cmpinfo: '', 1574 cmpinfo: '',
1576 result: 1 1575 result: 1
1577 }; 1576 };
  1577 + GBCodePlayBack.autorun = 1;
1578 compileResult(resultData); 1578 compileResult(resultData);
1579 } 1579 }
1580 1580
src/scss/main.scss
@@ -328,6 +328,13 @@ html, body{ @@ -328,6 +328,13 @@ html, body{
328 width: 100%; 328 width: 100%;
329 } 329 }
330 330
  331 +.confirm-tip{
  332 + position: absolute;
  333 + width: 100%;
  334 + height: 100%;
  335 + background-color: rgba(0,0,0,0.5);
  336 + z-index: 999;
  337 +}
331 338
332 339
333 340
src/v1.1/index.html
@@ -157,6 +157,19 @@ @@ -157,6 +157,19 @@
157 <div class="contrl-shodow" style="display: none;"> 157 <div class="contrl-shodow" style="display: none;">
158 158
159 </div> 159 </div>
  160 + <div class="confirm-tip">
  161 + <div class="compile-reslut">
  162 + <div class="tip-header">
  163 + <span>提示</span>
  164 + </div>
  165 + <div class="tip-content">
  166 + <p>在开始录制之前可对文件名进行修改,开始录制后文件名将不可修改。</p>
  167 + </div>
  168 + <div class="tip-footer">
  169 + <button class="btn btn-success btn-sm" id="confirm">确定</button>
  170 + </div>
  171 + </div>
  172 + </div>
160 </div> 173 </div>
161 174
162 <script src="../js/jquery-1.7.1.js"></script> 175 <script src="../js/jquery-1.7.1.js"></script>