-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
71 lines (63 loc) · 2.8 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Cube</title>
<!-- Bootstrap -->
<link href="https://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" rel="stylesheet">
<link href="css/cube.css" rel="stylesheet">
</head>
<body>
<div class="container">
<div class="header">
<h3 class="text-muted">TiSensorTag/#</h3>
</div>
<div class="jumbotron" id="jumbotron"></div>
<div class="row">
<div class="col-sm-5">
<div class="input-group">
<span class="input-group-addon">broker</span>
<input type="text" class="form-control requiresDisconnect" id="connectBroker" placeholder="broker" value="messagesight.demos.ibm.com">
</div>
</div>
<div class="col-sm-3">
<div class="input-group">
<span class="input-group-addon">port</span>
<input type="text" class="form-control requiresDisconnect" id="connectPort" placeholder="port" value="1883">
</div>
</div>
<div class="col-sm-4">
<div class="btn-group btn-group-justified">
<div class="btn-group">
<button type="button" class="btn btn-success requiresDisconnect" id="connectButton">connect</button>
</div>
<div class="btn-group">
<button type="button" class="btn btn-danger requiresConnect" id="disconnectButton">disconnect</button>
</div>
</div>
</div>
</div><!-- /.row -->
<div id="connectedAlert" class="alert alert-success" style="display:none; margin-top: 15px;">
Connected to <span id="connectedAlertBroker"></span><span id="connectedAlertPort"></span>
</div>
<div id="errorAlert" class="alert alert-danger" style="display:none; margin-top: 15px;">
Error: <span id="errorAlertText"></span>
</div>
<div id="log">
<div>
<pre style="line-height: 14px; font-size: 11px; margin-top: 15px;" class="pre-scrollable" id="logContents"></pre>
</div>
</div>
</div><!-- /container -->
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="https://netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
<script src="http://threejs.org/build/three.min.js"></script>
<script src="js/utils/mqttws31.js"></script>
<script src="js/cube.js"></script>
<script src="js/MQTTClient.js"></script>
</body>
</html>