-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
214 lines (174 loc) · 5.29 KB
/
index.html
File metadata and controls
214 lines (174 loc) · 5.29 KB
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>NtRpg WEB gui</title>
<meta http-equiv="Cache-Control" content="no-store" />
<style>
body {
margin: 0;
padding: 0;
overflow: hidden;
background-color: #F5F5F5;
background-size: cover;
}
* {
box-sizing: border-box;
}
.column {
float: left;
padding: 10px;
}
.left {
width: 20%;
}
.right {
width: 80%;
}
.row:after {
content: "";
display: table;
clear: both;
}
.ta-uielements {
padding: 10px;
line-height: 0.9;
border-radius: 5px;
border: 1px solid #ccc;
box-shadow: 1px 1px 1px #999;
width: 80%;
height: 5%;
resize: none;
}
.ta-generate-ui-elements {
width: 20%;
height: 5%;
}
label {
display: block;
margin-bottom: 10px;
}
.ui-element-buttons {
margin-left: 5px;
width: 40px;
height: 40px;
border-radius: 5px;
border: 1px solid #ccc;
box-shadow: 1px 1px 1px #999;
background-color: #F5F5F5;
}
.sk-btn-wrapper {
overflow-x: hidden;
overflow-y: scroll;
}
.sk-btn {
background-color: #ccc;
border: 1px solid #F5F5F5;
color: black;
width: 100%;
padding: 10px 24px;
cursor: pointer;
display: inline-block;
text-align: center;
}
.modal {
display: none; /* Hidden by default */
position: fixed; /* Stay in place */
z-index: 1; /* Sit on top */
left: 0;
top: 0;
width: 100%; /* Full width */
height: 100%; /* Full height */
overflow: auto; /* Enable scroll if needed */
background-color: rgb(0,0,0); /* Fallback color */
background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}
.modal-content {
background-color: #fefefe;
margin: 15% auto; /* 15% from the top and centered */
padding: 20px;
border: 1px solid #888;
width: 80%; /* Could be more or less, depending on screen size */
}
.close {
color: #aaa;
float: right;
font-size: 28px;
font-weight: bold;
}
.close:hover, .close:focus {
color: black;
text-decoration: none;
cursor: pointer;
}
.skill-on-grid {
background-color: darkseagreen;
}
</style>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script src="konva.js"></script>
<script src="controlls.js"></script>
<script src="hoconparser.js"></script>
<script>
$(document).ready(function() {
var modal = $("#treeModal");
var span = $("#mclose");
span.onclick = function() {
modal.style.display = "none";
}
window.onclick = function(event) {
if (event.target == modal) {
modal.style.display = "none";
}
}
generateUIElements("ta-uielements","ui-button-list")
});
</script>
</head>
<body translate="no">
<div id="container">
<span class="column left">
<div id="treeModal" class="modal">
<div class="modal-content">
<span id="mclose" class="close">×</span>
<textarea id="ta-output"></textarea>
</div>
</div>
<div id="uibtns" class="vertical-align">
<label for=ta-controls>UI Elements</label>
<textarea id="ta-uielements" class="ta-uielements" id="controls" name="ta-controls">
-
I
<
>
^
V
+
┐
┘
┌
└
┴
┬
┤
├
X </textarea>
<input class="ta-generate-ui-elements" value="Gen. UI" onclick='generateUIElements("ta-uielements","ui-button-list")'/>
</div>
<div id="ui-button-list" class="ui-button-list"></div>
<div class="vertical-align">
<label for=ta-tree-input>Paste Skilltree here, once you are done click Update</label>
<textarea id="ta-sk-input" class="ta-uielements" id="ta-tree-input" name="ta-tree-input"></textarea>
<input class="ta-generate-ui-elements" value="Parse" onclick='parseTree("ta-sk-input","sk-btn","ta-uielements")'/>
<input class="ta-generate-ui-elements" value="Update" onclick='updateTree("ta-sk-input", "ta-output", "treeModal")'/>
</div>
<div class="sk-btn-wrapper">
<div id="sk-btn"></div>
</div>
</span>
<span class="column right" id="grid">
</span>
</div>
<script src=grid.js></script>
</body>
</html>