Commit 7a81249fc7762907f9987b59809f9051a40cc1d8

Authored by ykxie
1 parent 839b37ba

fix bug

src/index.html
... ... @@ -56,6 +56,8 @@
56 56 <script src="js/gbdebug/mode/css/css.js"></script>
57 57 <script src="js/gbdebug/mode/htmlmixed/htmlmixed.js"></script>
58 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 62 </head>
61 63 <body>
... ...
src/js/gbreplayer.js
... ... @@ -1777,7 +1777,9 @@ $(function(){
1777 1777  
1778 1778 // 判断是否需要有服务端编译
1779 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 1783 $('#fontendrun').addClass('hidden');
1782 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 1847 }
1846 1848 GBCodePlayBack.recordtimeoutcontrolls = [];
1847 1849 GBCodePlayBack.recordtimeouts = [];
1848   - // GBCodePlayBack.playRecordStart = new Date().getTime(); // 再次开始播放的时间
1849 1850 }
1850   -
1851 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 50 <script src="js/gbreplayer.js"></script>
51 51 <script src="js/recording/recording.js"></script>
52 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 54 </head>
60 55 <body>
... ... @@ -82,9 +77,9 @@
82 77 <input type="hidden" class="audio-url" value="value">
83 78 <div class="tab-content" style="position:relative;">
84 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 83 </div>
89 84 </div>
90 85 </div>
... ... @@ -143,7 +138,13 @@
143 138  
144 139  
145 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 149 </body>
149 150 </html>
... ...