mode_creator.html 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <base href="../">
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  6. <title>Ace Mode Creator</title>
  7. <meta name="author" content="Harutyun Amirjanyan">
  8. <style type="text/css" >
  9. body, html {
  10. overflow: hidden;
  11. height: 100%;
  12. width: 100%;
  13. margin: 0;
  14. padding: 0;
  15. }
  16. #header {
  17. border-bottom: solid 1px;
  18. }
  19. .separator-h {
  20. padding: 0 10px;
  21. }
  22. #closeBtn {
  23. background: rgba(245, 146, 146, 0.5);
  24. border: 1px solid #F48A8A;
  25. border-radius: 50%;
  26. padding: 7px;
  27. position: absolute;
  28. right: -8px;
  29. top: -8px;
  30. z-index: 1000;
  31. }
  32. #closeBtn:hover {
  33. background: rgba(245, 146, 146, 0.9);
  34. }
  35. #console{
  36. /border: 1px solid lightblue;
  37. bottom: 0;
  38. height: 80px;
  39. margin: 0 4%;
  40. position: absolute;
  41. width: 92%;
  42. z-index: 1000;
  43. box-shadow: 0 0 1px 2px gray
  44. }
  45. #consoleEditor{
  46. height: 100%;
  47. position: relative;
  48. width: 100%;
  49. }
  50. </style>
  51. <link href="../doc/site/images/favicon.ico" rel="icon" type="image/x-icon">
  52. </head>
  53. <body>
  54. <div id="header">
  55. <label for="modeEl">mode</label>
  56. <select id="modeEl" size="1"></select>
  57. <input type="button" value="&#10227;" title="sync" id="syncToMode"></select>
  58. <span id="tablist"></span>
  59. <input type="button" value="Save" id="saveButton1"></select>
  60. <span class="separator-h"></span>
  61. <label for="autorunEl">live preview</label>
  62. <input type="checkbox" label="autorun" id="autorunEl" checked>
  63. <span class="separator-h"></span>
  64. <input type="button" value="measure speed" id="perfTest"></select>
  65. <div style='float:right'>
  66. <label for="themeEl">Theme</label>
  67. <select id="themeEl" size="1" value="textmate"></select>
  68. <span class="separator-h"></span>
  69. <input type="button" value="Save" id="saveButton2"></select>
  70. <label for="doc">Document</label>
  71. <select id="doc" size="1"></select>
  72. </div>
  73. </div>
  74. <div id="editor"></div>
  75. <div id="console" style="display:none">
  76. <span id="closeBtn" onclick="this.parentNode.style.display='none'"></span>
  77. <div id="consoleEditor"></div>
  78. </div>
  79. <script type="text/javascript">
  80. var require = {
  81. baseUrl: window.location.protocol + "//" + window.location.host + window.location.pathname.split("/").slice(0, -1).join("/"),
  82. paths: {
  83. ace: "../lib/ace",
  84. demo: "../demo",
  85. tool: "../tool"
  86. }
  87. };
  88. </script>
  89. <script src="./demo/kitchen-sink/require.js" data-main="mode_creator"></script>
  90. </body>
  91. </html>