Commit 5f594acf7338f32b5a4abb1da169f7781e9b5555

Authored by ykxie
1 parent 4658343c

编译过快

Showing 1 changed file with 28 additions and 1 deletions
src/js/gbreplayer.js
@@ -1036,6 +1036,25 @@ $(function(){ @@ -1036,6 +1036,25 @@ $(function(){
1036 var pauseState = $('#pause').data('pause'); 1036 var pauseState = $('#pause').data('pause');
1037 if(pauseState == 1 && _role == 0){ 1037 if(pauseState == 1 && _role == 0){
1038 GBCodePlayBack.record_pause_time = new Date().getTime(); // 暂停的时间 1038 GBCodePlayBack.record_pause_time = new Date().getTime(); // 暂停的时间
  1039 + var recordobj = {
  1040 + intervaltime: GBCodePlayBack.record_pause_time - GBCodePlayBack.record_startime,
  1041 + editor: 'html',
  1042 + changeobj: {
  1043 + from:{
  1044 + ch: 0,
  1045 + line: 0,
  1046 + },
  1047 + text: '',
  1048 + to:{
  1049 + ch: 0,
  1050 + line: 0,
  1051 + }
  1052 + },
  1053 + trigger: 0,
  1054 + playTime: 0
  1055 + };
  1056 + GBCodePlayBack.records.push(recordobj);
  1057 + console.log(GBCodePlayBack.records)
1039 1058
1040 Hourglass.pauseTimer(); // 暂停计时器 1059 Hourglass.pauseTimer(); // 暂停计时器
1041 recorder.pause(); // 音频暂停 1060 recorder.pause(); // 音频暂停
@@ -1387,7 +1406,8 @@ $(function(){ @@ -1387,7 +1406,8 @@ $(function(){
1387 editor: editor, 1406 editor: editor,
1388 changeobj: changeobj, 1407 changeobj: changeobj,
1389 trigger: 0, 1408 trigger: 0,
1390 - playTime: 0 1409 + playTime: 0,
  1410 + currenttime: currenttime
1391 }; 1411 };
1392 GBCodePlayBack.records.push(recordobj); 1412 GBCodePlayBack.records.push(recordobj);
1393 GBCodePlayBack.record_startime = currenttime; //设定起始时间 1413 GBCodePlayBack.record_startime = currenttime; //设定起始时间
@@ -1550,6 +1570,12 @@ $(function(){ @@ -1550,6 +1570,12 @@ $(function(){
1550 var data = $(this).attr('data'); 1570 var data = $(this).attr('data');
1551 var seconds = 0; 1571 var seconds = 0;
1552 $("#countdown").show(); 1572 $("#countdown").show();
  1573 + var resultData = {
  1574 + output: '',
  1575 + stderr: '',
  1576 + cmpinfo: '',
  1577 + result: 1
  1578 + };
1553 if(data == 1){ 1579 if(data == 1){
1554 $("#countdown").find('img').attr('src', 'img/ready-go.gif'); 1580 $("#countdown").find('img').attr('src', 'img/ready-go.gif');
1555 $("#countdown").find('img').load(function(){ 1581 $("#countdown").find('img').load(function(){
@@ -1558,6 +1584,7 @@ $(function(){ @@ -1558,6 +1584,7 @@ $(function(){
1558 if(seconds == 2){ 1584 if(seconds == 2){
1559 $("#countdown").hide(); 1585 $("#countdown").hide();
1560 startReacoder(); 1586 startReacoder();
  1587 + compileResult(resultData)
1561 } 1588 }
1562 },1000); 1589 },1000);
1563 }) 1590 })