This repository has been archived by the owner on May 10, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhost.html
166 lines (137 loc) · 4.28 KB
/
host.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
<html>
<title>Stratus UHC Hosts</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<!-- Scripts -->
<head>
<script> /* SELECT ROUND */
function changeSelect() {
if (document.getElementById("team-selection").value == "1") {
document.getElementById("team").innerHTML = "Solo";
} else if (document.getElementById("team-selection").value == "2") {
document.getElementById("team").innerHTML = "To2";
}
}
</script>
</head>
<!-- Body -->
<body>
<!--
<fieldset>
<input type="text">
</fieldset>
<p id="charCount"></p>
<p id="original"></p>
<p id="reversed"></p>
<script>
/* A convenience function to reverse a string, and
* one to set the content of an element.
*/
function reverse(s){return s.split('').reverse().join('')}
function set(el,text){
while(el.firstChild)el.removeChild(el.firstChild);
el.appendChild(document.createTextNode(text))}
/* setupUpdater will be called once, on page load.
*/
function setupUpdater(){
var input=document.getElementsByTagName('input')[0]
, orig=document.getElementById('original')
, oldText=input.value
, timeout=null;
/* handleChange is called 50ms after the user stops
typing. */
function handleChange(){
var newText=input.value;
if (newText==oldText) return; else oldText=newText;
set(orig, newText);
}
/* eventHandler is called on keyboard and mouse events.
If there is a pending timeout, it cancels it.
It sets a timeout to call handleChange in 50ms. */
function eventHandler(){
if(timeout) clearTimeout(timeout);
timeout=setTimeout(handleChange, 50);
}
input.onkeydown=input.onkeyup=input.onclick=eventHandler;
}
setupUpdater();
document.getElementsByTagName('input')[0].focus();
</script>
-->
<div class="container">
<div class="row"> <!-- Select Heading -->
<div class="col-sm-3"> <!-- Solo/Teams -->
<select type="text" id="team-selection" onchange="changeSelect()">
<option value="0">Select Solo/To2</option>
<option value="1">Solo</option>
<option value="2">To2</option>
</select>
</div>
<div class="col-sm-3"> <!-- Time -->
<p>Input Time:</p>
<fieldset>
<input type="text" id="time-selection">
</fieldset>
</div>
</div>
<div class="row"> <!-- Select Body -->
<div class="col-sm-3"> <!-- Hosts -->
<p>Input Hosts</>
<form>
<input type="text" id="host-selection">
</form>
</div>
</div>
<div class="row"> <!-- Heading -->
<div class="col-sm-3">
<p>Stratus UHC</p>
<div id="time"></div><p> EST</p>
</div>
</div>
<div class="row"> <!-- Body -->
<div class="col-sm-3">
<p>-----------------</p>
<p>Format: <div id="team"></div></p>
<p>Hosts: <div id="host"></div></p>
<br>
<p>Scenarios:</p>
</div>
</div>
<script>
/* A convenience function to reverse a string, and
* one to set the content of an element.
*/
function reverse(s){return s.split('').reverse().join('')}
function set(el,text){
while(el.firstChild)el.removeChild(el.firstChild);
el.appendChild(document.createTextNode(text))}
/* setupUpdater will be called once, on page load.
*/
function setupUpdater(id){
var input=document.getElementById(id + '-selection')
, orig=document.getElementById(id)
, oldText=input.value
, timeout=null;
/* handleChange is called 50ms after the user stops
typing. */
function handleChange(){
var newText=input.value;
if (newText==oldText) return; else oldText=newText;
set(orig, newText);
}
/* eventHandler is called on keyboard and mouse events.
If there is a pending timeout, it cancels it.
It sets a timeout to call handleChange in 50ms. */
function eventHandler(){
if(timeout) clearTimeout(timeout);
timeout=setTimeout(handleChange, 50);
}
input.onkeydown=input.onkeyup=input.onclick=eventHandler;
}
setupUpdater('time');
setupUpdater('host');
document.getElementsByTagName('input')[0].focus();
</script>
</body>
</html>