-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
53 lines (43 loc) · 1.06 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<html>
<head>
<title>SQL Data Api</title>
<script src="./node_modules/ace-builds/src-noconflict/ace.js" type="text/javascript" charset="utf-8"></script>
<script src="./dist/sql-data-api.min.js"></script>
<style>
.container {
height: 100%;
min-width: 200px;
width: 90%;
margin: 10px auto;
}
#editor,
#resultEditor {
height: 40%;
display: block;
min-height: 20%;
width: 100%;
margin-top: 10px;
margin-bottom: 10px;
}
</style>
</head>
<body>
<div class="container">
<h4>SQL Data Api console</h4>
<div id="editor">
</div>
<button>Run</button>
<div id="resultEditor"> </div>
<!-- <textarea id="result"></textarea> -->
</div>
<script>
console.log(window)
const editor = ace.edit("editor");
editor.setTheme("ace/theme/monokai");
editor.session.setMode("ace/mode/python");
const resultEditor = ace.edit("resultEditor");
resultEditor.setTheme("ace/theme/monokai");
resultEditor.session.setMode("ace/mode/json");
</script>
</body>
</html>