Skip to content

Commit d57e247

Browse files
split out ping form
1 parent 1488f0c commit d57e247

File tree

4 files changed

+16
-15
lines changed

4 files changed

+16
-15
lines changed

assets/index.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ pre > code {
160160
}
161161

162162
.ping-frame {
163-
height: 70vh;
163+
height: 50vh;
164164
width: 80vw;
165165
border-style: none;
166166
}

templates/index.html

+1-13
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,7 @@
77
{% block body %}
88
<h1>Minecraft Server Tester</h1>
99
<div id="select-ping" class="execute-ping-container">
10-
<form class="execute-ping-stack" action="{{ root_url }}/ping/redirect">
11-
<label for="address-entry" hidden>Server address</label>
12-
<input id="address-entry" placeholder="Server address" name="address" />
13-
<div class="select-ping">
14-
<button type="submit" name="edition" class="java" value="java">
15-
Ping Java
16-
</button>
17-
<div class="widen"></div>
18-
<button type="submit" name="edition" class="bedrock" value="bedrock">
19-
Ping Bedrock
20-
</button>
21-
</div>
22-
</form>
10+
{% include "ping-form.html" %}
2311
<div class="small-vspacer"></div>
2412
<div id="server-status"></div>
2513
<div class="small-vspacer"></div>

templates/ping-form.html

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<form class="execute-ping-stack" action="{{ root_url }}/ping/redirect">
2+
<label for="address-entry" hidden>Server address</label>
3+
<input id="address-entry" placeholder="Server address" name="address" />
4+
<div class="select-ping">
5+
<button type="submit" name="edition" class="java" value="java">
6+
Ping Java
7+
</button>
8+
<div class="widen"></div>
9+
<button type="submit" name="edition" class="bedrock" value="bedrock">
10+
Ping Bedrock
11+
</button>
12+
</div>
13+
</form>

templates/ping-page.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ <h1>Pinging <code>{{ hostname }}</code></h1>
1010
class="ping-frame"
1111
src="{{ root_url }}/internal/ping-frame/{{ edition }}/{{ hostname }}"
1212
></iframe>
13-
<a role="button" href="{{ root_url }}">Ping Another</a>
13+
{% include "ping-form.html" %}
1414
</div>
1515
</div>
1616
<div class="vspacer"></div>

0 commit comments

Comments
 (0)