| 1 |
<!DOCTYPE html> |
| 2 |
|
| 3 |
<html lang="en"> |
| 4 |
<head> |
| 5 |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
| 6 |
<meta name="viewport" content="width=device-width,height=device-height" /> |
| 7 |
<title>Ace Kitchen Sink</title> |
| 8 |
<meta name="author" content="Fabian Jakobs"> |
| 9 |
|
| 10 |
<link rel="stylesheet" href="demo/kitchen-sink/styles.css" type="text/css" media="screen" charset="utf-8"> |
| 11 |
|
| 12 |
<link href="./doc/site/images/favicon.ico" rel="icon" type="image/x-icon"> |
| 13 |
</head> |
| 14 |
<body> |
| 15 |
<div id="sidePanel" style="position:absolute;height:100%;width:280px;"> |
| 16 |
<div class="toggleButton" id="optionToggle" role="button" aria-label="Hide Options" tabindex="0"> |
| 17 |
<div></div><div></div><div></div> |
| 18 |
</div> |
| 19 |
<a href="https://c9.io"> |
| 20 |
<img id="c9-logo" alt="Cloud9 IDE | Your code anywhere, anytime" src="demo/kitchen-sink/logo.png" style="width: 172px;margin: -9px 30px -12px 51px;"> |
| 21 |
</a> |
| 22 |
<div style="position: absolute; overflow: hidden; top:100px; bottom:0;width:100%;"> |
| 23 |
<div id="optionsPanel" style="height:100%; width:100%; overflow-y: auto"> |
| 24 |
|
| 25 |
|
| 26 |
<a href="https://ace.c9.io"> |
| 27 |
<img id="ace-logo" alt="Ace Website" src="doc/site/images/ace-logo.png" style="width: 134px;margin: 46px 0px 4px 66px;"> |
| 28 |
</a> |
| 29 |
|
| 30 |
<div style="text-align: left; padding: 0.5em 1em;"> |
| 31 |
<a style="color: whitesmoke;" target="_test" rel="noreferer" href="./src/test/tests.html">tests</a> |
| 32 |
</div> |
| 33 |
<div style="text-align: left; padding: 0.5em 1em;"> |
| 34 |
<a style="color: whitesmoke;" target="_test" rel="noreferer" href="./tool/mode_creator.html">Mode Creator</a> |
| 35 |
</div> |
| 36 |
<div style="text-align: left; padding: 0.5em 1em;"> |
| 37 |
<a style="color: whitesmoke;" target="_test" rel="noreferer" href="./tool/perf-test.html">Performance test</a> |
| 38 |
</div> |
| 39 |
<div style="text-align: left; padding: 0.5em 1em;"> |
| 40 |
<a style="color: whitesmoke;" href="?lib=1">Load from lib/ace</a> |
| 41 |
</div> |
| 42 |
|
| 43 |
</div> |
| 44 |
</div> |
| 45 |
</div> |
| 46 |
<div id="editor-container"></div> |
| 47 |
|
| 48 |
|
| 49 |
<script type="text/javascript"> |
| 50 |
var os = /os=(\w+)|$/.exec(location.search)[1]; |
| 51 |
if (os) Object.defineProperty(navigator, "platform", {configurable:true, value: os}); |
| 52 |
</script> |
| 53 |
<script src="demo/kitchen-sink/require.js" type="text/javascript"></script> |
| 54 |
<script> |
| 55 |
var useLib = /lib=1/.test(location.search); |
| 56 |
var paths = useLib ? { |
| 57 |
ace: "lib/ace", |
| 58 |
demo: "demo/kitchen-sink" |
| 59 |
} : { |
| 60 |
ace: "src", |
| 61 |
demo: "demo/kitchen-sink", |
| 62 |
"ace/worker/worker_client": "lib/ace/worker/worker_client_v2", |
| 63 |
"ace/worker": "lib/ace/worker", |
| 64 |
}; |
| 65 |
|
| 66 |
if (!useLib) { |
| 67 |
[ |
| 68 |
"json_worker", |
| 69 |
"xquery_worker", |
| 70 |
"yaml_worker", |
| 71 |
"xquery/xqlint", |
| 72 |
"xquery/jsoniq_lexer", |
| 73 |
"xquery/xquery_lexer", |
| 74 |
"css/csslint", |
| 75 |
"coffee_worker", |
| 76 |
"css_worker", |
| 77 |
"xquery", |
| 78 |
"html/saxparser", |
| 79 |
"php/php", |
| 80 |
"lua/luaparse", |
| 81 |
"xml/sax", |
| 82 |
"xml/dom-parser", |
| 83 |
"xml/dom", |
| 84 |
"lua_worker", |
| 85 |
"jsoniq", |
| 86 |
"json/json_parse", |
| 87 |
"xml_worker", |
| 88 |
"coffee/coffee", |
| 89 |
"javascript_worker", |
| 90 |
"php_worker", |
| 91 |
"yaml/yaml-lint", |
| 92 |
"javascript/jshint", |
| 93 |
"html_worker", |
| 94 |
].forEach(function(m) { |
| 95 |
paths["ace/mode/" + m] = "lib/ace/mode/" + m |
| 96 |
}) |
| 97 |
} |
| 98 |
|
| 99 |
require.config({ |
| 100 |
paths: paths |
| 101 |
}); |
| 102 |
require(["ace/ace"], function (ace) { |
| 103 |
require(["demo/demo.js"], function (demo) { |
| 104 |
}); |
| 105 |
}); |
| 106 |
</script> |
| 107 |
|
| 108 |
|
| 109 |
|
| 110 |
|
| 111 |
|
| 112 |
|
| 113 |
|
| 114 |
|
| 115 |
|
| 116 |
|
| 117 |
</body> |
| 118 |
</html> |