2024-02-21 11:47:40 +08:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>Hello WebSocket</title>
|
|
|
|
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
|
|
|
|
<link href="/admin/static/html/main.css" rel="stylesheet">
|
|
|
|
<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
|
|
|
|
<script src="https://cdn.jsdelivr.net/npm/@stomp/stompjs@7.0.0/bundles/stomp.umd.min.js"></script>
|
|
|
|
<script src="/admin/static/html/app.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>
|
|
|
|
<div id="main-content" class="container">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-6">
|
|
|
|
<form class="form-inline">
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="connect">WebSocket connection:</label>
|
|
|
|
<button id="connect" class="btn btn-default" type="submit">Connect</button>
|
|
|
|
<button id="disconnect" class="btn btn-default" type="submit" disabled="disabled">Disconnect
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-6">
|
|
|
|
<form class="form-inline">
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="name">What is your name?</label>
|
|
|
|
<input type="text" id="name" class="form-control" placeholder="Your name here...">
|
2024-03-01 13:01:35 +08:00
|
|
|
<span id="user-id"></span>
|
2024-02-21 11:47:40 +08:00
|
|
|
</div>
|
|
|
|
<button id="send" class="btn btn-default" type="submit">Send</button>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12">
|
|
|
|
<table id="conversation" class="table table-striped">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Greetings</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody id="greetings">
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html>
|