-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
119 lines (104 loc) · 2.96 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
<!doctype html>
<html>
<head>
<title>ONESQL Interactive</title>
<meta charset="utf-8"/>
<link rel="stylesheet" href="ui/lib/codemirror-5.22.0/lib/codemirror.css" />
<script src="ui/lib/codemirror-5.22.0/lib/codemirror.js"></script>
<script src="ui/lib/codemirror-5.22.0/mode/javascript/javascript.js"></script>
<script src="ui/lib/codemirror-5.22.0/mode/sql/sql.js"></script>
<link rel="stylesheet" href="ui/lib/codemirror-5.22.0/addon/hint/show-hint.css"></script>
<script src="ui/lib/codemirror-5.22.0/addon/hint/show-hint.js"></script>
<script src="ui/lib/codemirror-5.22.0/addon/hint/sql-hint.js"></script>
<script src="ui/onesql.ui.out.js"></script>
<style>
.CodeMirror {
border-top: 1px solid black;
border-bottom: 1px solid black;
}
body {
font-family: Verdana, Geneva, Tahoma, sans-serif;
background-color: #f4f4f4;
}
th {
text-align: left;
font-size: medium;
font-weight: normal;
padding-left: 30px;
text-decoration: none;
}
.button {
background-color: white;
border-color: dimgray;
border-width: 1px;
border-style: solid;
padding: 2px 5px 2px 5px;
color: black;
font-size: small;
font-weight: normal;
text-decoration: none;
}
.copyright {
padding-left: 30px;
font-size: small;
}
</style>
</head>
<body>
<table width="100%">
<tr>
<th width="34%">
<table width="100%">
<tr>
<td>ONESQL</td>
<td style="text-align: right">
<a id="translate">Run</a>
<a id="copy-sql">Copy</a>
<a id="help">Help</a>
</td>
</tr>
</table>
</th>
<th width="33%">
<table width="100%">
<tr>
<td>Semantic Tree (JSON)</td>
<td style="text-align: right">
<a id="copy-semantic">Copy</a>
</td>
</tr>
</table>
</th>
<th width="33%">
<table width="100%">
<tr>
<td>MongoDB (JavaScript)</td>
<td style="text-align: right">
<a id="copy-mongo">Copy</a>
</td>
</tr>
</table>
</th>
</tr>
<tr>
<td>
<form>
<textarea id="mark-sql" name="mark-sql">USE onesqlTest;
FROM demography
WHERE SUBSTR(city, 0, 1) = 'S';
</textarea>
</form>
</td>
<td>
<textarea id="mark-semantic" name="mark-semantic"></textarea>
</td>
<td>
<textarea id="mark-mongo" name="mark-mongo"></textarea>
</td>
</tr>
</table>
<br />
<div class="copyright">Copyright (c) by Zlatko Michailov.</div>
<div class="copyright">Colorcoding powered by CodeMirror.</div>
</body>
</html>