-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
238 lines (217 loc) · 6.41 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
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
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
<!DOCTYPE html>
<html>
<head>
<title>Star Defenders 2D notificator</title>
<style>
@font-face {
font-family: "ui_font";
src: url("/assets/fonts/CozetteVector.ttf") format("truetype");
}
*
{
font-family: ui_font, Verdana;
cursor: url(/assets/cursor_2x.png), auto;
box-sizing: border-box;
-webkit-font-smoothing: none;
}
.clickable
{
}
.clickable:hover
{
outline: rgba( 255,255,255, 0.3 ) solid 1px;
}
.clickable:active
{
outline: rgba( 0,0,0, 0.75 ) solid 1px;
}
.clickable:hover::after
{
content: '';
width: 100%;
height: 100%;
position: absolute;
left: 0;
top: 0;
background-color: rgba( 255,255,255, 0.05 );
}
body.nohovering .clickable:hover
{
outline: none;
}
body.nohovering .clickable:hover::after
{
display: none;
}
.clickable:active::after
{
content: '';
width: 100%;
height: 100%;
position: absolute;
left: 0;
top: 0;
background-color: rgba( 0,0,0, 0.5 );
}
body
{
width: 800px;
height: 600px;
background: #111122;
display: block;
position: fixed;
overflow: hidden;
color: white;
user-select: none;
padding: 20px;
margin: 0;
font-size: 12px;
-webkit-font-smoothing : none;
}
select, option
{
font-size: 12px;
-webkit-font-smoothing : none;
}
.spaced
{
margin-top: 5px;
margin-bottom: 20px;
}
.container
{
padding: 10px;
background-color: rgba( 0,0,0, 0.5 );
}
.item
{
background-color: rgba( 255,255,255, 0.1 );
position: relative;
width: 100%;
padding: 10px;
margin-bottom: 2px;
}
.item_in_error
{
background-color: rgba( 255,0,0, 0.3 );
}
.item_alerted
{
background-color: rgba( 50,150,255, 0.6 );
}
.item_add
{
background-color: rgba( 0,255,0, 0.2 );
}
.item_mark_seen
{
background-color: rgba( 0,100,255, 0.3 );
margin-bottom: 0px;
}
b, b2
{
width: 30px;
height: 20px;
display: block;
text-align: center;
background-color: rgba( 255,255,255, 0.1 );
padding-top:4px;
margin-left: 2px;
font-weight: normal;
right: 59px;
top: 7px;
position: absolute;
}
b2
{
width: 50px;
right: 7px;
background-color: rgba( 255,0,0, 0.25 );
}
.title, .url
{
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
max-width: calc( 100% - 270px );
display: inline-block;
transform: translate(0px, 2px);
padding-left: 2px;
padding-right: 2px;
}
.url
{
max-width: 160px;
color: rgb(201 201 255 / 20%);
/* text-decoration: underline; */
display: block;
position: absolute;
right: 100px;
top: 50%;
transform: translate(0, -50%);
}
.icon
{
position:absolute;left:15px;top:50%;transform:translate(-50%,-50%);pointer-events:none;
}
</style>
</head>
<body>
<div style="display:inline-block;width:41%;vertical-align: top;">
Volume
<div class="spaced">
<input id="volume" style="width:100%" type="range" min=0 max=1 step=0.01 onchange="VolumeChanged()" />
</div>
</div>
<div style="display:inline-block;width:10%;vertical-align: top;padding-left:20px;padding-right:20px;text-align: center;">
Mute
<div class="spaced">
<input id="muted" style="width: 16px;height: 16px;" type="checkbox" onchange="MutedChanged()" title="Mutes notifications" />
</div>
</div>
<div style="display:inline-block;width:10%;vertical-align: top;padding-right:20px;text-align: center;">
Repeat
<div class="spaced">
<input id="repeat" style="width: 16px;height: 16px;" type="checkbox" onchange="RepeatChanged()" title="Repeat notifications when no new similar events are happening" />
</div>
</div>
<div style="display:inline-block;width:10%;vertical-align: top;padding-right:20px;text-align: center;">
Popups
<div class="spaced">
<input id="popups" style="width: 16px;height: 16px;" type="checkbox" onchange="PopupsChanged()" title="System pop-ups" />
</div>
</div>
<div style="display:inline-block;width:25%;vertical-align: top;">
Sound
<div class="spaced">
<select id="sound_source" list="sound_options" style="width:100%;" onchange="SoundSourceChanged()" title="Sound to play whenever notification happens" />
<option value="notificator_alert.wav">Whizzling</option>
<option value="notificator_alertB.wav">Tune note</option>
<option value="notificator_alertC.wav">Ambient heartbeat</option>
<option value="notificator_alertD.wav">Teleport ready</option>
<option value="notificator_alertE.wav">Beeping</option>
</select>
</div>
</div>
<div>
Listeners:
<div class="spaced container" id="container_listeners" style="height:480px; overflow-y: auto">
<div class="item" id="sample_item" title="Notification listener. Turns blue when there is unseen notification. Turns red on error or whenever associated Security Camera object is destroyed">
<div class="clickable" onclick="ListenerClicked( this.parentNode.listener )" style="position:absolute;left:0;top:0;width:100%;height:100%"></div>
<img class="icon" src="assets/com16.png">
<div class="title clickable" style="position:relative;left:20px;" onclick="UpdateListenerCaption( this.parentNode.listener )" title="Caption (if assigned) - event type - last event details">1</div>
<div class="url clickable" onclick="OpenServerURL( this.parentNode.listener )" title="Open associated game server in system default browser">???:3000</div>
<b class="clickable" onclick="UpdateListenerURL( this.parentNode.listener )" title="Edit listener URL. This one can be obtained from in-game Security Camera entities">URL</b>
<b2 class="clickable" onclick="DeleteListener( this.parentNode.listener )" title="Well, it deletes listener permanently">Delete</b2>
</div>
<div class="item item_add clickable" onclick="AddNewListenerByURL()" id="item_add_button" title="Adds listener by URL. This one can be obtained from in-game Security Camera entities">
+ Add new listener
</div>
<div class="item item_mark_seen clickable" onclick="MarkAllSeen()" id="item_mark_seen_button" title="Marks blue listeners as seen. Stops repeated notifications if those are enabled">
Mark all as seen
</div>
</div>
</div>
<script src="app.js" type="text/javascript"></script>
</body>
</html>