Commit 7a81249fc7762907f9987b59809f9051a40cc1d8

Authored by ykxie
1 parent 839b37ba

fix bug

src/index.html
@@ -56,6 +56,8 @@ @@ -56,6 +56,8 @@
56 <script src="js/gbdebug/mode/css/css.js"></script> 56 <script src="js/gbdebug/mode/css/css.js"></script>
57 <script src="js/gbdebug/mode/htmlmixed/htmlmixed.js"></script> 57 <script src="js/gbdebug/mode/htmlmixed/htmlmixed.js"></script>
58 <script src="js/gbdebug/mode/clike/clike.js"></script> 58 <script src="js/gbdebug/mode/clike/clike.js"></script>
  59 + <script src="js/gbdebug/mode/php/php.js"></script>
  60 + <script src="js/gbdebug/mode/python/python.js"></script>
59 61
60 </head> 62 </head>
61 <body> 63 <body>
src/js/gbreplayer.js
@@ -1777,7 +1777,9 @@ $(function(){ @@ -1777,7 +1777,9 @@ $(function(){
1777 1777
1778 // 判断是否需要有服务端编译 1778 // 判断是否需要有服务端编译
1779 function compileMode(langid){ 1779 function compileMode(langid){
1780 - if(!(langid==0 || langid==35)){ 1780 + if(langid==0 || langid==35){
  1781 + $('#comprunbtngrp').html('<button id="runnow" type="button" data-style="expand-right" class="btn" title="运行代码">&nbsp; 运行</button>');
  1782 + }else{
1781 $('#fontendrun').addClass('hidden'); 1783 $('#fontendrun').addClass('hidden');
1782 $('#comprunbtngrp').html('<button id="comprun" type="button" data-style="expand-right" class="btn" title="编译并运行代码">&nbsp;编译&运行</button>'); 1784 $('#comprunbtngrp').html('<button id="comprun" type="button" data-style="expand-right" class="btn" title="编译并运行代码">&nbsp;编译&运行</button>');
1783 1785
@@ -1845,13 +1847,8 @@ $(function(){ @@ -1845,13 +1847,8 @@ $(function(){
1845 } 1847 }
1846 GBCodePlayBack.recordtimeoutcontrolls = []; 1848 GBCodePlayBack.recordtimeoutcontrolls = [];
1847 GBCodePlayBack.recordtimeouts = []; 1849 GBCodePlayBack.recordtimeouts = [];
1848 - // GBCodePlayBack.playRecordStart = new Date().getTime(); // 再次开始播放的时间  
1849 } 1850 }
1850 -  
1851 $('#play').data('status', !playstatus); 1851 $('#play').data('status', !playstatus);
1852 -  
1853 - console.log(recordtimeoutcontrolls)  
1854 -  
1855 } 1852 }
1856 1853
1857 1854
src/player.html
@@ -50,11 +50,6 @@ @@ -50,11 +50,6 @@
50 <script src="js/gbreplayer.js"></script> 50 <script src="js/gbreplayer.js"></script>
51 <script src="js/recording/recording.js"></script> 51 <script src="js/recording/recording.js"></script>
52 <script src="js/player.js"></script> 52 <script src="js/player.js"></script>
53 -  
54 - <script src="js/gbdebug/mode/xml/xml.js"></script>  
55 - <script src="js/gbdebug/mode/javascript/javascript.js"></script>  
56 - <script src="js/gbdebug/mode/css/css.js"></script>  
57 - <script src="js/gbdebug/mode/htmlmixed/htmlmixed.js"></script>  
58 53
59 </head> 54 </head>
60 <body> 55 <body>
@@ -82,9 +77,9 @@ @@ -82,9 +77,9 @@
82 <input type="hidden" class="audio-url" value="value"> 77 <input type="hidden" class="audio-url" value="value">
83 <div class="tab-content" style="position:relative;"> 78 <div class="tab-content" style="position:relative;">
84 <div class="tab-pane active" id="replayzone"> 79 <div class="tab-pane active" id="replayzone">
85 - <textarea id="HTMLplayer"></textarea>  
86 - <textarea id="CSSplayer"></textarea>  
87 - <textarea id="JSplayer"></textarea> 80 + <textarea id="HTMLplayer" style="display: none;"></textarea>
  81 + <textarea id="CSSplayer" style="display: none;"></textarea>
  82 + <textarea id="JSplayer" style="display: none;"></textarea>
88 </div> 83 </div>
89 </div> 84 </div>
90 </div> 85 </div>
@@ -143,7 +138,13 @@ @@ -143,7 +138,13 @@
143 138
144 139
145 <script type="text/javascript" src="js/audioPlayer/jQuery.AudioPlayer.js"></script> 140 <script type="text/javascript" src="js/audioPlayer/jQuery.AudioPlayer.js"></script>
146 - 141 +<script src="js/gbdebug/mode/xml/xml.js"></script>
  142 +<script src="js/gbdebug/mode/javascript/javascript.js"></script>
  143 +<script src="js/gbdebug/mode/css/css.js"></script>
  144 +<script src="js/gbdebug/mode/htmlmixed/htmlmixed.js"></script>
  145 +<script src="js/gbdebug/mode/clike/clike.js"></script>
  146 +<script src="js/gbdebug/mode/php/php.js"></script>
  147 +<script src="js/gbdebug/mode/python/python.js"></script>
147 148
148 </body> 149 </body>
149 </html> 150 </html>