Commit 296b6302c3518cc5be6f7b46bb3705e97bad115d
1 parent
9b3071d4
更新文件
Showing
18 changed files
with
343 additions
and
27 deletions
Too many changes to show.
To preserve performance only 18 of 20 files are displayed.
example/untitled.js
0 → 100644
| 1 | +ide: { | ||
| 2 | + dir: {} | ||
| 3 | + toolbox: {} | ||
| 4 | + editor: {} | ||
| 5 | + | ||
| 6 | + build: function() { | ||
| 7 | + ide.monitor.suspend(dir.onSuspend) | ||
| 8 | + ide.monitor.suspend(toolbox.onSuspend) | ||
| 9 | + ide.monitor.suspend(editor.onSuspend) | ||
| 10 | + }, | ||
| 11 | + suspend: function() { | ||
| 12 | + item.monitor.suspend(); | ||
| 13 | + } | ||
| 14 | +} | ||
| 15 | + | ||
| 16 | + | ||
| 17 | + | ||
| 18 | +ide.suspend(function() { | ||
| 19 | + //ajax() | ||
| 20 | +}) |
example/untitled1.js
0 → 100644
| 1 | +(function() { | ||
| 2 | + var toolbox = {} | ||
| 3 | + | ||
| 4 | + var IDE = function(config) { | ||
| 5 | + var events = getEvents(); | ||
| 6 | + $.extend(events, config); | ||
| 7 | + this.toolbox = toolbox; | ||
| 8 | + } | ||
| 9 | +})(); | ||
| 10 | + | ||
| 11 | +(function() { | ||
| 12 | + var getEvents = function() { | ||
| 13 | + return { | ||
| 14 | + record: function() { | ||
| 15 | + | ||
| 16 | + }, | ||
| 17 | + onContentChanged: function() { | ||
| 18 | + for (this.monitor.started) { | ||
| 19 | + this.monitor.started[index](); | ||
| 20 | + } | ||
| 21 | + } | ||
| 22 | + }; | ||
| 23 | + } | ||
| 24 | + | ||
| 25 | + var IDE = function(config) { | ||
| 26 | + var events = getEvents(); | ||
| 27 | + $.extend(events, config); | ||
| 28 | + this.events = events; | ||
| 29 | + } | ||
| 30 | +})(); | ||
| 31 | + | ||
| 32 | + | ||
| 33 | + | ||
| 34 | +var ide = new IDE({ | ||
| 35 | + | ||
| 36 | + events: { | ||
| 37 | + record: function() { | ||
| 38 | + | ||
| 39 | + }, | ||
| 40 | + onContentChanged: function(config) { | ||
| 41 | + //do something | ||
| 42 | + | ||
| 43 | + config.callback && config.callback({}); | ||
| 44 | + } | ||
| 45 | + } | ||
| 46 | +}); | ||
| 47 | + | ||
| 48 | +ide.events.tools.record = function() { | ||
| 49 | + //do something | ||
| 50 | +} | ||
| 51 | + | ||
| 52 | +ide.events.editor.onContentChanged({ a: 1, b: 2, callback: function(results) {} }); | ||
| 53 | + | ||
| 54 | +ide.monitor.started.push(function() { | ||
| 55 | + | ||
| 56 | +}) | ||
| 57 | + | ||
| 58 | +ide.props. | ||
| 59 | +ide.methods.getText(); | ||
| 60 | + |
src/common/fonts/demo_fontclass.html
| @@ -13,6 +13,12 @@ | @@ -13,6 +13,12 @@ | ||
| 13 | <ul class="icon_lists clear"> | 13 | <ul class="icon_lists clear"> |
| 14 | 14 | ||
| 15 | <li> | 15 | <li> |
| 16 | + <i class="icon iconfont icon-bofang1"></i> | ||
| 17 | + <div class="name">播放</div> | ||
| 18 | + <div class="fontclass">.icon-bofang1</div> | ||
| 19 | + </li> | ||
| 20 | + | ||
| 21 | + <li> | ||
| 16 | <i class="icon iconfont icon-quanping"></i> | 22 | <i class="icon iconfont icon-quanping"></i> |
| 17 | <div class="name">全屏</div> | 23 | <div class="name">全屏</div> |
| 18 | <div class="fontclass">.icon-quanping</div> | 24 | <div class="fontclass">.icon-quanping</div> |
| @@ -24,6 +30,18 @@ | @@ -24,6 +30,18 @@ | ||
| 24 | <div class="fontclass">.icon-quanping1</div> | 30 | <div class="fontclass">.icon-quanping1</div> |
| 25 | </li> | 31 | </li> |
| 26 | 32 | ||
| 33 | + <li> | ||
| 34 | + <i class="icon iconfont icon-luzhi"></i> | ||
| 35 | + <div class="name">录制</div> | ||
| 36 | + <div class="fontclass">.icon-luzhi</div> | ||
| 37 | + </li> | ||
| 38 | + | ||
| 39 | + <li> | ||
| 40 | + <i class="icon iconfont icon-luying"></i> | ||
| 41 | + <div class="name">悬赏问题详情-录制按钮</div> | ||
| 42 | + <div class="fontclass">.icon-luying</div> | ||
| 43 | + </li> | ||
| 44 | + | ||
| 27 | </ul> | 45 | </ul> |
| 28 | 46 | ||
| 29 | <h2 id="font-class-">font-class引用</h2> | 47 | <h2 id="font-class-">font-class引用</h2> |
src/common/fonts/demo_symbol.html
| @@ -29,6 +29,14 @@ | @@ -29,6 +29,14 @@ | ||
| 29 | 29 | ||
| 30 | <li> | 30 | <li> |
| 31 | <svg class="icon" aria-hidden="true"> | 31 | <svg class="icon" aria-hidden="true"> |
| 32 | + <use xlink:href="#icon-bofang1"></use> | ||
| 33 | + </svg> | ||
| 34 | + <div class="name">播放</div> | ||
| 35 | + <div class="fontclass">#icon-bofang1</div> | ||
| 36 | + </li> | ||
| 37 | + | ||
| 38 | + <li> | ||
| 39 | + <svg class="icon" aria-hidden="true"> | ||
| 32 | <use xlink:href="#icon-quanping"></use> | 40 | <use xlink:href="#icon-quanping"></use> |
| 33 | </svg> | 41 | </svg> |
| 34 | <div class="name">全屏</div> | 42 | <div class="name">全屏</div> |
| @@ -43,6 +51,22 @@ | @@ -43,6 +51,22 @@ | ||
| 43 | <div class="fontclass">#icon-quanping1</div> | 51 | <div class="fontclass">#icon-quanping1</div> |
| 44 | </li> | 52 | </li> |
| 45 | 53 | ||
| 54 | + <li> | ||
| 55 | + <svg class="icon" aria-hidden="true"> | ||
| 56 | + <use xlink:href="#icon-luzhi"></use> | ||
| 57 | + </svg> | ||
| 58 | + <div class="name">录制</div> | ||
| 59 | + <div class="fontclass">#icon-luzhi</div> | ||
| 60 | + </li> | ||
| 61 | + | ||
| 62 | + <li> | ||
| 63 | + <svg class="icon" aria-hidden="true"> | ||
| 64 | + <use xlink:href="#icon-luying"></use> | ||
| 65 | + </svg> | ||
| 66 | + <div class="name">悬赏问题详情-录制按钮</div> | ||
| 67 | + <div class="fontclass">#icon-luying</div> | ||
| 68 | + </li> | ||
| 69 | + | ||
| 46 | </ul> | 70 | </ul> |
| 47 | 71 | ||
| 48 | 72 |
src/common/fonts/demo_unicode.html
| @@ -33,6 +33,12 @@ | @@ -33,6 +33,12 @@ | ||
| 33 | <ul class="icon_lists clear"> | 33 | <ul class="icon_lists clear"> |
| 34 | 34 | ||
| 35 | <li> | 35 | <li> |
| 36 | + <i class="icon iconfont"></i> | ||
| 37 | + <div class="name">播放</div> | ||
| 38 | + <div class="code">&#xe6bb;</div> | ||
| 39 | + </li> | ||
| 40 | + | ||
| 41 | + <li> | ||
| 36 | <i class="icon iconfont"></i> | 42 | <i class="icon iconfont"></i> |
| 37 | <div class="name">全屏</div> | 43 | <div class="name">全屏</div> |
| 38 | <div class="code">&#xe643;</div> | 44 | <div class="code">&#xe643;</div> |
| @@ -44,6 +50,18 @@ | @@ -44,6 +50,18 @@ | ||
| 44 | <div class="code">&#xe665;</div> | 50 | <div class="code">&#xe665;</div> |
| 45 | </li> | 51 | </li> |
| 46 | 52 | ||
| 53 | + <li> | ||
| 54 | + <i class="icon iconfont"></i> | ||
| 55 | + <div class="name">录制</div> | ||
| 56 | + <div class="code">&#xe60e;</div> | ||
| 57 | + </li> | ||
| 58 | + | ||
| 59 | + <li> | ||
| 60 | + <i class="icon iconfont"></i> | ||
| 61 | + <div class="name">悬赏问题详情-录制按钮</div> | ||
| 62 | + <div class="code">&#xe63f;</div> | ||
| 63 | + </li> | ||
| 64 | + | ||
| 47 | </ul> | 65 | </ul> |
| 48 | <h2 id="unicode-">unicode引用</h2> | 66 | <h2 id="unicode-">unicode引用</h2> |
| 49 | <hr> | 67 | <hr> |
src/common/fonts/iconfont.css
| 1 | 1 | ||
| 2 | @font-face {font-family: "iconfont"; | 2 | @font-face {font-family: "iconfont"; |
| 3 | - src: url('iconfont.eot?t=1489221986284'); /* IE9*/ | ||
| 4 | - src: url('iconfont.eot?t=1489221986284#iefix') format('embedded-opentype'), /* IE6-IE8 */ | ||
| 5 | - url('iconfont.woff?t=1489221986284') format('woff'), /* chrome, firefox */ | ||
| 6 | - url('iconfont.ttf?t=1489221986284') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/ | ||
| 7 | - url('iconfont.svg?t=1489221986284#iconfont') format('svg'); /* iOS 4.1- */ | 3 | + src: url('iconfont.eot?t=1489400188895'); /* IE9*/ |
| 4 | + src: url('iconfont.eot?t=1489400188895#iefix') format('embedded-opentype'), /* IE6-IE8 */ | ||
| 5 | + url('iconfont.woff?t=1489400188895') format('woff'), /* chrome, firefox */ | ||
| 6 | + url('iconfont.ttf?t=1489400188895') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/ | ||
| 7 | + url('iconfont.svg?t=1489400188895#iconfont') format('svg'); /* iOS 4.1- */ | ||
| 8 | } | 8 | } |
| 9 | 9 | ||
| 10 | .iconfont { | 10 | .iconfont { |
| @@ -15,7 +15,13 @@ | @@ -15,7 +15,13 @@ | ||
| 15 | -moz-osx-font-smoothing: grayscale; | 15 | -moz-osx-font-smoothing: grayscale; |
| 16 | } | 16 | } |
| 17 | 17 | ||
| 18 | +.icon-bofang1:before { content: "\e6bb"; } | ||
| 19 | + | ||
| 18 | .icon-quanping:before { content: "\e643"; } | 20 | .icon-quanping:before { content: "\e643"; } |
| 19 | 21 | ||
| 20 | .icon-quanping1:before { content: "\e665"; } | 22 | .icon-quanping1:before { content: "\e665"; } |
| 21 | 23 | ||
| 24 | +.icon-luzhi:before { content: "\e60e"; } | ||
| 25 | + | ||
| 26 | +.icon-luying:before { content: "\e63f"; } | ||
| 27 | + |
src/common/fonts/iconfont.eot
No preview for this file type
src/common/fonts/iconfont.js
| @@ -2,6 +2,14 @@ | @@ -2,6 +2,14 @@ | ||
| 2 | 2 | ||
| 3 | var svgSprite = '<svg>' + | 3 | var svgSprite = '<svg>' + |
| 4 | '' + | 4 | '' + |
| 5 | + '<symbol id="icon-bofang1" viewBox="0 0 1024 1024">' + | ||
| 6 | + '' + | ||
| 7 | + '<path d="M511.999488 921.323503c-226.076022 0-409.339251-183.276187-409.339251-409.322479 0-226.066759 183.263229-409.322479 409.339251-409.322479 226.055555 0 409.339251 183.255721 409.339251 409.322479C921.338739 738.048339 738.055043 921.323503 511.999488 921.323503zM511.999488 196.294688c-174.348844 0-315.698804 141.344169-315.698804 315.685869 0 174.362166 141.34996 315.686892 315.698804 315.686892 174.369311 0 315.698804-141.323703 315.698804-315.666426C827.698292 337.638857 686.367776 196.294688 511.999488 196.294688z" ></path>' + | ||
| 8 | + '' + | ||
| 9 | + '<path d="M395.793192 644.011616c0 4.736884 2.398728 9.373485 6.716234 12.051477 4.336949 2.65855 9.533511 2.738367 13.791663 0.599657L680.352535 524.652158c4.63679-2.318812 7.81531-7.115048 7.81531-12.651135 0-5.556553-3.177496-10.352789-7.81531-12.671601L416.300065 367.298364c-4.257128-2.118244-9.45369-2.038426-13.791663 0.6191-4.317506 2.677992-6.716234 7.314593-6.716234 12.051477L395.792168 644.011616 395.793192 644.011616z" ></path>' + | ||
| 10 | + '' + | ||
| 11 | + '</symbol>' + | ||
| 12 | + '' + | ||
| 5 | '<symbol id="icon-quanping" viewBox="0 0 1024 1024">' + | 13 | '<symbol id="icon-quanping" viewBox="0 0 1024 1024">' + |
| 6 | '' + | 14 | '' + |
| 7 | '<path d="M641.750109 384.100028l205.227128-204.519-0.704035 115.89966c-0.282433 9.611915 7.489578 18.09103 17.101493 17.808598l12.297071 0c9.611915-0.283456 17.667382-5.936199 17.808598-15.689331l0.565888-172.57752c0-0.14224 0.282433-9.187243 0.282433-9.187243 0.14224-4.804423-0.99056-9.187243-4.100388-12.297071-3.109828-3.109828-7.347339-5.086855-12.297071-4.946662l-8.763594 0.14224c-0.141216 0-0.278339 0-0.420579 0.14224L697.581696 98.166787c-9.611915 0.283456-17.667382 8.200776-17.808598 17.950837l0 12.297071c1.416256 11.44875 10.458189 18.092054 20.070104 17.808598l112.789832 0.283456-204.66124 203.814965c-9.329483 9.329483-9.329483 24.449855 0 33.778314 9.329483 9.470699 24.452925 9.470699 33.782408 0L641.750109 384.100028zM383.095141 576.889893 177.726797 780.705881l0.707105-115.338888c0.283456-9.607822-7.492648-18.086937-17.104563-17.808598l-13.001105 0c-9.611915 0.283456-17.667382 5.937223-17.808598 15.690354l-0.565888 172.718737c0 0.14224-0.282433 9.187243-0.282433 9.187243-0.14224 4.808516 0.99056 9.187243 4.096295 12.297071 3.109828 3.109828 7.351432 5.086855 12.297071 4.946662l8.762571-0.14224c0.14224 0 0.283456 0 0.425695-0.14224l171.873486 0.708128c9.607822-0.283456 17.667382-8.196683 17.808598-17.950837L344.93503 832.575226c-1.415232-11.44875-10.461259-18.092054-20.074198-17.808598L212.069977 814.483172 416.59 610.671277c9.329483-9.329483 9.329483-24.453948 0-33.782408C407.40685 567.41817 392.424624 567.41817 383.095141 576.889893L383.095141 576.889893zM894.047276 835.967486l-0.424672-172.718737c-0.283456-9.612938-8.200776-15.406898-17.809621-15.690354l-12.296047 0c-9.612938-0.278339-17.243733 8.200776-17.105586 17.808598l0.708128 115.903753L641.750109 576.889893c-9.329483-9.329483-24.452925-9.329483-33.782408 0-9.325389 9.328459-9.325389 24.452925 0 33.782408L812.490795 814.483172l-112.789832 0.283456c-9.611915-0.283456-18.515702 6.502088-20.073174 17.808598l0 12.297071c0.282433 9.611915 8.200776 17.667382 17.808598 17.950837l171.166381-0.708128c0.141216 0 0.282433 0.14224 0.424672 0.14224l8.763594 0.14224c4.803399 0.141216 9.187243-1.694595 12.296047-4.946662 3.109828-3.109828 4.238534-7.488555 4.097318-12.297071 0 0-0.14224-9.046027-0.14224-9.187243L894.047276 835.968509zM212.216309 146.506748l112.789832-0.283456c9.607822 0.283456 18.512632-6.502088 20.070104-17.808598L345.076246 116.116601c-0.283456-9.611915-8.196683-17.667382-17.808598-17.950837l-172.011632 0.708128c-0.14224 0-0.283456-0.14224-0.425695-0.14224l-8.761548-0.14224c-4.808516-0.141216-9.187243 1.694595-12.297071 4.946662-3.109828 3.109828-4.242627 7.488555-4.096295 12.297071 0 0 0.282433 9.046027 0.282433 9.187243l0.420579 172.718737c0.14224 9.608845 8.200776 15.406898 17.808598 15.686261l13.005198 0c9.611915 0.282433 17.242709-8.196683 17.10047-17.808598l-0.564865-115.334795 205.231221 203.958228c9.324366 9.329483 24.448832 9.329483 33.777291 0 9.329483-9.329483 9.329483-24.452925 0-33.782408L212.216309 146.506748 212.216309 146.506748zM212.216309 146.506748" ></path>' + | 15 | '<path d="M641.750109 384.100028l205.227128-204.519-0.704035 115.89966c-0.282433 9.611915 7.489578 18.09103 17.101493 17.808598l12.297071 0c9.611915-0.283456 17.667382-5.936199 17.808598-15.689331l0.565888-172.57752c0-0.14224 0.282433-9.187243 0.282433-9.187243 0.14224-4.804423-0.99056-9.187243-4.100388-12.297071-3.109828-3.109828-7.347339-5.086855-12.297071-4.946662l-8.763594 0.14224c-0.141216 0-0.278339 0-0.420579 0.14224L697.581696 98.166787c-9.611915 0.283456-17.667382 8.200776-17.808598 17.950837l0 12.297071c1.416256 11.44875 10.458189 18.092054 20.070104 17.808598l112.789832 0.283456-204.66124 203.814965c-9.329483 9.329483-9.329483 24.449855 0 33.778314 9.329483 9.470699 24.452925 9.470699 33.782408 0L641.750109 384.100028zM383.095141 576.889893 177.726797 780.705881l0.707105-115.338888c0.283456-9.607822-7.492648-18.086937-17.104563-17.808598l-13.001105 0c-9.611915 0.283456-17.667382 5.937223-17.808598 15.690354l-0.565888 172.718737c0 0.14224-0.282433 9.187243-0.282433 9.187243-0.14224 4.808516 0.99056 9.187243 4.096295 12.297071 3.109828 3.109828 7.351432 5.086855 12.297071 4.946662l8.762571-0.14224c0.14224 0 0.283456 0 0.425695-0.14224l171.873486 0.708128c9.607822-0.283456 17.667382-8.196683 17.808598-17.950837L344.93503 832.575226c-1.415232-11.44875-10.461259-18.092054-20.074198-17.808598L212.069977 814.483172 416.59 610.671277c9.329483-9.329483 9.329483-24.453948 0-33.782408C407.40685 567.41817 392.424624 567.41817 383.095141 576.889893L383.095141 576.889893zM894.047276 835.967486l-0.424672-172.718737c-0.283456-9.612938-8.200776-15.406898-17.809621-15.690354l-12.296047 0c-9.612938-0.278339-17.243733 8.200776-17.105586 17.808598l0.708128 115.903753L641.750109 576.889893c-9.329483-9.329483-24.452925-9.329483-33.782408 0-9.325389 9.328459-9.325389 24.452925 0 33.782408L812.490795 814.483172l-112.789832 0.283456c-9.611915-0.283456-18.515702 6.502088-20.073174 17.808598l0 12.297071c0.282433 9.611915 8.200776 17.667382 17.808598 17.950837l171.166381-0.708128c0.141216 0 0.282433 0.14224 0.424672 0.14224l8.763594 0.14224c4.803399 0.141216 9.187243-1.694595 12.296047-4.946662 3.109828-3.109828 4.238534-7.488555 4.097318-12.297071 0 0-0.14224-9.046027-0.14224-9.187243L894.047276 835.968509zM212.216309 146.506748l112.789832-0.283456c9.607822 0.283456 18.512632-6.502088 20.070104-17.808598L345.076246 116.116601c-0.283456-9.611915-8.196683-17.667382-17.808598-17.950837l-172.011632 0.708128c-0.14224 0-0.283456-0.14224-0.425695-0.14224l-8.761548-0.14224c-4.808516-0.141216-9.187243 1.694595-12.297071 4.946662-3.109828 3.109828-4.242627 7.488555-4.096295 12.297071 0 0 0.282433 9.046027 0.282433 9.187243l0.420579 172.718737c0.14224 9.608845 8.200776 15.406898 17.808598 15.686261l13.005198 0c9.611915 0.282433 17.242709-8.196683 17.10047-17.808598l-0.564865-115.334795 205.231221 203.958228c9.324366 9.329483 24.448832 9.329483 33.777291 0 9.329483-9.329483 9.329483-24.452925 0-33.782408L212.216309 146.506748 212.216309 146.506748zM212.216309 146.506748" ></path>' + |
| @@ -14,6 +22,18 @@ | @@ -14,6 +22,18 @@ | ||
| 14 | '' + | 22 | '' + |
| 15 | '</symbol>' + | 23 | '</symbol>' + |
| 16 | '' + | 24 | '' + |
| 25 | + '<symbol id="icon-luzhi" viewBox="0 0 1024 1024">' + | ||
| 26 | + '' + | ||
| 27 | + '<path d="M624.6 356.8 400.4 356.8c-23.2 0-42 18.8-42 42l0 224.2c0 23.2 18.8 42 42 42l224.2 0c23.2 0 42-18.8 42-42l0-224.2C666.6 375.6 647.8 356.8 624.6 356.8zM512.5 62.5C264.8 62.5 64 263.3 64 511s200.8 448.5 448.5 448.5S961 758.7 961 511 760.2 62.5 512.5 62.5zM512.5 875.4c-201.2 0-364.4-163.1-364.4-364.4 0-201.2 163.2-364.4 364.4-364.4S876.9 309.7 876.9 511 713.7 875.4 512.5 875.4z" ></path>' + | ||
| 28 | + '' + | ||
| 29 | + '</symbol>' + | ||
| 30 | + '' + | ||
| 31 | + '<symbol id="icon-luying" viewBox="0 0 1024 1024">' + | ||
| 32 | + '' + | ||
| 33 | + '<path d="M512 0.347136C229.875712 0.347136 0.347136 229.870592 0.347136 512S229.875712 1023.652864 512 1023.652864 1023.652864 794.129408 1023.652864 512 794.124288 0.347136 512 0.347136zM512 1004.345344C240.519168 1004.345344 19.654656 783.475712 19.654656 512S240.519168 19.654656 512 19.654656 1004.345344 240.524288 1004.345344 512 783.480832 1004.345344 512 1004.345344zM506.389504 635.112448l5.518336 0c74.887168 0 135.824384-60.937216 135.824384-135.824384l0-152.36096c0-74.887168-60.937216-135.824384-135.824384-135.824384l-5.518336 0c-74.887168 0-135.824384 60.918784-135.824384 135.824384l0 152.36096C370.56512 574.176256 431.501312 635.112448 506.389504 635.112448zM512 48.64C256.093184 48.64 48.64 256.093184 48.64 512S256.093184 975.36 512 975.36 975.36 767.906816 975.36 512 767.906816 48.64 512 48.64zM343.246848 346.908672c0-89.94816 73.194496-163.142656 163.142656-163.142656l5.518336 0c89.94816 0 163.142656 73.176064 163.142656 163.142656l0 152.361984c0 89.94816-73.194496 163.142656-163.142656 163.142656l-5.518336 0c-89.966592 0-163.142656-73.176064-163.142656-163.14368L343.246848 346.908672zM737.972224 491.165696c0 121.565184-95.357952 221.02016-215.175168 228.141056l0 92.772352 115.465216 0c7.539712 0 13.659136 6.119424 13.659136 13.659136s-6.119424 13.659136-13.659136 13.659136L379.998208 839.397376c-7.539712 0-13.659136-6.119424-13.659136-13.659136 0-7.539712 6.119424-13.659136 13.659136-13.659136l115.4816 0 0-92.772352c-119.817216-7.119872-215.175168-106.575872-215.175168-228.141056l0-57.239552c0-7.539712 6.119424-13.659136 13.659136-13.659136 7.539712 0 13.659136 6.119424 13.659136 13.659136l0 57.240576c0 111.112192 90.386432 201.516032 201.516032 201.516032 111.112192 0 201.516032-90.40384 201.516032-201.516032l0-54.945792c0-7.539712 6.119424-13.659136 13.659136-13.659136s13.659136 6.119424 13.659136 13.658112L737.973248 491.165696z" fill="#e6e6e6" ></path>' + | ||
| 34 | + '' + | ||
| 35 | + '</symbol>' + | ||
| 36 | + '' + | ||
| 17 | '</svg>' | 37 | '</svg>' |
| 18 | var script = function() { | 38 | var script = function() { |
| 19 | var scripts = document.getElementsByTagName('script') | 39 | var scripts = document.getElementsByTagName('script') |
src/common/fonts/iconfont.svg
| @@ -2,7 +2,7 @@ | @@ -2,7 +2,7 @@ | ||
| 2 | <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" > | 2 | <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" > |
| 3 | <svg xmlns="http://www.w3.org/2000/svg"> | 3 | <svg xmlns="http://www.w3.org/2000/svg"> |
| 4 | <metadata> | 4 | <metadata> |
| 5 | -Created by FontForge 20120731 at Sat Mar 11 16:46:26 2017 | 5 | +Created by FontForge 20120731 at Mon Mar 13 18:16:28 2017 |
| 6 | By admin | 6 | By admin |
| 7 | </metadata> | 7 | </metadata> |
| 8 | <defs> | 8 | <defs> |
| @@ -16,10 +16,10 @@ Created by FontForge 20120731 at Sat Mar 11 16:46:26 2017 | @@ -16,10 +16,10 @@ Created by FontForge 20120731 at Sat Mar 11 16:46:26 2017 | ||
| 16 | ascent="896" | 16 | ascent="896" |
| 17 | descent="-128" | 17 | descent="-128" |
| 18 | x-height="792" | 18 | x-height="792" |
| 19 | - bbox="44 -63 956 828" | 19 | + bbox="0 -128 1024 896" |
| 20 | underline-thickness="0" | 20 | underline-thickness="0" |
| 21 | underline-position="0" | 21 | underline-position="0" |
| 22 | - unicode-range="U+0078-E665" | 22 | + unicode-range="U+0078-E6BB" |
| 23 | /> | 23 | /> |
| 24 | <missing-glyph | 24 | <missing-glyph |
| 25 | /> | 25 | /> |
| @@ -35,6 +35,9 @@ Created by FontForge 20120731 at Sat Mar 11 16:46:26 2017 | @@ -35,6 +35,9 @@ Created by FontForge 20120731 at Sat Mar 11 16:46:26 2017 | ||
| 35 | d="M281 543q-27 -1 -53 -1h-83q-18 0 -36.5 -6t-32.5 -18.5t-23 -32t-9 -45.5v-76h912v41q0 16 -0.5 30t-0.5 18q0 13 -5 29t-17 29.5t-31.5 22.5t-49.5 9h-133v-97h-438v97zM955 310v-52q0 -23 0.5 -52t0.5 -58t-10.5 -47.5t-26 -30t-33 -16t-31.5 -4.5q-14 -1 -29.5 -0.5 | 35 | d="M281 543q-27 -1 -53 -1h-83q-18 0 -36.5 -6t-32.5 -18.5t-23 -32t-9 -45.5v-76h912v41q0 16 -0.5 30t-0.5 18q0 13 -5 29t-17 29.5t-31.5 22.5t-49.5 9h-133v-97h-438v97zM955 310v-52q0 -23 0.5 -52t0.5 -58t-10.5 -47.5t-26 -30t-33 -16t-31.5 -4.5q-14 -1 -29.5 -0.5 |
| 36 | t-29.5 0.5h-32l-45 128h-439l-44 -128h-29h-34q-20 0 -45 1q-25 0 -41 9.5t-25.5 23t-13.5 29.5t-4 30v167h911zM163 247q-12 0 -21 -8.5t-9 -21.5t9 -21.5t21 -8.5q13 0 22 8.5t9 21.5t-9 21.5t-22 8.5zM316 123q-8 -26 -14 -48q-5 -19 -10.5 -37t-7.5 -25t-3 -15t1 -14.5 | 36 | t-29.5 0.5h-32l-45 128h-439l-44 -128h-29h-34q-20 0 -45 1q-25 0 -41 9.5t-25.5 23t-13.5 29.5t-4 30v167h911zM163 247q-12 0 -21 -8.5t-9 -21.5t9 -21.5t21 -8.5q13 0 22 8.5t9 21.5t-9 21.5t-22 8.5zM316 123q-8 -26 -14 -48q-5 -19 -10.5 -37t-7.5 -25t-3 -15t1 -14.5 |
| 37 | t9.5 -10.5t21.5 -4h37h67h81h80h64h36q23 0 34 12t2 38q-5 13 -9.5 30.5t-9.5 34.5q-5 19 -11 39h-368zM336 498v228q0 11 2.5 23t10 21.5t20.5 15.5t34 6h188q31 0 51.5 -14.5t20.5 -52.5v-227h-327z" /> | 37 | t9.5 -10.5t21.5 -4h37h67h81h80h64h36q23 0 34 12t2 38q-5 13 -9.5 30.5t-9.5 34.5q-5 19 -11 39h-368zM336 498v228q0 11 2.5 23t10 21.5t20.5 15.5t34 6h188q31 0 51.5 -14.5t20.5 -52.5v-227h-327z" /> |
| 38 | + <glyph glyph-name="bofang1" unicode="" | ||
| 39 | +d="M512 -109q-111 0 -205.5 54.5t-149 149t-54.5 205.5t54.5 205.5t149 149t205.5 54.5t205.5 -54.5t149 -149t54.5 -205.5t-54.5 -205.5t-149 -149t-205.5 -54.5zM512 616q-131 0 -223.5 -92.5t-92.5 -223.5t92.5 -223.5t223.5 -92.5t223.5 92.5t92.5 223.5t-92.5 223.5 | ||
| 40 | +t-223.5 92.5zM396 168q0 -8 6.5 -12t13.5 -1l264 132q8 4 8 13t-8 13l-264 132q-7 3 -13.5 -1t-6.5 -12v-264v0z" /> | ||
| 38 | <glyph glyph-name="quanping" unicode="" | 41 | <glyph glyph-name="quanping" unicode="" |
| 39 | d="M642 428l205 204l-1 -115q0 -8 5 -13t12 -5h13q17 0 17 15l1 173v9q1 8 -4 12q-5 6 -12 5h-9v0l-171 1q-8 0 -13 -5.5t-5 -12.5v-12q1 -9 6.5 -13.5t13.5 -4.5l113 -1l-205 -203q-7 -7 -7 -17t7 -17t17 -7t17 7v0zM383 235l-205 -204v116q1 7 -4.5 12.5t-12.5 4.5h-13 | 42 | d="M642 428l205 204l-1 -115q0 -8 5 -13t12 -5h13q17 0 17 15l1 173v9q1 8 -4 12q-5 6 -12 5h-9v0l-171 1q-8 0 -13 -5.5t-5 -12.5v-12q1 -9 6.5 -13.5t13.5 -4.5l113 -1l-205 -203q-7 -7 -7 -17t7 -17t17 -7t17 7v0zM383 235l-205 -204v116q1 7 -4.5 12.5t-12.5 4.5h-13 |
| 40 | q-17 0 -17 -15l-1 -173v-9q-1 -8 4 -12q5 -6 12 -5h9v0l172 -1q7 0 12.5 5.5t5.5 12.5v12q-1 9 -7 13.5t-13 4.5l-113 1l205 203q7 7 7 17t-7 17t-17 7t-17 -7v0zM894 -24v173q-1 15 -18 15h-12q-8 1 -13 -4.5t-5 -12.5l1 -116l-205 204q-7 7 -17 7t-17 -7t-7 -17t7 -17 | 43 | q-17 0 -17 -15l-1 -173v-9q-1 -8 4 -12q5 -6 12 -5h9v0l172 -1q7 0 12.5 5.5t5.5 12.5v12q-1 9 -7 13.5t-13 4.5l-113 1l205 203q7 7 7 17t-7 17t-17 7t-17 -7v0zM894 -24v173q-1 15 -18 15h-12q-8 1 -13 -4.5t-5 -12.5l1 -116l-205 204q-7 7 -17 7t-17 -7t-7 -17t7 -17 |
| @@ -44,5 +47,13 @@ l205 -204q7 -7 17 -7t17 7t7 17t-7 17l-205 203v0zM212 665z" /> | @@ -44,5 +47,13 @@ l205 -204q7 -7 17 -7t17 7t7 17t-7 17l-205 203v0zM212 665z" /> | ||
| 44 | d="M844 828h-669q-46 0 -78.5 -32.5t-32.5 -78.5v-668q0 -47 32.5 -79.5t78.5 -32.5h669q46 0 78.5 32.5t32.5 79.5v668q0 46 -32.5 78.5t-78.5 32.5zM398 160q12 0 20 -8t8 -19.5t-8 -20t-20 -8.5h-138q-12 0 -20 9q-9 7 -9 19v139q0 12 8 20t19.5 8t20 -8t8.5 -20l-1 -71 | 47 | d="M844 828h-669q-46 0 -78.5 -32.5t-32.5 -78.5v-668q0 -47 32.5 -79.5t78.5 -32.5h669q46 0 78.5 32.5t32.5 79.5v668q0 46 -32.5 78.5t-78.5 32.5zM398 160q12 0 20 -8t8 -19.5t-8 -20t-20 -8.5h-138q-12 0 -20 9q-9 7 -9 19v139q0 12 8 20t19.5 8t20 -8t8.5 -20l-1 -71 |
| 45 | l133 133l40 -40l-134 -133h73zM419 432l-133 133l1 -71q0 -12 -8.5 -20t-20 -8t-19.5 8t-8 20v139q0 12 9 20q8 8 20 8h138q12 0 20 -8t8 -19.5t-8 -20t-20 -8.5h-73l134 -133zM788 132q0 -12 -9 -19q-8 -9 -20 -9h-138q-12 0 -20 8.5t-8 20t8 19.5t20 8h73l-134 133l40 40 | 48 | l133 133l40 -40l-134 -133h73zM419 432l-133 133l1 -71q0 -12 -8.5 -20t-20 -8t-19.5 8t-8 20v139q0 12 9 20q8 8 20 8h138q12 0 20 -8t8 -19.5t-8 -20t-20 -8.5h-73l134 -133zM788 132q0 -12 -9 -19q-8 -9 -20 -9h-138q-12 0 -20 8.5t-8 20t8 19.5t20 8h73l-134 133l40 40 |
| 46 | l133 -133l-1 71q0 12 8.5 20t20 8t19.5 -8t8 -20v-139zM788 494q0 -12 -8 -20t-19.5 -8t-20 8t-8.5 20l1 71l-133 -133l-40 40l134 133h-73q-12 0 -20 8.5t-8 20t8 19.5t20 8h138q12 0 20 -8q9 -8 9 -20v-139z" /> | 49 | l133 -133l-1 71q0 12 8.5 20t20 8t19.5 -8t8 -20v-139zM788 494q0 -12 -8 -20t-19.5 -8t-20 8t-8.5 20l1 71l-133 -133l-40 40l134 133h-73q-12 0 -20 8.5t-8 20t8 19.5t20 8h138q12 0 20 -8q9 -8 9 -20v-139z" /> |
| 50 | + <glyph glyph-name="luzhi" unicode="" | ||
| 51 | +d="M625 539h-225q-17 0 -29.5 -12t-12.5 -30v-224q0 -17 12.5 -29.5t29.5 -12.5h225q17 0 29.5 12.5t12.5 29.5v224q0 18 -12.5 30t-29.5 12zM512.5 834q-91.5 0 -174.5 -36t-143 -96t-95.5 -143t-35.5 -174t35.5 -174t95.5 -143t143 -96t174.5 -36t174.5 36t143 96 | ||
| 52 | +t95.5 143t35.5 174t-35.5 174t-95.5 143t-143 96t-174.5 36zM512.5 21q-98.5 0 -182.5 48.5t-133 132.5t-49 183t49 183t133 132.5t182.5 48.5t182.5 -48.5t133 -132.5t49 -183t-49 -183t-133 -132.5t-182.5 -48.5z" /> | ||
| 53 | + <glyph glyph-name="luying" unicode="" | ||
| 54 | +d="M512 896q-104 0 -198.5 -41t-163 -109.5t-109.5 -163t-41 -198.5t41 -198.5t109.5 -163t163 -109.5t198.5 -41t198.5 41t163 109.5t109.5 163t41 198.5t-41 198.5t-109.5 163t-163 109.5t-198.5 41zM512 -108q-100 0 -191 39t-157 105t-105 157t-39 191t39 191t105 157 | ||
| 55 | +t157 105t191 39t191 -39t157 -105t105 -157t39 -191t-39 -191t-105 -157t-157 -105t-191 -39zM506 261h6q56 0 96 40t40 96v152q0 56 -40 96t-96 40h-6q-56 0 -95.5 -40t-39.5 -96v-152q0 -56 39.5 -96t95.5 -40zM512 847q-94 0 -180 -36.5t-148 -98.5t-98.5 -148 | ||
| 56 | +t-36.5 -180t36.5 -180t98.5 -148t148 -98.5t180 -36.5t180 36.5t148 98.5t98.5 148t36.5 180t-36.5 180t-98.5 148t-148 98.5t-180 36.5zM343 549q0 68 48 115.5t115 47.5h6q67 0 115 -47.5t48 -115.5v-152q0 -68 -48 -115.5t-115 -47.5h-6q-67 0 -115 47.5t-48 115.5v152z | ||
| 57 | +M738 405q0 -91 -62.5 -157t-152.5 -71v-93h115q6 0 10 -4t4 -9.5t-4 -9.5t-10 -4h-258q-6 0 -10 4t-4 9.5t4 9.5t10 4h115v93q-90 5 -152.5 71t-62.5 157v57q0 6 4 10t10 4t10 -4t4 -10v-57q0 -84 59 -143t142 -59t142.5 59t59.5 143v55q0 5 4 9t9.5 4t9.5 -4t4 -9v-55z" /> | ||
| 47 | </font> | 58 | </font> |
| 48 | </defs></svg> | 59 | </defs></svg> |
src/common/fonts/iconfont.ttf
No preview for this file type
src/common/fonts/iconfont.woff
No preview for this file type
src/css/ide.css
| @@ -191,3 +191,27 @@ html, body { | @@ -191,3 +191,27 @@ html, body { | ||
| 191 | z-index: 999; | 191 | z-index: 999; |
| 192 | padding: 0 136px; | 192 | padding: 0 136px; |
| 193 | background-color: #23383f; } | 193 | background-color: #23383f; } |
| 194 | + .record-toolbox .record-ctrl .btn { | ||
| 195 | + padding: 0; | ||
| 196 | + height: 60px; | ||
| 197 | + float: left; | ||
| 198 | + line-height: 1; } | ||
| 199 | + .record-toolbox .record-ctrl .btn i { | ||
| 200 | + font-size: 48px; | ||
| 201 | + color: #fff; } | ||
| 202 | + .record-toolbox .record-ctrl .recording-time { | ||
| 203 | + float: left; | ||
| 204 | + z-index: 9; | ||
| 205 | + color: #FFF; | ||
| 206 | + font-size: 18px; | ||
| 207 | + height: 60px; | ||
| 208 | + line-height: 60px; } | ||
| 209 | + .record-toolbox .record-ctrl .recording-time:before { | ||
| 210 | + content: ''; | ||
| 211 | + display: inline-block; | ||
| 212 | + width: 8px; | ||
| 213 | + height: 8px; | ||
| 214 | + background-color: red; | ||
| 215 | + z-index: 99; | ||
| 216 | + margin: 2px 8px; | ||
| 217 | + border-radius: 50%; } |
src/css/main.css
| @@ -113,3 +113,27 @@ html, body { | @@ -113,3 +113,27 @@ html, body { | ||
| 113 | z-index: 999; | 113 | z-index: 999; |
| 114 | padding: 0 136px; | 114 | padding: 0 136px; |
| 115 | background-color: #23383f; } | 115 | background-color: #23383f; } |
| 116 | + .record-toolbox .record-ctrl .btn { | ||
| 117 | + padding: 0; | ||
| 118 | + height: 60px; | ||
| 119 | + float: left; | ||
| 120 | + line-height: 1; } | ||
| 121 | + .record-toolbox .record-ctrl .btn i { | ||
| 122 | + font-size: 48px; | ||
| 123 | + color: #fff; } | ||
| 124 | + .record-toolbox .record-ctrl .recording-time { | ||
| 125 | + float: left; | ||
| 126 | + z-index: 9; | ||
| 127 | + color: #FFF; | ||
| 128 | + font-size: 18px; | ||
| 129 | + height: 60px; | ||
| 130 | + line-height: 60px; } | ||
| 131 | + .record-toolbox .record-ctrl .recording-time:before { | ||
| 132 | + content: ''; | ||
| 133 | + display: inline-block; | ||
| 134 | + width: 8px; | ||
| 135 | + height: 8px; | ||
| 136 | + background-color: red; | ||
| 137 | + z-index: 99; | ||
| 138 | + margin: 2px 8px; | ||
| 139 | + border-radius: 50%; } |
src/gxb-ide/idedemo.html
| @@ -151,14 +151,24 @@ | @@ -151,14 +151,24 @@ | ||
| 151 | </div> | 151 | </div> |
| 152 | 152 | ||
| 153 | <div class="record-ctrl"> | 153 | <div class="record-ctrl"> |
| 154 | - <button class="btn btn-success getValue"> | ||
| 155 | - 播放代码 | ||
| 156 | - </button> | 154 | + <button id="start-recording" class="btn new-recording" type="button" data="1" title="开始录制"> |
| 155 | + <i class="icon iconfont icon-luying"></i> | ||
| 156 | + </button> | ||
| 157 | + <button id="re-recoding" class="btn new-recording" type="button" data="1" title="重新录制"> | ||
| 158 | + <i class="icon iconfont icon-luzhi"></i> | ||
| 159 | + </button> | ||
| 160 | + <button class="btn audio-play" title="播放预览" data="1"> | ||
| 161 | + <i class="icon iconfont icon-bofang1"></i> | ||
| 162 | + </button> | ||
| 163 | + | ||
| 164 | + <div class="recording-time" id="timer" value="">00:00:00</div> | ||
| 165 | + | ||
| 157 | </div> | 166 | </div> |
| 158 | 167 | ||
| 159 | </div> | 168 | </div> |
| 160 | 169 | ||
| 161 | </div> | 170 | </div> |
| 162 | 171 | ||
| 172 | + | ||
| 163 | </body> | 173 | </body> |
| 164 | </html> | 174 | </html> |
| 165 | \ No newline at end of file | 175 | \ No newline at end of file |
src/gxb-ide/java.html
| @@ -2,7 +2,7 @@ | @@ -2,7 +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 | - <title>IDE</title> | 5 | + <title>JAVA</title> |
| 6 | <link rel="stylesheet" href="../css/responsive/css/bootstrap.min.css"> | 6 | <link rel="stylesheet" href="../css/responsive/css/bootstrap.min.css"> |
| 7 | <link href="../css/codemirror.css" rel="stylesheet"> | 7 | <link href="../css/codemirror.css" rel="stylesheet"> |
| 8 | <link href="../css/reset.css" rel="stylesheet"> | 8 | <link href="../css/reset.css" rel="stylesheet"> |
| @@ -34,7 +34,6 @@ | @@ -34,7 +34,6 @@ | ||
| 34 | <script src="CodingEditer.js"></script> | 34 | <script src="CodingEditer.js"></script> |
| 35 | <script src="ToolBox.js"></script> | 35 | <script src="ToolBox.js"></script> |
| 36 | <script src="Ide.js"></script> | 36 | <script src="Ide.js"></script> |
| 37 | - | ||
| 38 | <script src="java.js"></script> | 37 | <script src="java.js"></script> |
| 39 | 38 | ||
| 40 | <script src="../js/gbdebug/mode/xml/xml.js"></script> | 39 | <script src="../js/gbdebug/mode/xml/xml.js"></script> |
| @@ -48,6 +47,33 @@ | @@ -48,6 +47,33 @@ | ||
| 48 | // var gxb_api = "http://192.168.80.223:8080" | 47 | // var gxb_api = "http://192.168.80.223:8080" |
| 49 | 48 | ||
| 50 | </script> | 49 | </script> |
| 50 | + <script> | ||
| 51 | + $(function(){ | ||
| 52 | + var languageid = 10; | ||
| 53 | + var userId = 826920; | ||
| 54 | + var ide = new GxbIde({ | ||
| 55 | + el: '#folder', | ||
| 56 | + languageid: languageid | ||
| 57 | + }); | ||
| 58 | + | ||
| 59 | + $('.getValue').click(function(){ | ||
| 60 | + // var treeLinkEditor = Dir.treeLinkEditor; | ||
| 61 | + console.log(CodingEditer.records); | ||
| 62 | + CodingEditer.getCodeMirrorValue(); | ||
| 63 | + CodingEditer.playCoding(); | ||
| 64 | + }) | ||
| 65 | + | ||
| 66 | + $('#compileBtn').click(function(){ | ||
| 67 | + ToolBox.compileMode(userId, languageid); | ||
| 68 | + }) | ||
| 69 | + | ||
| 70 | + }) | ||
| 71 | + | ||
| 72 | + </script> | ||
| 73 | + | ||
| 74 | + <script> | ||
| 75 | + | ||
| 76 | + </script> | ||
| 51 | 77 | ||
| 52 | </head> | 78 | </head> |
| 53 | <body> | 79 | <body> |
| @@ -99,14 +125,15 @@ | @@ -99,14 +125,15 @@ | ||
| 99 | <div id="toolbar"> | 125 | <div id="toolbar"> |
| 100 | <!-- Nav tabs --> | 126 | <!-- Nav tabs --> |
| 101 | <ul class="nav nav-tabs result-tabs need-compile" role="tablist" id="cmprun-tabs"> | 127 | <ul class="nav nav-tabs result-tabs need-compile" role="tablist" id="cmprun-tabs"> |
| 102 | - <li class="active"><a href="#stdin" role="tab" data-toggle="tab" class="text-warning">标准</a></li> | ||
| 103 | - <li><a href="#cmpinfo" role="tab" data-toggle="tab" class="text-warning">编译</a></li> | ||
| 104 | - <li><a href="#stderr" role="tab" data-toggle="tab" class="text-danger">错误</a></li> | ||
| 105 | - <li><a href="#output" role="tab" data-toggle="tab" class="text-success">结果</a></li> | 128 | + <li class="active"><a href="#stdin" role="tab" data-toggle="tab" class="text">标准</a></li> |
| 129 | + <li><a href="#cmpinfo" role="tab" data-toggle="tab" class="text">编译</a></li> | ||
| 130 | + <li><a href="#stderr" role="tab" data-toggle="tab" class="text">错误</a></li> | ||
| 131 | + <li><a href="#output" role="tab" data-toggle="tab" class="text">结果</a></li> | ||
| 106 | </ul> | 132 | </ul> |
| 107 | - <div class="pull-right"> | 133 | + <div class="pull-right func"> |
| 108 | <a class="btn btn-success" id="compileBtn">编译运行</a> | 134 | <a class="btn btn-success" id="compileBtn">编译运行</a> |
| 109 | - <a class="btn btn-success"><i class="icon iconfont icon-quanping1"></i></a> | 135 | + <a id="full-screen" class=""><i class="icon iconfont icon-quanping1"></i></a> |
| 136 | + <!-- <a id="back-screen" class=""><i class="icon iconfont icon-quanping1"></i></a> --> | ||
| 110 | </div> | 137 | </div> |
| 111 | </div> | 138 | </div> |
| 112 | 139 | ||
| @@ -124,15 +151,25 @@ | @@ -124,15 +151,25 @@ | ||
| 124 | </div> | 151 | </div> |
| 125 | </div> | 152 | </div> |
| 126 | 153 | ||
| 127 | - <div class="record-contrl"> | ||
| 128 | - <button class="btn btn-success getValue"> | ||
| 129 | - 播放代码 | ||
| 130 | - </button> | 154 | + <div class="record-ctrl"> |
| 155 | + <button id="start-recording" class="btn new-recording" type="button" data="1" title="开始录制"> | ||
| 156 | + <i class="icon iconfont icon-luying"></i> | ||
| 157 | + </button> | ||
| 158 | + <button id="re-recoding" class="btn new-recording" type="button" data="1" title="重新录制"> | ||
| 159 | + <i class="icon iconfont icon-luzhi"></i> | ||
| 160 | + </button> | ||
| 161 | + <button class="btn audio-play" title="播放预览" data="1"> | ||
| 162 | + <i class="icon iconfont icon-bofang1"></i> | ||
| 163 | + </button> | ||
| 164 | + | ||
| 165 | + <div class="recording-time" id="timer" value="">00:00:00</div> | ||
| 166 | + | ||
| 131 | </div> | 167 | </div> |
| 132 | 168 | ||
| 133 | </div> | 169 | </div> |
| 134 | 170 | ||
| 135 | </div> | 171 | </div> |
| 136 | 172 | ||
| 173 | + | ||
| 137 | </body> | 174 | </body> |
| 138 | </html> | 175 | </html> |
| 139 | \ No newline at end of file | 176 | \ No newline at end of file |
src/gxb-ide/java.js
| 1 | + | ||
| 1 | $(function(){ | 2 | $(function(){ |
| 2 | var languageid = 10; | 3 | var languageid = 10; |
| 3 | var userId = 826920; | 4 | var userId = 826920; |
| @@ -17,7 +18,4 @@ $(function(){ | @@ -17,7 +18,4 @@ $(function(){ | ||
| 17 | ToolBox.compileMode(userId, languageid); | 18 | ToolBox.compileMode(userId, languageid); |
| 18 | }) | 19 | }) |
| 19 | 20 | ||
| 20 | - | ||
| 21 | - | ||
| 22 | - | ||
| 23 | -}) | ||
| 24 | \ No newline at end of file | 21 | \ No newline at end of file |
| 22 | +}) |
src/gxb-ide/test.js
0 → 100644
src/gxb-ide/web.html
| 1 | +<!DOCTYPE html> | ||
| 2 | +<html lang="en"> | ||
| 3 | +<head> | ||
| 4 | + <meta charset="UTF-8"> | ||
| 5 | + <title>Document</title> | ||
| 6 | + <script src="../js/handlebars-v4.0.5.js"></script> | ||
| 7 | + <script src="../js/jquery-1.7.1.js"></script> | ||
| 8 | + | ||
| 9 | +<script> | ||
| 10 | + var id = 10; | ||
| 11 | + if (id === 10) { | ||
| 12 | + $.getScript("test.js"); //加载js文件 | ||
| 13 | + } | ||
| 14 | + | ||
| 15 | +</script> | ||
| 16 | +</head> | ||
| 17 | +<body> | ||
| 18 | + | ||
| 19 | + <div id="entry"> | ||
| 20 | + | ||
| 21 | + </div> | ||
| 22 | + | ||
| 23 | +<script> | ||
| 24 | + $(function(){ | ||
| 25 | + var source = $("#entry-template").html(); | ||
| 26 | + var template = Handlebars.compile(source); | ||
| 27 | + var html = template(); | ||
| 28 | + | ||
| 29 | + $('#entry').html(html); | ||
| 30 | + | ||
| 31 | + }) | ||
| 32 | + | ||
| 33 | +</script> | ||
| 34 | + | ||
| 35 | +<script id="entry-template" type="text/x-handlebars-template"> | ||
| 36 | + <div class="entry"> | ||
| 37 | + <h1>Hello</h1> | ||
| 38 | + <div class="body"> | ||
| 39 | + dksjflka | ||
| 40 | + </div> | ||
| 41 | + </div> | ||
| 42 | +</script> | ||
| 43 | + | ||
| 44 | +</body> | ||
| 45 | +</html> | ||
| 0 | \ No newline at end of file | 46 | \ No newline at end of file |