Commit e2b3b72ce314dc0c6fc3e387457be69f98d2d6e9

Authored by ykxie
1 parent 6d0d8cac

copy

dist/gxb-ide/Dir.js
@@ -629,8 +629,6 @@ @@ -629,8 +629,6 @@
629 type: "get", 629 type: "get",
630 url: "https://gxb-file.oss-cn-beijing.aliyuncs.com" + audioUrl, 630 url: "https://gxb-file.oss-cn-beijing.aliyuncs.com" + audioUrl,
631 success: function(res) { 631 success: function(res) {
632 - console.log('res============')  
633 - console.log(res)  
634 AudioPlayer(audioUrl) 632 AudioPlayer(audioUrl)
635 var role = getQuery('role'); 633 var role = getQuery('role');
636 if (role == 0) { 634 if (role == 0) {
dist/gxb-ide/Iterm.js
@@ -25,11 +25,14 @@ @@ -25,11 +25,14 @@
25 $(document).on('focus', '#runtimeArgus', function(){ }) 25 $(document).on('focus', '#runtimeArgus', function(){ })
26 }, 26 },
27 compile: function(){ 27 compile: function(){
28 - if (_languageid == 35 && CodingEditer.isHanld == 0) {  
29 - var _pauseValue = CodingEditer.getCodeMirrorValue();  
30 - CodingEditer.webResult(_pauseValue[0], _pauseValue[1], _pauseValue[2])  
31 - }else if(CodingEditer.isHanld == 1){  
32 - return; 28 + console.log('compile====')
  29 + if (_languageid == 35) {
  30 + if (CodingEditer.isHanld == 0) {
  31 + var _pauseValue = CodingEditer.getCodeMirrorValue();
  32 + CodingEditer.webResult(_pauseValue[0], _pauseValue[1], _pauseValue[2])
  33 + }else if(CodingEditer.isHanld == 1){
  34 + return;
  35 + }
33 }else{ 36 }else{
34 var _this = this; 37 var _this = this;
35 var el = document.querySelector('#CompileBtn'); 38 var el = document.querySelector('#CompileBtn');
dist/index.html
@@ -3,7 +3,7 @@ @@ -3,7 +3,7 @@
3 <head> 3 <head>
4 <meta charset="UTF-8"> 4 <meta charset="UTF-8">
5 <meta name="renderer" content="webkit"> 5 <meta name="renderer" content="webkit">
6 - <title>互动编程</title> 6 + <title>实境编程</title>
7 <link rel="stylesheet" href="css/reset.css"> 7 <link rel="stylesheet" href="css/reset.css">
8 <link rel="stylesheet" href="css/responsive/css/bootstrap.min.css"> 8 <link rel="stylesheet" href="css/responsive/css/bootstrap.min.css">
9 <link href="css/validationEngine.jquery.css" rel="stylesheet"> 9 <link href="css/validationEngine.jquery.css" rel="stylesheet">
@@ -26,6 +26,9 @@ @@ -26,6 +26,9 @@
26 #recordpanel{ 26 #recordpanel{
27 border-right: 1px solid #999; 27 border-right: 1px solid #999;
28 } 28 }
  29 + .m-label{
  30 + display: none;
  31 + }
29 </style> 32 </style>
30 33
31 <script> 34 <script>
dist/js/gbreplayer.js
@@ -479,9 +479,9 @@ $(function(){ @@ -479,9 +479,9 @@ $(function(){
479 } 479 }
480 480
481 GBCodePlayBack.records = coderecords; 481 GBCodePlayBack.records = coderecords;
482 - if(GBCodePlayBack.playTimes === 0){ 482 + if(GBCodePlayBack.playTimes === 0 && _role === 0){
483 if(!isAndroid){ 483 if(!isAndroid){
484 - player.play(); 484 + $.AudioPlayer.play();
485 }else{ 485 }else{
486 GBCodePlayBack.playTimes++ 486 GBCodePlayBack.playTimes++
487 } 487 }
dist/player.html
@@ -186,6 +186,12 @@ @@ -186,6 +186,12 @@
186 background-color: #1FB6FF; 186 background-color: #1FB6FF;
187 color: #FFF; 187 color: #FFF;
188 } 188 }
  189 + .back img{
  190 + width: 12px;
  191 + }
  192 + .share img{
  193 + width: 18px;
  194 + }
189 .back, .share{ 195 .back, .share{
190 width: 54px; 196 width: 54px;
191 text-align: center; 197 text-align: center;
@@ -272,8 +278,9 @@ @@ -272,8 +278,9 @@
272 <body> 278 <body>
273 <div id="player"> 279 <div id="player">
274 <div class="title"> 280 <div class="title">
275 - <div class="back">返回</div>  
276 - <div class="share">分享</div> 281 + <div class="back"><img src="img/left-icon.png" alt=""></div>
  282 + <div class="content">实境编程</div>
  283 + <div class="share"><img src="img/share.png" alt=""></div>
277 </div> 284 </div>
278 <div class="m-title-wrap"> 285 <div class="m-title-wrap">
279 <div class="m-title"></div> 286 <div class="m-title"></div>
@@ -411,6 +418,10 @@ @@ -411,6 +418,10 @@
411 } 418 }
412 plugins.SharePlugin.share(shareData) 419 plugins.SharePlugin.share(shareData)
413 }) 420 })
  421 +
  422 + window.pauseAudio = function(){
  423 + $.AudioPlayer.pause();
  424 + }
414 }) 425 })
415 </script> 426 </script>
416 427