Commit 889353e74cd780adb0ad139f3c07dede082323b7

Authored by ykxie
1 parent b6be95d9

add moblie style

src/css/mobile.css 0 → 100644
  1 +@media screen and (max-width: 768px) {
  2 + .record-wrap #ideDir {
  3 + display: none;
  4 + background-color: red; }
  5 + .record-wrap #ideEditer {
  6 + width: 100%; }
  7 + .console-wrap {
  8 + padding-left: 0; }
  9 + .console-wrap .CodeMirror-gutter {
  10 + display: none;
  11 + margin-left: 0; } }
... ...
src/gxb-ide/CodingEditer.js
1 1 ;(function(window){
2   -
  2 + var _role = getQuery('role');
3 3 var CodingEditer = {
4 4 records: [], // 存储录入的操作
5 5 recording_status: false, // 当前是否在录制 true: 正在录制,false: 没有录制
... ... @@ -465,8 +465,10 @@
465 465  
466 466 CodingEditer.triggertotal = 0;
467 467  
468   - $('.play-code').show();
469   - $('.pause-play-code').hide();
  468 + if (_role == 1) {
  469 + $('.play-code').show();
  470 + $('.pause-play-code').hide();
  471 + }
470 472 }
471 473  
472 474 }
... ...
src/scss/mobile.scss 0 → 100644
  1 +@media screen and (max-width: 768px) {
  2 + .record-wrap{
  3 + #ideDir{
  4 + display: none;
  5 + background-color: red;
  6 + }
  7 + #ideEditer{
  8 + width: 100%;
  9 + }
  10 + }
  11 + .console-wrap{
  12 + padding-left: 0;
  13 + .CodeMirror-gutter{
  14 + display: none;
  15 + margin-left: 0;
  16 + }
  17 + }
  18 +}
0 19 \ No newline at end of file
... ...
src/v1.1/player.html
... ... @@ -2,6 +2,7 @@
2 2 <html lang="en">
3 3 <head>
4 4 <meta charset="UTF-8">
  5 + <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, minimal-ui">
5 6 <title></title>
6 7 <link rel="stylesheet" href="../css/responsive/css/bootstrap.min.css">
7 8 <!-- <link href="../css/codemirror.css" rel="stylesheet"> -->
... ... @@ -18,6 +19,7 @@
18 19  
19 20 <link rel="stylesheet" href="../gxb-ide/toolBox.css">
20 21 <link rel="stylesheet" href="../css/ide.css">
  22 + <link rel="stylesheet" href="../css/mobile.css">
21 23  
22 24 <script>
23 25 var gxb_api = "https://restful.gaoxiaobang.com";
... ...