blob: e19f9eb32d3f5a033e6af96996499bbfad1c96d0 (
plain)
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
|
<!DOCTYPE html>
<html>
<head>
<title>Seven Wonders</title>
<link href="/webjars/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="/main.css" rel="stylesheet">
<script src="/webjars/jquery/jquery.min.js"></script>
<script src="/webjars/sockjs-client/sockjs.min.js"></script>
<script src="/webjars/stomp-websocket/stomp.min.js"></script>
<script src="test-ws.js"></script>
</head>
<body>
<noscript>
<h2 style="color: #ff0000">Seems your browser doesn't support Javascript! Websocket relies on Javascript being
enabled. Please enable Javascript and reload this page!</h2>
</noscript>
<h1>Seven Wonders Test Page</h1>
<h2>WS messages tests</h2>
<form class="form-inline">
<div class="form-group">
<label for="subscribe-path-field">Path:</label>
<input id="subscribe-path-field" placeholder="path">
<button id="subscribe-btn" class="btn btn-default" type="submit">Subscribe</button>
</div>
</form>
<form class="form-inline">
<div class="form-group">
<label for="path-field">Path:</label>
<input id="path-field" placeholder="path">
<label for="payload-field">Payload:</label>
<input id="payload-field" placeholder="JSON payload">
<button id="send-btn" class="btn btn-default" type="submit">Send</button>
</div>
</form>
<h2>Subscribed feeds</h2>
<table class="table table-striped">
<thead>
<tr>
<th>Endpoint</th>
<th>Data received</th>
</tr>
</thead>
<tbody id="test-feeds">
</tbody>
</table>
</body>
</html>
|