Commit 889353e74cd780adb0ad139f3c07dede082323b7
1 parent
b6be95d9
add moblie style
Showing
4 changed files
with
36 additions
and
3 deletions
src/css/mobile.css
0 → 100644
src/gxb-ide/CodingEditer.js
| 1 | ;(function(window){ | 1 | ;(function(window){ |
| 2 | - | 2 | + var _role = getQuery('role'); |
| 3 | var CodingEditer = { | 3 | var CodingEditer = { |
| 4 | records: [], // 存储录入的操作 | 4 | records: [], // 存储录入的操作 |
| 5 | recording_status: false, // 当前是否在录制 true: 正在录制,false: 没有录制 | 5 | recording_status: false, // 当前是否在录制 true: 正在录制,false: 没有录制 |
| @@ -465,8 +465,10 @@ | @@ -465,8 +465,10 @@ | ||
| 465 | 465 | ||
| 466 | CodingEditer.triggertotal = 0; | 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 | \ No newline at end of file | 19 | \ No newline at end of file |
src/v1.1/player.html
| @@ -2,6 +2,7 @@ | @@ -2,6 +2,7 @@ | ||
| 2 | <html lang="en"> | 2 | <html lang="en"> |
| 3 | <head> | 3 | <head> |
| 4 | <meta charset="UTF-8"> | 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 | <title></title> | 6 | <title></title> |
| 6 | <link rel="stylesheet" href="../css/responsive/css/bootstrap.min.css"> | 7 | <link rel="stylesheet" href="../css/responsive/css/bootstrap.min.css"> |
| 7 | <!-- <link href="../css/codemirror.css" rel="stylesheet"> --> | 8 | <!-- <link href="../css/codemirror.css" rel="stylesheet"> --> |
| @@ -18,6 +19,7 @@ | @@ -18,6 +19,7 @@ | ||
| 18 | 19 | ||
| 19 | <link rel="stylesheet" href="../gxb-ide/toolBox.css"> | 20 | <link rel="stylesheet" href="../gxb-ide/toolBox.css"> |
| 20 | <link rel="stylesheet" href="../css/ide.css"> | 21 | <link rel="stylesheet" href="../css/ide.css"> |
| 22 | + <link rel="stylesheet" href="../css/mobile.css"> | ||
| 21 | 23 | ||
| 22 | <script> | 24 | <script> |
| 23 | var gxb_api = "https://restful.gaoxiaobang.com"; | 25 | var gxb_api = "https://restful.gaoxiaobang.com"; |