Commit e2b3b72ce314dc0c6fc3e387457be69f98d2d6e9

Authored by ykxie
1 parent 6d0d8cac

copy

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