-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.html
156 lines (139 loc) · 5.17 KB
/
config.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
<!doctype html>
<html>
<head>
<title>Config Window</title>
<!-- <meta name="viewport" content="width=device-width, initial-scale=1"> -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-Zenh87qX5JnK2Jl0vWa8Ck2rdkQ2Bzep5IDxbcnCeuOxjzrPF/et3URy9Bv1WTRi" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="./config.css" />
</head>
<body>
<div class="container">
<div class="row">
<div class="col">
<button class="btn btn-primary" id="startBtn">Start Overlay</button>
</div>
<div class="col">
<button class="btn btn-primary" id="loadReplayBtn">Load Replay</button>
</div>
<div class="col">
<button class="btn btn-primary" id="connectToClientBtn" disabled>Connect to client</button>
</div>
<div class="col">
<button class="btn btn-primary" id="updateImages">Update Images</button>
</div>
</div>
<div class="row">
<div class=col>
<div>
<div class="color-container row">
<span>
<label for="blue_selected_color">Blue Side color: </label>
<input type="color" id="blue_selected_color">
<span id="blue_color_hex">(#000000)</span>
</span>
<span>
<label for="red_selected_color">Red Side color: </label>
<input type="color" id="red_selected_color">
<span id="red_color_hex">(#000000)</span>
</span>
</div>
<div class="color-container row">
<span>
<label for="timer_text_selected_color">Timer text color: </label>
<input type="color" id="timer_text_selected_color">
<span id="timer_color_hex">(#000000)</span>
</span>
<span>
<label for="blue_text_selected_color">Blue text color: </label>
<input type="color" id="blue_text_selected_color">
<span id="blue_text_color_hex">(#000000)</span>
</span>
<span>
<label for="red_text_selected_color">Red text color: </label>
<input type="color" id="red_text_selected_color">
<span id="red_text_color_hex">(#000000)</span>
</span>
<span>
<label for="phase_text_selected_color">Phase text color: </label>
<input type="color" id="phase_text_selected_color">
<span id="phase_text_color_hex">(#000000)</span>
</span>
</div>
</div>
<div class="text-container row">
<span>
<label for="blue_team_name">Blue team name: </label>
<input type="text" id="blue_team_name">
</span>
<span>
<label for="blue_team_subtext">Blue team subtext: </label>
<input type="text" id="blue_team_subtext">
</span>
<span>
<label for="red_team_name">Red team name: </label>
<input type="text" id="red_team_name">
</span>
<span>
<label for="red_team_subtext">Red team subtext: </label>
<input type="text" id="red_team_subtext">
</span>
<span>
<label for="red_team_subtext">Picking text: </label>
<input type="text" id="picking_text">
</span>
</div>
<div class="form-check-reverse">
<label class="form-check-label" for="enable_transparent">Enable Transparent Background</label>
<input class="form-check-input" type="checkbox" id="enable_transparent">
</div>
<a class="btn btn-primary" data-bs-toggle="collapse" href="#summonerNamesCollapse" role="button" aria-expanded="false" aria-controls="collapseExample">
Edit summoner names
</a>
<div class="collapse" id="summonerNamesCollapse">
<div class="form-check-reverse">
<label for="enable_custom_names">Enable Custom Summoner Names</label>
<input type="checkbox" id="enable_custom_names">
</div>
<button class=" btn btn-primary"type="button" id="swap">Swap Names</button>
<div class="container-grid">
<div class="container-col" id="blueSummonerNames">
<h4>Blue Side</h4>
<input id="summonerName1" value="Summoner 1">
<input id="summonerName2" value="Summoner 2">
<input id="summonerName3" value="Summoner 3">
<input id="summonerName4" value="Summoner 4">
<input id="summonerName5" value="Summoner 5">
</div>
<div class="container-col" id="redSummonerNames">
<h4>Red side</h4>
<input id="summonerName1" value="Summoner 6">
<input id="summonerName2" value="Summoner 7">
<input id="summonerName3" value="Summoner 8">
<input id="summonerName4" value="Summoner 9">
<input id="summonerName5" value="Summoner 10">
</div>
</div>
</div>
</div>
<div class="col">
<div id="statusClient" class="status">
Client: Connected
</div>
<div id="statusWebServer" class="status">
Web Server: Starting
</div>
<div id="statusWebSocketServer" class="status">
WebSocket Server: Starting
</div>
</div>
</div>
<div class="row">
<button class="btn btn-primary" type="button" id="update">Save Config</button>
</div>
<div id="my_console" class="row content " style="background-color: gray; white-space: pre-wrap;" hidden></div>
</div>
</div>
<script type="text/javascript" src="./config.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-OERcA2EqjJCMA+/3y+gxIOqMEjwtxJY7qPCqsdltbNJuaOe923+mo//f6V8Qbsw3" crossorigin="anonymous"></script>
</body>
</html>