script editor added x2
This commit is contained in:
parent
7ce5eba522
commit
072ad5633a
@ -1,7 +1,3 @@
|
||||
var editor = ace.edit("script_editor");
|
||||
editor.setTheme("ace/theme/github");
|
||||
editor.session.setMode("ace/mode/lua");
|
||||
|
||||
function str_toHex(s) {
|
||||
// utf8 to latin1
|
||||
var s = unescape(encodeURIComponent(s));
|
||||
|
7
src/main/resources/static/javascript/script-editor.js
Normal file
7
src/main/resources/static/javascript/script-editor.js
Normal file
@ -0,0 +1,7 @@
|
||||
var editor = ace.edit("script_editor");
|
||||
editor.setTheme("ace/theme/github");
|
||||
editor.session.setMode("ace/mode/lua");
|
||||
|
||||
// set script body
|
||||
// editor.setValue(jobj.scriptBody);
|
||||
|
@ -5,10 +5,14 @@
|
||||
<link rel="stylesheet" href="/static/css/util.css">
|
||||
<link rel="stylesheet" href="/static/css/panel.css">
|
||||
</head>
|
||||
<body>
|
||||
<!-- th:if="${is_mobile}" -->
|
||||
<script src="/static/javascript/base32.js" type="text/javascript"></script>
|
||||
<script src="https://www.unpkg.com/ace-builds@latest/src-noconflict/ace.js"></script>
|
||||
<body class="bg-body-tertiary">
|
||||
<div th:replace="~{fragments/floating_button}"></div>
|
||||
<main>
|
||||
<!-- th:if="${is_mobile}" -->
|
||||
<script src="/static/javascript/base32.js" type="text/javascript"></script>
|
||||
<script src="https://www.unpkg.com/ace-builds@latest/src-noconflict/ace.js"></script>
|
||||
<script src="/static/javascript/script-editor.js"></script>
|
||||
</main>
|
||||
<div th:replace="~{fragments/footer :: div}"></div>
|
||||
</body>
|
||||
</html>
|
Loading…
x
Reference in New Issue
Block a user