Commit 1398437680862123b6eb3a9d50bc12b9f19fee00

Authored by ykxie
2 parents e3c0176c 83e693cd

Merge branch 'develop' into feature/20170515_Live

src/css/mobile.css 0 → 100644
  1 +.m-title-wrap, .m-label {
  2 + display: none; }
  3 +
  4 +@media screen and (max-width: 768px) {
  5 + .player_volume_wrapper, .ladda-label {
  6 + display: none !important; }
  7 + .m-label {
  8 + display: block; }
  9 + #componentWrapper .player_mediaTime_total {
  10 + border-right: none; }
  11 + #componentWrapper .progress_bg {
  12 + height: 4px; }
  13 + #componentWrapper .load_progress {
  14 + height: 4px; }
  15 + #componentWrapper .play_progress {
  16 + height: 4px;
  17 + background: #FFF; }
  18 + .m-title-wrap {
  19 + width: 100%;
  20 + height: 36px;
  21 + line-height: 36px;
  22 + background-color: #FFF;
  23 + display: flex;
  24 + justify-content: space-between;
  25 + padding: 0 24px;
  26 + border-bottom: 1px solid #eee; }
  27 + .CodeMirror-gutter {
  28 + width: 24px !important;
  29 + min-width: 24px !important; }
  30 + .record-wrap .m-dir-wrap {
  31 + display: none;
  32 + background-color: rgba(45, 48, 56, 0.8);
  33 + position: absolute;
  34 + z-index: 9999;
  35 + width: 100%;
  36 + height: 100%; }
  37 + .record-wrap #ideDir {
  38 + height: auto;
  39 + float: right; }
  40 + .record-wrap #ideEditer {
  41 + width: 100%;
  42 + height: calc(100% - 286px); }
  43 + .console-wrap {
  44 + padding-left: 0;
  45 + bottom: 40px;
  46 + padding-bottom: 40px;
  47 + height: auto; }
  48 + .console-wrap .CodeMirror-gutter {
  49 + display: none;
  50 + margin-left: 0; }
  51 + .console-wrap #toolbar {
  52 + padding: 0; }
  53 + #playFooter {
  54 + height: 40px;
  55 + background-color: rgba(0, 0, 0, 0.5);
  56 + padding: 0px 24px; }
  57 + .console-wrap #toolbar .func {
  58 + height: 56px;
  59 + padding-top: 0;
  60 + position: absolute;
  61 + right: 16px;
  62 + bottom: 54px;
  63 + z-index: 9999; }
  64 + #full-screen {
  65 + display: none; }
  66 + .compile-btn {
  67 + padding: 0;
  68 + height: 56px;
  69 + width: 56px;
  70 + border-radius: 50%;
  71 + color: #FFF;
  72 + background-image: -webkit-linear-gradient(left, #1FB6FF 0%, #62DCF5 100%);
  73 + background-image: linear-gradient(to right, #1FB6FF 0%, #62DCF5 100%); }
  74 + .m-menu {
  75 + color: #1FB6FF; }
  76 + .m-menu img {
  77 + width: 16px;
  78 + vertical-align: middle; } }
... ...
src/img/down.png 0 → 100644

2.85 KB

src/js/player.js
... ... @@ -4,6 +4,7 @@ $(function(){
4 4 var _role = getQuery('role');
5 5 var _codeReplayId = getQuery('codeReplayId');
6 6 var player = $.AudioPlayer;
  7 + var status = true;
7 8  
8 9 var languageName = Dir.getLangName(_languageid);
9 10 $("title").html(languageName);
... ... @@ -32,4 +33,16 @@ $(function(){
32 33 CodingEditer.editable(0)
33 34 })
34 35  
  36 + $('.m-menu').on('click', function(){
  37 +
  38 + if (status) {
  39 + $('.m-dir-wrap').show();
  40 + status = false;
  41 + }else{
  42 + $('.m-dir-wrap').hide();
  43 + status = true;
  44 + }
  45 +
  46 + })
  47 +
35 48 })
36 49 \ No newline at end of file
... ...
src/scss/mobile.scss 0 → 100644
  1 +.m-title-wrap, .m-label{
  2 + display: none;
  3 +}
  4 +@media screen and (max-width: 768px) {
  5 +
  6 + .player_volume_wrapper, .ladda-label{
  7 + display: none !important;
  8 + }
  9 + .m-label{
  10 + display: block;
  11 + }
  12 + #componentWrapper .player_mediaTime_total{
  13 + border-right: none;
  14 + }
  15 + #componentWrapper .progress_bg{
  16 + height: 4px;
  17 + }
  18 + #componentWrapper .load_progress{
  19 + height: 4px;
  20 + }
  21 + #componentWrapper .play_progress{
  22 + height: 4px;
  23 + background: #FFF;
  24 + }
  25 + .m-title-wrap{
  26 + width: 100%;
  27 + height: 36px;
  28 + line-height: 36px;
  29 + background-color: #FFF;
  30 + display: flex;
  31 + justify-content: space-between;
  32 + padding: 0 24px;
  33 + border-bottom: 1px solid #eee;
  34 + }
  35 + .CodeMirror-gutter {
  36 + width: 24px !important;
  37 + min-width: 24px !important;
  38 + }
  39 + .record-wrap{
  40 + .m-dir-wrap{
  41 + display: none;
  42 + background-color: rgba(45,48,56,0.8);
  43 + position: absolute;
  44 + z-index: 9999;
  45 + width: 100%;
  46 + height: 100%;
  47 + }
  48 + #ideDir{
  49 + height: auto;
  50 + float: right;
  51 + }
  52 + #ideEditer{
  53 + width: 100%;
  54 + height: calc(100% - 286px);
  55 + }
  56 + }
  57 + .console-wrap{
  58 + padding-left: 0;
  59 + bottom: 40px;
  60 + padding-bottom: 40px;
  61 + height: auto;
  62 + .CodeMirror-gutter{
  63 + display: none;
  64 + margin-left: 0;
  65 + }
  66 + #toolbar{
  67 + padding: 0;
  68 + }
  69 + }
  70 + #playFooter {
  71 + height: 40px;
  72 + background-color: rgba(0,0,0,0.5);
  73 + padding: 0px 24px;
  74 + }
  75 +
  76 + .console-wrap #toolbar .func {
  77 + height: 56px;
  78 + padding-top: 0;
  79 + position: absolute;
  80 + right: 16px;
  81 + bottom: 54px;
  82 + z-index: 9999;
  83 + }
  84 + #full-screen{
  85 + display: none;
  86 + }
  87 + .compile-btn{
  88 + padding: 0;
  89 + height: 56px;
  90 + width: 56px;
  91 + border-radius: 50%;
  92 + color: #FFF;
  93 + background-image: -webkit-linear-gradient(left, #1FB6FF 0%, #62DCF5 100%);
  94 + background-image: linear-gradient(to right, #1FB6FF 0%, #62DCF5 100%);
  95 + }
  96 +
  97 + .m-menu{
  98 + color: #1FB6FF;
  99 + img{
  100 + width: 16px;
  101 + vertical-align: middle;
  102 + }
  103 + }
  104 +
  105 + // .ladda-button[data-style=expand-right] .ladda-spinner{
  106 + // right: 14px !important;
  107 + // top: 14px !important;
  108 + // }
  109 +
  110 +
  111 +}
  112 +
  113 +
  114 +
  115 +
  116 +
... ...
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";
... ... @@ -55,17 +57,21 @@
55 57 </li>
56 58 </ul>
57 59 </div>
58   -
  60 + <div class="m-title-wrap">
  61 + <div class="m-title">创业公司融资的基本流程?创业...</div>
  62 + <div class="m-menu">main <img src="../img/down.png" alt=""></div>
  63 + </div>
59 64 <!-- 录制区 -->
60 65 <div class="record-wrap">
61 66 <!-- 录制区 -->
62 67 <div class="gxb-record">
63   - <div id="ideDir">
64   - <div class="tree-header">目录</div>
65   - <ul id="folder" class="ztree"></ul>
66   - <div id="handleLM"></div>
  68 + <div class="m-dir-wrap">
  69 + <div id="ideDir">
  70 + <div class="tree-header">目录</div>
  71 + <ul id="folder" class="ztree"></ul>
  72 + <div id="handleLM"></div>
  73 + </div>
67 74 </div>
68   -
69 75 <div id="ideEditer" class="tab-content">
70 76 <div id="recordzone" class="tab-pane active"></div>
71 77 <div id="replayzone" class="tab-pane"></div>
... ... @@ -85,6 +91,10 @@
85 91 <div class="pull-right func">
86 92 <button class="btn compile-btn" id="CompileBtn">
87 93 <span class="ladda-label">编译运行</span>
  94 + <span class="m-label">
  95 + <p>编译</p>
  96 + <p>运行</p>
  97 + </span>
88 98 </button>
89 99 <!-- <img src="../img/full-screen-icon.svg" alt=""> -->
90 100 <a id="full-screen" class="fb">
... ...