and others
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy
4 | of this software and associated documentation files (the "Software"), to deal
5 | in the Software without restriction, including without limitation the rights
6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7 | copies of the Software, and to permit persons to whom the Software is
8 | furnished to do so, subject to the following conditions:
9 |
10 | The above copyright notice and this permission notice shall be included in
11 | all copies or substantial portions of the Software.
12 |
13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19 | THE SOFTWARE.
20 |
--------------------------------------------------------------------------------
/libs/codemirror/theme/eclipse.css:
--------------------------------------------------------------------------------
1 | .cm-s-eclipse span.cm-meta {color: #FF1717;}
2 | .cm-s-eclipse span.cm-keyword { line-height: 1em; font-weight: bold; color: #7F0055; }
3 | .cm-s-eclipse span.cm-atom {color: #219;}
4 | .cm-s-eclipse span.cm-number {color: #164;}
5 | .cm-s-eclipse span.cm-def {color: #00f;}
6 | .cm-s-eclipse span.cm-variable {color: black;}
7 | .cm-s-eclipse span.cm-variable-2 {color: #0000C0;}
8 | .cm-s-eclipse span.cm-variable-3 {color: #0000C0;}
9 | .cm-s-eclipse span.cm-property {color: black;}
10 | .cm-s-eclipse span.cm-operator {color: black;}
11 | .cm-s-eclipse span.cm-comment {color: #3F7F5F;}
12 | .cm-s-eclipse span.cm-string {color: #2A00FF;}
13 | .cm-s-eclipse span.cm-string-2 {color: #f50;}
14 | .cm-s-eclipse span.cm-qualifier {color: #555;}
15 | .cm-s-eclipse span.cm-builtin {color: #30a;}
16 | .cm-s-eclipse span.cm-bracket {color: #cc7;}
17 | .cm-s-eclipse span.cm-tag {color: #170;}
18 | .cm-s-eclipse span.cm-attribute {color: #00c;}
19 | .cm-s-eclipse span.cm-link {color: #219;}
20 | .cm-s-eclipse span.cm-error {color: #f00;}
21 |
22 | .cm-s-eclipse .CodeMirror-activeline-background {background: #e8f2ff !important;}
23 | .cm-s-eclipse .CodeMirror-matchingbracket {outline:1px solid grey; color:black !important;}
24 |
--------------------------------------------------------------------------------
/demos/MultiData/OSM.htm:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | 加载显示OSM地图
6 |
7 |
8 |
15 |
16 |
17 |
18 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/libs/codemirror/addon/lint/css-lint.js:
--------------------------------------------------------------------------------
1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others
2 | // Distributed under an MIT license: http://codemirror.net/LICENSE
3 |
4 | // Depends on csslint.js from https://github.com/stubbornella/csslint
5 |
6 | // declare global: CSSLint
7 |
8 | (function(mod) {
9 | if (typeof exports == "object" && typeof module == "object") // CommonJS
10 | mod(require("../../lib/codemirror"));
11 | else if (typeof define == "function" && define.amd) // AMD
12 | define(["../../lib/codemirror"], mod);
13 | else // Plain browser env
14 | mod(CodeMirror);
15 | })(function(CodeMirror) {
16 | "use strict";
17 |
18 | CodeMirror.registerHelper("lint", "css", function(text) {
19 | var found = [];
20 | if (!window.CSSLint) return found;
21 | var results = CSSLint.verify(text), messages = results.messages, message = null;
22 | for ( var i = 0; i < messages.length; i++) {
23 | message = messages[i];
24 | var startLine = message.line -1, endLine = message.line -1, startCol = message.col -1, endCol = message.col;
25 | found.push({
26 | from: CodeMirror.Pos(startLine, startCol),
27 | to: CodeMirror.Pos(endLine, endCol),
28 | message: message.message,
29 | severity : message.type
30 | });
31 | }
32 | return found;
33 | });
34 |
35 | });
36 |
--------------------------------------------------------------------------------
/libs/jqueryEasyui/themes/black/combo.css:
--------------------------------------------------------------------------------
1 | .combo {
2 | display: inline-block;
3 | white-space: nowrap;
4 | margin: 0;
5 | padding: 0;
6 | border-width: 1px;
7 | border-style: solid;
8 | overflow: hidden;
9 | vertical-align: middle;
10 | }
11 | .combo .combo-text {
12 | font-size: 12px;
13 | border: 0px;
14 | margin: 0;
15 | padding: 0px 2px;
16 | vertical-align: baseline;
17 | }
18 | .combo-arrow {
19 | width: 18px;
20 | height: 20px;
21 | overflow: hidden;
22 | display: inline-block;
23 | vertical-align: top;
24 | cursor: pointer;
25 | opacity: 0.6;
26 | filter: alpha(opacity=60);
27 | }
28 | .combo-arrow-hover {
29 | opacity: 1.0;
30 | filter: alpha(opacity=100);
31 | }
32 | .combo-panel {
33 | overflow: auto;
34 | }
35 | .combo-arrow {
36 | background: url('images/combo_arrow.png') no-repeat center center;
37 | }
38 | .combo-panel {
39 | background-color: #666;
40 | }
41 | .combo {
42 | border-color: #000;
43 | background-color: #fff;
44 | }
45 | .combo-arrow {
46 | background-color: #3d3d3d;
47 | }
48 | .combo-arrow-hover {
49 | background-color: #777;
50 | }
51 | .combo-arrow:hover {
52 | background-color: #777;
53 | }
54 | .combo .textbox-icon-disabled:hover {
55 | cursor: default;
56 | }
57 | .textbox-invalid {
58 | border-color: #ffa8a8;
59 | background-color: #fff3f3;
60 | }
61 |
--------------------------------------------------------------------------------
/libs/jqueryEasyui/themes/metro/combo.css:
--------------------------------------------------------------------------------
1 | .combo {
2 | display: inline-block;
3 | white-space: nowrap;
4 | margin: 0;
5 | padding: 0;
6 | border-width: 1px;
7 | border-style: solid;
8 | overflow: hidden;
9 | vertical-align: middle;
10 | }
11 | .combo .combo-text {
12 | font-size: 12px;
13 | border: 0px;
14 | margin: 0;
15 | padding: 0px 2px;
16 | vertical-align: baseline;
17 | }
18 | .combo-arrow {
19 | width: 18px;
20 | height: 20px;
21 | overflow: hidden;
22 | display: inline-block;
23 | vertical-align: top;
24 | cursor: pointer;
25 | opacity: 0.6;
26 | filter: alpha(opacity=60);
27 | }
28 | .combo-arrow-hover {
29 | opacity: 1.0;
30 | filter: alpha(opacity=100);
31 | }
32 | .combo-panel {
33 | overflow: auto;
34 | }
35 | .combo-arrow {
36 | background: url('images/combo_arrow.png') no-repeat center center;
37 | }
38 | .combo-panel {
39 | background-color: #fff;
40 | }
41 | .combo {
42 | border-color: #ddd;
43 | background-color: #fff;
44 | }
45 | .combo-arrow {
46 | background-color: #ffffff;
47 | }
48 | .combo-arrow-hover {
49 | background-color: #E6E6E6;
50 | }
51 | .combo-arrow:hover {
52 | background-color: #E6E6E6;
53 | }
54 | .combo .textbox-icon-disabled:hover {
55 | cursor: default;
56 | }
57 | .textbox-invalid {
58 | border-color: #ffa8a8;
59 | background-color: #fff3f3;
60 | }
61 |
--------------------------------------------------------------------------------
/libs/jqueryEasyui/themes/gray/combo.css:
--------------------------------------------------------------------------------
1 | .combo {
2 | display: inline-block;
3 | white-space: nowrap;
4 | margin: 0;
5 | padding: 0;
6 | border-width: 1px;
7 | border-style: solid;
8 | overflow: hidden;
9 | vertical-align: middle;
10 | }
11 | .combo .combo-text {
12 | font-size: 12px;
13 | border: 0px;
14 | margin: 0;
15 | padding: 0px 2px;
16 | vertical-align: baseline;
17 | }
18 | .combo-arrow {
19 | width: 18px;
20 | height: 20px;
21 | overflow: hidden;
22 | display: inline-block;
23 | vertical-align: top;
24 | cursor: pointer;
25 | opacity: 0.6;
26 | filter: alpha(opacity=60);
27 | }
28 | .combo-arrow-hover {
29 | opacity: 1.0;
30 | filter: alpha(opacity=100);
31 | }
32 | .combo-panel {
33 | overflow: auto;
34 | }
35 | .combo-arrow {
36 | background: url('images/combo_arrow.png') no-repeat center center;
37 | }
38 | .combo-panel {
39 | background-color: #ffffff;
40 | }
41 | .combo {
42 | border-color: #D3D3D3;
43 | background-color: #fff;
44 | }
45 | .combo-arrow {
46 | background-color: #f3f3f3;
47 | }
48 | .combo-arrow-hover {
49 | background-color: #e2e2e2;
50 | }
51 | .combo-arrow:hover {
52 | background-color: #e2e2e2;
53 | }
54 | .combo .textbox-icon-disabled:hover {
55 | cursor: default;
56 | }
57 | .textbox-invalid {
58 | border-color: #ffa8a8;
59 | background-color: #fff3f3;
60 | }
61 |
--------------------------------------------------------------------------------
/libs/jqueryEasyui/themes/bootstrap/combo.css:
--------------------------------------------------------------------------------
1 | .combo {
2 | display: inline-block;
3 | white-space: nowrap;
4 | margin: 0;
5 | padding: 0;
6 | border-width: 1px;
7 | border-style: solid;
8 | overflow: hidden;
9 | vertical-align: middle;
10 | }
11 | .combo .combo-text {
12 | font-size: 12px;
13 | border: 0px;
14 | margin: 0;
15 | padding: 0px 2px;
16 | vertical-align: baseline;
17 | }
18 | .combo-arrow {
19 | width: 18px;
20 | height: 20px;
21 | overflow: hidden;
22 | display: inline-block;
23 | vertical-align: top;
24 | cursor: pointer;
25 | opacity: 0.6;
26 | filter: alpha(opacity=60);
27 | }
28 | .combo-arrow-hover {
29 | opacity: 1.0;
30 | filter: alpha(opacity=100);
31 | }
32 | .combo-panel {
33 | overflow: auto;
34 | }
35 | .combo-arrow {
36 | background: url('images/combo_arrow.png') no-repeat center center;
37 | }
38 | .combo-panel {
39 | background-color: #ffffff;
40 | }
41 | .combo {
42 | border-color: #D4D4D4;
43 | background-color: #fff;
44 | }
45 | .combo-arrow {
46 | background-color: #F2F2F2;
47 | }
48 | .combo-arrow-hover {
49 | background-color: #e6e6e6;
50 | }
51 | .combo-arrow:hover {
52 | background-color: #e6e6e6;
53 | }
54 | .combo .textbox-icon-disabled:hover {
55 | cursor: default;
56 | }
57 | .textbox-invalid {
58 | border-color: #ffa8a8;
59 | background-color: #fff3f3;
60 | }
61 |
--------------------------------------------------------------------------------
/libs/jqueryEasyui/themes/default/combo.css:
--------------------------------------------------------------------------------
1 | .combo {
2 | display: inline-block;
3 | white-space: nowrap;
4 | margin: 0;
5 | padding: 0;
6 | border-width: 1px;
7 | border-style: solid;
8 | overflow: hidden;
9 | vertical-align: middle;
10 | }
11 | .combo .combo-text {
12 | font-size: 12px;
13 | border: 0px;
14 | margin: 0;
15 | padding: 0px 2px;
16 | vertical-align: baseline;
17 | }
18 | .combo-arrow {
19 | width: 18px;
20 | height: 20px;
21 | overflow: hidden;
22 | display: inline-block;
23 | vertical-align: top;
24 | cursor: pointer;
25 | opacity: 0.6;
26 | filter: alpha(opacity=60);
27 | }
28 | .combo-arrow-hover {
29 | opacity: 1.0;
30 | filter: alpha(opacity=100);
31 | }
32 | .combo-panel {
33 | overflow: auto;
34 | }
35 | .combo-arrow {
36 | background: url('images/combo_arrow.png') no-repeat center center;
37 | }
38 | .combo-panel {
39 | background-color: #ffffff;
40 | }
41 | .combo {
42 | border-color: #95B8E7;
43 | background-color: #fff;
44 | }
45 | .combo-arrow {
46 | background-color: #E0ECFF;
47 | }
48 | .combo-arrow-hover {
49 | background-color: #eaf2ff;
50 | }
51 | .combo-arrow:hover {
52 | background-color: #eaf2ff;
53 | }
54 | .combo .textbox-icon-disabled:hover {
55 | cursor: default;
56 | }
57 | .textbox-invalid {
58 | border-color: #ffa8a8;
59 | background-color: #fff3f3;
60 | }
61 |
--------------------------------------------------------------------------------
/libs/codemirror/mode/diff/diff.js:
--------------------------------------------------------------------------------
1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others
2 | // Distributed under an MIT license: http://codemirror.net/LICENSE
3 |
4 | (function(mod) {
5 | if (typeof exports == "object" && typeof module == "object") // CommonJS
6 | mod(require("../../lib/codemirror"));
7 | else if (typeof define == "function" && define.amd) // AMD
8 | define(["../../lib/codemirror"], mod);
9 | else // Plain browser env
10 | mod(CodeMirror);
11 | })(function(CodeMirror) {
12 | "use strict";
13 |
14 | CodeMirror.defineMode("diff", function() {
15 |
16 | var TOKEN_NAMES = {
17 | '+': 'positive',
18 | '-': 'negative',
19 | '@': 'meta'
20 | };
21 |
22 | return {
23 | token: function(stream) {
24 | var tw_pos = stream.string.search(/[\t ]+?$/);
25 |
26 | if (!stream.sol() || tw_pos === 0) {
27 | stream.skipToEnd();
28 | return ("error " + (
29 | TOKEN_NAMES[stream.string.charAt(0)] || '')).replace(/ $/, '');
30 | }
31 |
32 | var token_name = TOKEN_NAMES[stream.peek()] || stream.skipToEnd();
33 |
34 | if (tw_pos === -1) {
35 | stream.skipToEnd();
36 | } else {
37 | stream.pos = tw_pos;
38 | }
39 |
40 | return token_name;
41 | }
42 | };
43 | });
44 |
45 | CodeMirror.defineMIME("text/x-diff", "diff");
46 |
47 | });
48 |
--------------------------------------------------------------------------------
/demos/Controls/FullScreen.htm:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | 加载全屏显示控件
6 |
7 |
8 |
14 |
15 |
16 |
17 |
18 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/libs/codemirror/addon/tern/worker.js:
--------------------------------------------------------------------------------
1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others
2 | // Distributed under an MIT license: http://codemirror.net/LICENSE
3 |
4 | // declare global: tern, server
5 |
6 | var server;
7 |
8 | this.onmessage = function(e) {
9 | var data = e.data;
10 | switch (data.type) {
11 | case "init": return startServer(data.defs, data.plugins, data.scripts);
12 | case "add": return server.addFile(data.name, data.text);
13 | case "del": return server.delFile(data.name);
14 | case "req": return server.request(data.body, function(err, reqData) {
15 | postMessage({id: data.id, body: reqData, err: err && String(err)});
16 | });
17 | case "getFile":
18 | var c = pending[data.id];
19 | delete pending[data.id];
20 | return c(data.err, data.text);
21 | default: throw new Error("Unknown message type: " + data.type);
22 | }
23 | };
24 |
25 | var nextId = 0, pending = {};
26 | function getFile(file, c) {
27 | postMessage({type: "getFile", name: file, id: ++nextId});
28 | pending[nextId] = c;
29 | }
30 |
31 | function startServer(defs, plugins, scripts) {
32 | if (scripts) importScripts.apply(null, scripts);
33 |
34 | server = new tern.Server({
35 | getFile: getFile,
36 | async: true,
37 | defs: defs,
38 | plugins: plugins
39 | });
40 | }
41 |
42 | var console = {
43 | log: function(v) { postMessage({type: "debug", message: v}); }
44 | };
45 |
--------------------------------------------------------------------------------
/libs/codemirror/addon/lint/coffeescript-lint.js:
--------------------------------------------------------------------------------
1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others
2 | // Distributed under an MIT license: http://codemirror.net/LICENSE
3 |
4 | // Depends on coffeelint.js from http://www.coffeelint.org/js/coffeelint.js
5 |
6 | // declare global: coffeelint
7 |
8 | (function(mod) {
9 | if (typeof exports == "object" && typeof module == "object") // CommonJS
10 | mod(require("../../lib/codemirror"));
11 | else if (typeof define == "function" && define.amd) // AMD
12 | define(["../../lib/codemirror"], mod);
13 | else // Plain browser env
14 | mod(CodeMirror);
15 | })(function(CodeMirror) {
16 | "use strict";
17 |
18 | CodeMirror.registerHelper("lint", "coffeescript", function(text) {
19 | var found = [];
20 | var parseError = function(err) {
21 | var loc = err.lineNumber;
22 | found.push({from: CodeMirror.Pos(loc-1, 0),
23 | to: CodeMirror.Pos(loc, 0),
24 | severity: err.level,
25 | message: err.message});
26 | };
27 | try {
28 | var res = coffeelint.lint(text);
29 | for(var i = 0; i < res.length; i++) {
30 | parseError(res[i]);
31 | }
32 | } catch(e) {
33 | found.push({from: CodeMirror.Pos(e.location.first_line, 0),
34 | to: CodeMirror.Pos(e.location.last_line, e.location.last_column),
35 | severity: 'error',
36 | message: e.message});
37 | }
38 | return found;
39 | });
40 |
41 | });
42 |
--------------------------------------------------------------------------------
/libs/codemirror/demo/closetag.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Close-Tag Demo
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
18 |
30 |
31 |
32 | Close-Tag Demo
33 |
34 |
35 |
41 |
42 |
--------------------------------------------------------------------------------
/libs/codemirror/addon/runmode/colorize.js:
--------------------------------------------------------------------------------
1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others
2 | // Distributed under an MIT license: http://codemirror.net/LICENSE
3 |
4 | (function(mod) {
5 | if (typeof exports == "object" && typeof module == "object") // CommonJS
6 | mod(require("../../lib/codemirror"), require("./runmode"));
7 | else if (typeof define == "function" && define.amd) // AMD
8 | define(["../../lib/codemirror", "./runmode"], mod);
9 | else // Plain browser env
10 | mod(CodeMirror);
11 | })(function(CodeMirror) {
12 | "use strict";
13 |
14 | var isBlock = /^(p|li|div|h\\d|pre|blockquote|td)$/;
15 |
16 | function textContent(node, out) {
17 | if (node.nodeType == 3) return out.push(node.nodeValue);
18 | for (var ch = node.firstChild; ch; ch = ch.nextSibling) {
19 | textContent(ch, out);
20 | if (isBlock.test(node.nodeType)) out.push("\n");
21 | }
22 | }
23 |
24 | CodeMirror.colorize = function(collection, defaultMode) {
25 | if (!collection) collection = document.body.getElementsByTagName("pre");
26 |
27 | for (var i = 0; i < collection.length; ++i) {
28 | var node = collection[i];
29 | var mode = node.getAttribute("data-lang") || defaultMode;
30 | if (!mode) continue;
31 |
32 | var text = [];
33 | textContent(node, text);
34 | node.innerHTML = "";
35 | CodeMirror.runMode(text.join(""), mode, node);
36 |
37 | node.className += " cm-s-default";
38 | }
39 | };
40 | });
41 |
--------------------------------------------------------------------------------
/libs/codemirror/mode/asciiarmor/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: ASCII Armor (PGP) mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
24 |
25 |
26 | ASCII Armor (PGP) mode
27 |
28 | -----BEGIN PGP MESSAGE-----
29 | Version: OpenPrivacy 0.99
30 |
31 | yDgBO22WxBHv7O8X7O/jygAEzol56iUKiXmV+XmpCtmpqQUKiQrFqclFqUDBovzS
32 | vBSFjNSiVHsuAA==
33 | =njUN
34 | -----END PGP MESSAGE-----
35 |
36 |
37 |
42 |
43 | MIME types
44 | defined: application/pgp, application/pgp-keys, application/pgp-signature
45 |
46 |
47 |
--------------------------------------------------------------------------------
/libs/codemirror/mode/htmlembedded/htmlembedded.js:
--------------------------------------------------------------------------------
1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others
2 | // Distributed under an MIT license: http://codemirror.net/LICENSE
3 |
4 | (function(mod) {
5 | if (typeof exports == "object" && typeof module == "object") // CommonJS
6 | mod(require("../../lib/codemirror"), require("../htmlmixed/htmlmixed"),
7 | require("../../addon/mode/multiplex"));
8 | else if (typeof define == "function" && define.amd) // AMD
9 | define(["../../lib/codemirror", "../htmlmixed/htmlmixed",
10 | "../../addon/mode/multiplex"], mod);
11 | else // Plain browser env
12 | mod(CodeMirror);
13 | })(function(CodeMirror) {
14 | "use strict";
15 |
16 | CodeMirror.defineMode("htmlembedded", function(config, parserConfig) {
17 | return CodeMirror.multiplexingMode(CodeMirror.getMode(config, "htmlmixed"), {
18 | open: parserConfig.open || parserConfig.scriptStartRegex || "<%",
19 | close: parserConfig.close || parserConfig.scriptEndRegex || "%>",
20 | mode: CodeMirror.getMode(config, parserConfig.scriptingModeSpec)
21 | });
22 | }, "htmlmixed");
23 |
24 | CodeMirror.defineMIME("application/x-ejs", {name: "htmlembedded", scriptingModeSpec:"javascript"});
25 | CodeMirror.defineMIME("application/x-aspx", {name: "htmlembedded", scriptingModeSpec:"text/x-csharp"});
26 | CodeMirror.defineMIME("application/x-jsp", {name: "htmlembedded", scriptingModeSpec:"text/x-java"});
27 | CodeMirror.defineMIME("application/x-erb", {name: "htmlembedded", scriptingModeSpec:"ruby"});
28 | });
29 |
--------------------------------------------------------------------------------
/libs/codemirror/mode/ntriples/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: NTriples mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
15 |
28 |
29 |
30 | NTriples mode
31 |
32 |
33 | .
34 | "literal 1" .
35 | _:bnode3 .
36 | _:bnode4 "literal 2"@lang .
37 | _:bnode5 "literal 3"^^ .
38 |
39 |
40 |
41 |
44 | MIME types defined: text/n-triples.
45 |
46 |
--------------------------------------------------------------------------------
/libs/codemirror/demo/resize.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Autoresize Demo
4 |
5 |
6 |
7 |
8 |
9 |
10 |
16 |
28 |
29 |
30 | Autoresize Demo
31 |
32 | .CodeMirror {
33 | border: 1px solid #eee;
34 | height: auto;
35 | }
36 |
37 |
38 | By setting an editor's height style
39 | to auto and giving
40 | the viewportMargin
41 | a value of Infinity, CodeMirror can be made to
42 | automatically resize to fit its content.
43 |
44 |
50 |
51 |
52 |
--------------------------------------------------------------------------------
/libs/codemirror/mode/spreadsheet/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Spreadsheet mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
25 |
26 |
27 | Spreadsheet mode
28 | =IF(A1:B2, TRUE, FALSE) / 100
29 |
30 |
37 |
38 | MIME types defined: text/x-spreadsheet.
39 |
40 | The Spreadsheet Mode
41 | Created by Robert Plummer
42 |
43 |
--------------------------------------------------------------------------------
/libs/codemirror/demo/matchtags.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Tag Matcher Demo
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
15 |
27 |
28 |
29 | Tag Matcher Demo
30 |
31 |
32 |
33 |
34 |
44 |
45 | Put the cursor on or inside a pair of tags to highlight them.
46 | Press Ctrl-J to jump to the tag that matches the one under the
47 | cursor.
48 |
49 |
--------------------------------------------------------------------------------
/libs/codemirror/mode/http/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: HTTP mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
24 |
25 |
26 | HTTP mode
27 |
28 |
29 |
30 | POST /somewhere HTTP/1.1
31 | Host: example.com
32 | If-Modified-Since: Sat, 29 Oct 1994 19:43:31 GMT
33 | Content-Type: application/x-www-form-urlencoded;
34 | charset=utf-8
35 | User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/536.11 (KHTML, like Gecko) Ubuntu/12.04 Chromium/20.0.1132.47 Chrome/20.0.1132.47 Safari/536.11
36 |
37 | This is the request body!
38 |
39 |
40 |
43 |
44 | MIME types defined: message/http.
45 |
46 |
--------------------------------------------------------------------------------
/libs/codemirror/theme/cobalt.css:
--------------------------------------------------------------------------------
1 | .cm-s-cobalt.CodeMirror { background: #002240; color: white; }
2 | .cm-s-cobalt div.CodeMirror-selected { background: #b36539 !important; }
3 | .cm-s-cobalt.CodeMirror ::selection { background: rgba(179, 101, 57, .99); }
4 | .cm-s-cobalt.CodeMirror ::-moz-selection { background: rgba(179, 101, 57, .99); }
5 | .cm-s-cobalt .CodeMirror-gutters { background: #002240; border-right: 1px solid #aaa; }
6 | .cm-s-cobalt .CodeMirror-guttermarker { color: #ffee80; }
7 | .cm-s-cobalt .CodeMirror-guttermarker-subtle { color: #d0d0d0; }
8 | .cm-s-cobalt .CodeMirror-linenumber { color: #d0d0d0; }
9 | .cm-s-cobalt .CodeMirror-cursor { border-left: 1px solid white !important; }
10 |
11 | .cm-s-cobalt span.cm-comment { color: #08f; }
12 | .cm-s-cobalt span.cm-atom { color: #845dc4; }
13 | .cm-s-cobalt span.cm-number, .cm-s-cobalt span.cm-attribute { color: #ff80e1; }
14 | .cm-s-cobalt span.cm-keyword { color: #ffee80; }
15 | .cm-s-cobalt span.cm-string { color: #3ad900; }
16 | .cm-s-cobalt span.cm-meta { color: #ff9d00; }
17 | .cm-s-cobalt span.cm-variable-2, .cm-s-cobalt span.cm-tag { color: #9effff; }
18 | .cm-s-cobalt span.cm-variable-3, .cm-s-cobalt span.cm-def { color: white; }
19 | .cm-s-cobalt span.cm-bracket { color: #d8d8d8; }
20 | .cm-s-cobalt span.cm-builtin, .cm-s-cobalt span.cm-special { color: #ff9e59; }
21 | .cm-s-cobalt span.cm-link { color: #845dc4; }
22 | .cm-s-cobalt span.cm-error { color: #9d1e15; }
23 |
24 | .cm-s-cobalt .CodeMirror-activeline-background {background: #002D57 !important;}
25 | .cm-s-cobalt .CodeMirror-matchingbracket {outline:1px solid grey;color:white !important}
26 |
--------------------------------------------------------------------------------
/demos/Controls/ScaleLine.htm:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | 加载比例尺控件
6 |
7 |
8 |
15 |
16 |
17 |
18 |
19 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/libs/codemirror/mode/solr/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Solr mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
20 |
33 |
34 |
35 | Solr mode
36 |
37 |
38 | author:Camus
39 |
40 | title:"The Rebel" and author:Camus
41 |
42 | philosophy:Existentialism -author:Kierkegaard
43 |
44 | hardToSpell:Dostoevsky~
45 |
46 | published:[194* TO 1960] and author:(Sartre or "Simone de Beauvoir")
47 |
48 |
49 |
55 |
56 | MIME types defined: text/x-solr.
57 |
58 |
--------------------------------------------------------------------------------
/libs/codemirror/demo/rulers.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Ruler Demo
4 |
5 |
6 |
7 |
8 |
9 |
10 |
13 |
25 |
26 |
27 | Ruler Demo
28 |
29 |
44 |
45 | Demonstration of
46 | the rulers addon, which
47 | displays vertical lines at given column offsets.
48 |
49 |
50 |
--------------------------------------------------------------------------------
/libs/codemirror/mode/ecl/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: ECL mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
24 |
25 |
26 | ECL mode
27 |
28 | /*
29 | sample useless code to demonstrate ecl syntax highlighting
30 | this is a multiline comment!
31 | */
32 |
33 | // this is a singleline comment!
34 |
35 | import ut;
36 | r :=
37 | record
38 | string22 s1 := '123';
39 | integer4 i1 := 123;
40 | end;
41 | #option('tmp', true);
42 | d := dataset('tmp::qb', r, thor);
43 | output(d);
44 |
45 |
48 |
49 | Based on CodeMirror's clike mode. For more information see HPCC Systems web site.
50 | MIME types defined: text/x-ecl.
51 |
52 |
53 |
--------------------------------------------------------------------------------
/libs/codemirror/mode/z80/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Z80 assembly mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
24 |
25 |
26 | Z80 assembly mode
27 |
28 |
29 |
30 | #include "ti83plus.inc"
31 | #define progStart $9D95
32 | .org progStart-2
33 | .db $BB,$6D
34 |
35 | bcall(_ClrLCDFull)
36 | ld hl,0
37 | ld (CurCol),hl
38 | ld hl,Message
39 | bcall(_PutS) ; Displays the string
40 | bcall(_NewLine)
41 | ret
42 | Message:
43 | .db "Hello world!",0
44 |
45 |
46 |
51 |
52 | MIME types defined: text/x-z80, text/x-ez80.
53 |
54 |
--------------------------------------------------------------------------------
/libs/codemirror/mode/rust/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Rust mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
24 |
25 |
26 | Rust mode
27 |
28 |
29 |
30 | // Demo code.
31 |
32 | type foo = int;
33 | enum bar {
34 | some(int, foo),
35 | none
36 | }
37 |
38 | fn check_crate(x: int) {
39 | let v = 10;
40 | alt foo {
41 | 1 to 3 {
42 | print_foo();
43 | if x {
44 | blah() + 10;
45 | }
46 | }
47 | (x, y) { "bye" }
48 | _ { "hi" }
49 | }
50 | }
51 |
52 |
53 |
58 |
59 | MIME types defined: text/x-rustsrc.
60 |
61 |
--------------------------------------------------------------------------------
/libs/codemirror/theme/monokai.css:
--------------------------------------------------------------------------------
1 | /* Based on Sublime Text's Monokai theme */
2 |
3 | .cm-s-monokai.CodeMirror {background: #272822; color: #f8f8f2;}
4 | .cm-s-monokai div.CodeMirror-selected {background: #49483E !important;}
5 | .cm-s-monokai.CodeMirror ::selection { background: rgba(73, 72, 62, .99); }
6 | .cm-s-monokai.CodeMirror ::-moz-selection { background: rgba(73, 72, 62, .99); }
7 | .cm-s-monokai .CodeMirror-gutters {background: #272822; border-right: 0px;}
8 | .cm-s-monokai .CodeMirror-guttermarker { color: white; }
9 | .cm-s-monokai .CodeMirror-guttermarker-subtle { color: #d0d0d0; }
10 | .cm-s-monokai .CodeMirror-linenumber {color: #d0d0d0;}
11 | .cm-s-monokai .CodeMirror-cursor {border-left: 1px solid #f8f8f0 !important;}
12 |
13 | .cm-s-monokai span.cm-comment {color: #75715e;}
14 | .cm-s-monokai span.cm-atom {color: #ae81ff;}
15 | .cm-s-monokai span.cm-number {color: #ae81ff;}
16 |
17 | .cm-s-monokai span.cm-property, .cm-s-monokai span.cm-attribute {color: #a6e22e;}
18 | .cm-s-monokai span.cm-keyword {color: #f92672;}
19 | .cm-s-monokai span.cm-string {color: #e6db74;}
20 |
21 | .cm-s-monokai span.cm-variable {color: #f8f8f2;}
22 | .cm-s-monokai span.cm-variable-2 {color: #9effff;}
23 | .cm-s-monokai span.cm-def {color: #fd971f;}
24 | .cm-s-monokai span.cm-bracket {color: #f8f8f2;}
25 | .cm-s-monokai span.cm-tag {color: #f92672;}
26 | .cm-s-monokai span.cm-link {color: #ae81ff;}
27 | .cm-s-monokai span.cm-error {background: #f92672; color: #f8f8f0;}
28 |
29 | .cm-s-monokai .CodeMirror-activeline-background {background: #373831 !important;}
30 | .cm-s-monokai .CodeMirror-matchingbracket {
31 | text-decoration: underline;
32 | color: white !important;
33 | }
34 |
--------------------------------------------------------------------------------
/libs/jqueryEasyui/icon.css:
--------------------------------------------------------------------------------
1 | .icon-blank{
2 | background:url('icons/blank.gif') no-repeat;
3 | }
4 | .icon-add{
5 | background:url('icons/edit_add.png') no-repeat;
6 | }
7 | .icon-edit{
8 | background:url('icons/pencil.png') no-repeat;
9 | }
10 | .icon-remove{
11 | background:url('icons/edit_remove.png') no-repeat;
12 | }
13 | .icon-save{
14 | background:url('icons/filesave.png') no-repeat;
15 | }
16 | .icon-cut{
17 | background:url('icons/cut.png') no-repeat;
18 | }
19 | .icon-ok{
20 | background:url('icons/ok.png') no-repeat;
21 | }
22 | .icon-no{
23 | background:url('icons/no.png') no-repeat;
24 | }
25 | .icon-cancel{
26 | background:url('icons/cancel.png') no-repeat;
27 | }
28 | .icon-reload{
29 | background:url('icons/reload.png') no-repeat;
30 | }
31 | .icon-search{
32 | background:url('icons/search.png') no-repeat;
33 | }
34 | .icon-print{
35 | background:url('icons/print.png') no-repeat;
36 | }
37 | .icon-help{
38 | background:url('icons/help.png') no-repeat;
39 | }
40 | .icon-undo{
41 | background:url('icons/undo.png') no-repeat;
42 | }
43 | .icon-redo{
44 | background:url('icons/redo.png') no-repeat;
45 | }
46 | .icon-back{
47 | background:url('icons/back.png') no-repeat;
48 | }
49 | .icon-sum{
50 | background:url('icons/sum.png') no-repeat;
51 | }
52 | .icon-tip{
53 | background:url('icons/tip.png') no-repeat;
54 | }
55 |
56 | .icon-mini-add{
57 | background:url('icons/mini_add.png') no-repeat 2px 2px;
58 | }
59 | .icon-mini-edit{
60 | background:url('icons/mini_edit.png') no-repeat 2px 2px;
61 | }
62 | .icon-mini-refresh{
63 | background:url('icons/mini_refresh.png') no-repeat 3px 2px;
64 | }
--------------------------------------------------------------------------------
/libs/codemirror/addon/scroll/simplescrollbars.css:
--------------------------------------------------------------------------------
1 | .CodeMirror-simplescroll-horizontal div, .CodeMirror-simplescroll-vertical div {
2 | position: absolute;
3 | background: #ccc;
4 | -moz-box-sizing: border-box;
5 | box-sizing: border-box;
6 | border: 1px solid #bbb;
7 | border-radius: 2px;
8 | }
9 |
10 | .CodeMirror-simplescroll-horizontal, .CodeMirror-simplescroll-vertical {
11 | position: absolute;
12 | z-index: 6;
13 | background: #eee;
14 | }
15 |
16 | .CodeMirror-simplescroll-horizontal {
17 | bottom: 0; left: 0;
18 | height: 8px;
19 | }
20 | .CodeMirror-simplescroll-horizontal div {
21 | bottom: 0;
22 | height: 100%;
23 | }
24 |
25 | .CodeMirror-simplescroll-vertical {
26 | right: 0; top: 0;
27 | width: 8px;
28 | }
29 | .CodeMirror-simplescroll-vertical div {
30 | right: 0;
31 | width: 100%;
32 | }
33 |
34 |
35 | .CodeMirror-overlayscroll .CodeMirror-scrollbar-filler, .CodeMirror-overlayscroll .CodeMirror-gutter-filler {
36 | display: none;
37 | }
38 |
39 | .CodeMirror-overlayscroll-horizontal div, .CodeMirror-overlayscroll-vertical div {
40 | position: absolute;
41 | background: #bcd;
42 | border-radius: 3px;
43 | }
44 |
45 | .CodeMirror-overlayscroll-horizontal, .CodeMirror-overlayscroll-vertical {
46 | position: absolute;
47 | z-index: 6;
48 | }
49 |
50 | .CodeMirror-overlayscroll-horizontal {
51 | bottom: 0; left: 0;
52 | height: 6px;
53 | }
54 | .CodeMirror-overlayscroll-horizontal div {
55 | bottom: 0;
56 | height: 100%;
57 | }
58 |
59 | .CodeMirror-overlayscroll-vertical {
60 | right: 0; top: 0;
61 | width: 6px;
62 | }
63 | .CodeMirror-overlayscroll-vertical div {
64 | right: 0;
65 | width: 100%;
66 | }
67 |
--------------------------------------------------------------------------------
/libs/codemirror/theme/rubyblue.css:
--------------------------------------------------------------------------------
1 | .cm-s-rubyblue.CodeMirror { background: #112435; color: white; }
2 | .cm-s-rubyblue div.CodeMirror-selected { background: #38566F !important; }
3 | .cm-s-rubyblue.CodeMirror ::selection { background: rgba(56, 86, 111, 0.99); }
4 | .cm-s-rubyblue.CodeMirror ::-moz-selection { background: rgba(56, 86, 111, 0.99); }
5 | .cm-s-rubyblue .CodeMirror-gutters { background: #1F4661; border-right: 7px solid #3E7087; }
6 | .cm-s-rubyblue .CodeMirror-guttermarker { color: white; }
7 | .cm-s-rubyblue .CodeMirror-guttermarker-subtle { color: #3E7087; }
8 | .cm-s-rubyblue .CodeMirror-linenumber { color: white; }
9 | .cm-s-rubyblue .CodeMirror-cursor { border-left: 1px solid white !important; }
10 |
11 | .cm-s-rubyblue span.cm-comment { color: #999; font-style:italic; line-height: 1em; }
12 | .cm-s-rubyblue span.cm-atom { color: #F4C20B; }
13 | .cm-s-rubyblue span.cm-number, .cm-s-rubyblue span.cm-attribute { color: #82C6E0; }
14 | .cm-s-rubyblue span.cm-keyword { color: #F0F; }
15 | .cm-s-rubyblue span.cm-string { color: #F08047; }
16 | .cm-s-rubyblue span.cm-meta { color: #F0F; }
17 | .cm-s-rubyblue span.cm-variable-2, .cm-s-rubyblue span.cm-tag { color: #7BD827; }
18 | .cm-s-rubyblue span.cm-variable-3, .cm-s-rubyblue span.cm-def { color: white; }
19 | .cm-s-rubyblue span.cm-bracket { color: #F0F; }
20 | .cm-s-rubyblue span.cm-link { color: #F4C20B; }
21 | .cm-s-rubyblue span.CodeMirror-matchingbracket { color:#F0F !important; }
22 | .cm-s-rubyblue span.cm-builtin, .cm-s-rubyblue span.cm-special { color: #FF9D00; }
23 | .cm-s-rubyblue span.cm-error { color: #AF2018; }
24 |
25 | .cm-s-rubyblue .CodeMirror-activeline-background {background: #173047 !important;}
26 |
--------------------------------------------------------------------------------
/libs/codemirror/addon/display/fullscreen.js:
--------------------------------------------------------------------------------
1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others
2 | // Distributed under an MIT license: http://codemirror.net/LICENSE
3 |
4 | (function(mod) {
5 | if (typeof exports == "object" && typeof module == "object") // CommonJS
6 | mod(require("../../lib/codemirror"));
7 | else if (typeof define == "function" && define.amd) // AMD
8 | define(["../../lib/codemirror"], mod);
9 | else // Plain browser env
10 | mod(CodeMirror);
11 | })(function(CodeMirror) {
12 | "use strict";
13 |
14 | CodeMirror.defineOption("fullScreen", false, function(cm, val, old) {
15 | if (old == CodeMirror.Init) old = false;
16 | if (!old == !val) return;
17 | if (val) setFullscreen(cm);
18 | else setNormal(cm);
19 | });
20 |
21 | function setFullscreen(cm) {
22 | var wrap = cm.getWrapperElement();
23 | cm.state.fullScreenRestore = {scrollTop: window.pageYOffset, scrollLeft: window.pageXOffset,
24 | width: wrap.style.width, height: wrap.style.height};
25 | wrap.style.width = "";
26 | wrap.style.height = "auto";
27 | wrap.className += " CodeMirror-fullscreen";
28 | document.documentElement.style.overflow = "hidden";
29 | cm.refresh();
30 | }
31 |
32 | function setNormal(cm) {
33 | var wrap = cm.getWrapperElement();
34 | wrap.className = wrap.className.replace(/\s*CodeMirror-fullscreen\b/, "");
35 | document.documentElement.style.overflow = "";
36 | var info = cm.state.fullScreenRestore;
37 | wrap.style.width = info.width; wrap.style.height = info.height;
38 | window.scrollTo(info.scrollLeft, info.scrollTop);
39 | cm.refresh();
40 | }
41 | });
42 |
--------------------------------------------------------------------------------
/libs/codemirror/theme/night.css:
--------------------------------------------------------------------------------
1 | /* Loosely based on the Midnight Textmate theme */
2 |
3 | .cm-s-night.CodeMirror { background: #0a001f; color: #f8f8f8; }
4 | .cm-s-night div.CodeMirror-selected { background: #447 !important; }
5 | .cm-s-night.CodeMirror ::selection { background: rgba(68, 68, 119, .99); }
6 | .cm-s-night.CodeMirror ::-moz-selection { background: rgba(68, 68, 119, .99); }
7 | .cm-s-night .CodeMirror-gutters { background: #0a001f; border-right: 1px solid #aaa; }
8 | .cm-s-night .CodeMirror-guttermarker { color: white; }
9 | .cm-s-night .CodeMirror-guttermarker-subtle { color: #bbb; }
10 | .cm-s-night .CodeMirror-linenumber { color: #f8f8f8; }
11 | .cm-s-night .CodeMirror-cursor { border-left: 1px solid white !important; }
12 |
13 | .cm-s-night span.cm-comment { color: #6900a1; }
14 | .cm-s-night span.cm-atom { color: #845dc4; }
15 | .cm-s-night span.cm-number, .cm-s-night span.cm-attribute { color: #ffd500; }
16 | .cm-s-night span.cm-keyword { color: #599eff; }
17 | .cm-s-night span.cm-string { color: #37f14a; }
18 | .cm-s-night span.cm-meta { color: #7678e2; }
19 | .cm-s-night span.cm-variable-2, .cm-s-night span.cm-tag { color: #99b2ff; }
20 | .cm-s-night span.cm-variable-3, .cm-s-night span.cm-def { color: white; }
21 | .cm-s-night span.cm-bracket { color: #8da6ce; }
22 | .cm-s-night span.cm-comment { color: #6900a1; }
23 | .cm-s-night span.cm-builtin, .cm-s-night span.cm-special { color: #ff9e59; }
24 | .cm-s-night span.cm-link { color: #845dc4; }
25 | .cm-s-night span.cm-error { color: #9d1e15; }
26 |
27 | .cm-s-night .CodeMirror-activeline-background {background: #1C005A !important;}
28 | .cm-s-night .CodeMirror-matchingbracket {outline:1px solid grey; color:white !important;}
29 |
--------------------------------------------------------------------------------
/libs/codemirror/bin/source-highlight:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env node
2 |
3 | // Simple command-line code highlighting tool. Reads code from stdin,
4 | // spits html to stdout. For example:
5 | //
6 | // echo 'function foo(a) { return a; }' | bin/source-highlight -s javascript
7 | // bin/source-highlight -s
8 |
9 | var fs = require("fs");
10 |
11 | var CodeMirror = require("../addon/runmode/runmode.node.js");
12 | require("../mode/meta.js");
13 |
14 | var sPos = process.argv.indexOf("-s");
15 | if (sPos == -1 || sPos == process.argv.length - 1) {
16 | console.error("Usage: source-highlight -s language");
17 | process.exit(1);
18 | }
19 | var lang = process.argv[sPos + 1].toLowerCase(), modeName = lang;
20 | CodeMirror.modeInfo.forEach(function(info) {
21 | if (info.mime == lang) {
22 | modeName = info.mode;
23 | } else if (info.name.toLowerCase() == lang) {
24 | modeName = info.mode;
25 | lang = info.mime;
26 | }
27 | });
28 |
29 | if (!CodeMirror.modes[modeName])
30 | require("../mode/" + modeName + "/" + modeName + ".js");
31 |
32 | function esc(str) {
33 | return str.replace(/[<&]/g, function(ch) { return ch == "&" ? "&" : "<"; });
34 | }
35 |
36 | var code = fs.readFileSync("/dev/stdin", "utf8");
37 | var curStyle = null, accum = "";
38 | function flush() {
39 | if (curStyle) process.stdout.write("" + esc(accum) + " ");
40 | else process.stdout.write(esc(accum));
41 | }
42 |
43 | CodeMirror.runMode(code, lang, function(text, style) {
44 | if (style != curStyle) {
45 | flush();
46 | curStyle = style; accum = text;
47 | } else {
48 | accum += text;
49 | }
50 | });
51 | flush();
52 |
--------------------------------------------------------------------------------
/demos/Controls/CanvasTiles.htm:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | 显示瓦片的网格信息
6 |
7 |
8 |
15 |
16 |
17 |
18 |
19 |
47 |
48 |
49 |
--------------------------------------------------------------------------------
/libs/jqueryEasyui/plugins/jquery.splitbutton.js:
--------------------------------------------------------------------------------
1 | /**
2 | * jQuery EasyUI 1.4.2
3 | *
4 | * Copyright (c) 2009-2015 www.jeasyui.com. All rights reserved.
5 | *
6 | * Licensed under the GPL license: http://www.gnu.org/licenses/gpl.txt
7 | * To use it on other terms please contact us at info@jeasyui.com
8 | *
9 | */
10 | (function($){
11 | function _1(_2){
12 | var _3=$.data(_2,"splitbutton").options;
13 | $(_2).menubutton(_3);
14 | $(_2).addClass("s-btn");
15 | };
16 | $.fn.splitbutton=function(_4,_5){
17 | if(typeof _4=="string"){
18 | var _6=$.fn.splitbutton.methods[_4];
19 | if(_6){
20 | return _6(this,_5);
21 | }else{
22 | return this.menubutton(_4,_5);
23 | }
24 | }
25 | _4=_4||{};
26 | return this.each(function(){
27 | var _7=$.data(this,"splitbutton");
28 | if(_7){
29 | $.extend(_7.options,_4);
30 | }else{
31 | $.data(this,"splitbutton",{options:$.extend({},$.fn.splitbutton.defaults,$.fn.splitbutton.parseOptions(this),_4)});
32 | $(this).removeAttr("disabled");
33 | }
34 | _1(this);
35 | });
36 | };
37 | $.fn.splitbutton.methods={options:function(jq){
38 | var _8=jq.menubutton("options");
39 | var _9=$.data(jq[0],"splitbutton").options;
40 | $.extend(_9,{disabled:_8.disabled,toggle:_8.toggle,selected:_8.selected});
41 | return _9;
42 | }};
43 | $.fn.splitbutton.parseOptions=function(_a){
44 | var t=$(_a);
45 | return $.extend({},$.fn.linkbutton.parseOptions(_a),$.parser.parseOptions(_a,["menu",{plain:"boolean",duration:"number"}]));
46 | };
47 | $.fn.splitbutton.defaults=$.extend({},$.fn.linkbutton.defaults,{plain:true,menu:null,duration:100,cls:{btn1:"m-btn-active s-btn-active",btn2:"m-btn-plain-active s-btn-plain-active",arrow:"m-btn-downarrow",trigger:"m-btn-line"}});
48 | })(jQuery);
49 |
50 |
--------------------------------------------------------------------------------
/libs/codemirror/mode/turtle/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | CodeMirror: Turtle mode
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
24 |
25 |
26 | Turtle mode
27 |
28 | @prefix foaf: .
29 | @prefix geo: .
30 | @prefix rdf: .
31 |
32 |
33 | a foaf:Person;
34 | foaf:interest ;
35 | foaf:based_near [
36 | geo:lat "34.0736111" ;
37 | geo:lon "-118.3994444"
38 | ]
39 |
40 |
41 |
47 |
48 | MIME types defined: text/turtle.
49 |
50 |
51 |
--------------------------------------------------------------------------------
/libs/codemirror/addon/scroll/scrollpastend.js:
--------------------------------------------------------------------------------
1 | // CodeMirror, copyright (c) by Marijn Haverbeke and others
2 | // Distributed under an MIT license: http://codemirror.net/LICENSE
3 |
4 | (function(mod) {
5 | if (typeof exports == "object" && typeof module == "object") // CommonJS
6 | mod(require("../../lib/codemirror"));
7 | else if (typeof define == "function" && define.amd) // AMD
8 | define(["../../lib/codemirror"], mod);
9 | else // Plain browser env
10 | mod(CodeMirror);
11 | })(function(CodeMirror) {
12 | "use strict";
13 |
14 | CodeMirror.defineOption("scrollPastEnd", false, function(cm, val, old) {
15 | if (old && old != CodeMirror.Init) {
16 | cm.off("change", onChange);
17 | cm.off("refresh", updateBottomMargin);
18 | cm.display.lineSpace.parentNode.style.paddingBottom = "";
19 | cm.state.scrollPastEndPadding = null;
20 | }
21 | if (val) {
22 | cm.on("change", onChange);
23 | cm.on("refresh", updateBottomMargin);
24 | updateBottomMargin(cm);
25 | }
26 | });
27 |
28 | function onChange(cm, change) {
29 | if (CodeMirror.changeEnd(change).line == cm.lastLine())
30 | updateBottomMargin(cm);
31 | }
32 |
33 | function updateBottomMargin(cm) {
34 | var padding = "";
35 | if (cm.lineCount() > 1) {
36 | var totalH = cm.display.scroller.clientHeight - 30,
37 | lastLineH = cm.getLineHandle(cm.lastLine()).height;
38 | padding = (totalH - lastLineH) + "px";
39 | }
40 | if (cm.state.scrollPastEndPadding != padding) {
41 | cm.state.scrollPastEndPadding = padding;
42 | cm.display.lineSpace.parentNode.style.paddingBottom = padding;
43 | cm.setSize();
44 | }
45 | }
46 | });
47 |
--------------------------------------------------------------------------------