Commit 0df643b9f5134a467e5fbd0021085d589298fb8b

Authored by ykxie
1 parent 87b25289

add title back and share

src/js/gbreplayer.js
@@ -1264,7 +1264,10 @@ $(function(){ @@ -1264,7 +1264,10 @@ $(function(){
1264 }else{ 1264 }else{
1265 $("#recordpanel").height($(window).height() - $recordpanel.top - 16 - 34); 1265 $("#recordpanel").height($(window).height() - $recordpanel.top - 16 - 34);
1266 $("#resultpanel").height($(window).height() - $resultpanel.top - 16 - 34); 1266 $("#resultpanel").height($(window).height() - $resultpanel.top - 16 - 34);
1267 - $(".CodeMirror").height($(window).height() - $recordpanel.top - 253); 1267 + $(".CodeMirror").height($(window).height() - $recordpanel.top - 290);
  1268 + }
  1269 + if (isAndroid) {
  1270 + $(".CodeMirror").height($(window).height() - $recordpanel.top - 210);
1268 } 1271 }
1269 $('#resultoutput').find('.tab-content').height($(window).height() - $resultoutput.top - 40).css({'overflow': "auto"}) 1272 $('#resultoutput').find('.tab-content').height($(window).height() - $resultoutput.top - 40).css({'overflow': "auto"})
1270 1273
src/player.html
@@ -55,6 +55,9 @@ @@ -55,6 +55,9 @@
55 <script src="js/player1.js"></script> 55 <script src="js/player1.js"></script>
56 56
57 <style> 57 <style>
  58 + .title{
  59 + display: none;
  60 + }
58 .play-editor{ 61 .play-editor{
59 width: 100%; 62 width: 100%;
60 height: 100%; 63 height: 100%;
@@ -172,6 +175,19 @@ @@ -172,6 +175,19 @@
172 display: none; 175 display: none;
173 } 176 }
174 @media screen and (max-device-width: 480px) { 177 @media screen and (max-device-width: 480px) {
  178 + .title{
  179 + display: block;
  180 + line-height: 44px;
  181 + display: flex;
  182 + justify-content: space-between;
  183 + height: 44px;
  184 + background-color: #1FB6FF;
  185 + color: #FFF;
  186 + }
  187 + .back, .share{
  188 + width: 54px;
  189 + text-align: center;
  190 + }
175 .m-title-wrap{ 191 .m-title-wrap{
176 display: block; 192 display: block;
177 width: 100%; 193 width: 100%;
@@ -253,6 +269,10 @@ @@ -253,6 +269,10 @@
253 </head> 269 </head>
254 <body> 270 <body>
255 <div id="player"> 271 <div id="player">
  272 + <div class="title">
  273 + <div class="back">返回</div>
  274 + <div class="share">分享</div>
  275 + </div>
256 <div class="m-title-wrap"> 276 <div class="m-title-wrap">
257 <div class="m-title"></div> 277 <div class="m-title"></div>
258 </div> 278 </div>
@@ -361,9 +381,11 @@ @@ -361,9 +381,11 @@
361 <script src="js/gbdebug/mode/python/python.js"></script> 381 <script src="js/gbdebug/mode/python/python.js"></script>
362 <script> 382 <script>
363 $(function(){ 383 $(function(){
364 - $('.playAudio').click(function(){  
365 - $('#audio-element')[0].play();  
366 - $('#dawang')[0].play(); 384 + $('.back').click(function(){
  385 + console.log(plugins)
  386 + })
  387 + $('.share').click(function(){
  388 + console.log(plugins)
367 }) 389 })
368 }) 390 })
369 </script> 391 </script>