|
@@ -4,11 +4,27 @@
|
|
|
<title>Hello WebSocket</title>
|
|
|
<meta charset="UTF-8">
|
|
|
<link href="/node_modules/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
|
|
|
- <link href="/main.css" rel="stylesheet">
|
|
|
<script src="/node_modules/jquery/dist/jquery.min.js"></script>
|
|
|
<script src="/node_modules/sockjs-client/dist/sockjs.min.js"></script>
|
|
|
<script src="/node_modules/stomp-websocket/lib/stomp.min.js"></script>
|
|
|
<script src="/app.js"></script>
|
|
|
+
|
|
|
+ <style>
|
|
|
+
|
|
|
+ #main-content {
|
|
|
+ margin-top: 2em;
|
|
|
+ }
|
|
|
+
|
|
|
+ button, input {
|
|
|
+ margin-left: 1em;
|
|
|
+ }
|
|
|
+
|
|
|
+ .row {
|
|
|
+ padding-bottom: 1em;
|
|
|
+ }
|
|
|
+
|
|
|
+ </style>
|
|
|
+
|
|
|
</head>
|
|
|
<body>
|
|
|
<noscript><h2 style="color: #ff0000">Seems your browser doesn't support Javascript! Websocket relies on Javascript being
|
|
@@ -20,8 +36,8 @@
|
|
|
<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 id="connect" class="btn btn-success" type="submit">Connect</button>
|
|
|
+ <button id="disconnect" class="btn btn-danger" type="submit" disabled="disabled">Disconnect
|
|
|
</button>
|
|
|
</div>
|
|
|
</form>
|
|
@@ -32,7 +48,7 @@
|
|
|
<label for="name">What is your name?</label>
|
|
|
<input type="text" id="name" class="form-control" placeholder="Your name here...">
|
|
|
</div>
|
|
|
- <button id="send" class="btn btn-default" type="submit">Send</button>
|
|
|
+ <button id="send" class="btn btn-primary" type="submit">Send</button>
|
|
|
</form>
|
|
|
</div>
|
|
|
</div>
|