-
Notifications
You must be signed in to change notification settings - Fork 6
/
index.html
67 lines (62 loc) · 2.59 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
<!doctype html>
<html ng-app="test">
<head>
<base href="/">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Realtime Test Page</title>
<meta name="description" content="Realtime Test Page">
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="stylesheets/bootstrap.min.css">
<link rel="stylesheet" href="stylesheets/bootstrap-responsive.min.css">
<link rel="stylesheet" href="stylesheets/device-component-ng.min.css">
<style>
.main { margin-top:20px; width: 380px; }
.row { margin-left: 0; }
.navbar a, .navbar a:hover { color: #333; font-size: 16px; }
.device { width: 325px; }
.label { font-size: 20px; font-weight: 200; padding: 7px }
.label-success { background-color: #239cbb; }
a { cursor: pointer; }
</style>
</head>
<body ng-controller="DashboardCtrl">
<div class="navbar navbar-fixed-top">
<div class="navbar-inner-flat">
<div class="container">
<ul class="nav pull-right">
</ul>
</div>
</div>
</div>
<div class="container main">
<div class="row">
<h1>Realtime Test Page</h1>
<p class="lead label label-success" style="display: none" ng-show="connected">Successfully connected to websocket</p>
<p class="lead label label-important" style="display: none" ng-show="!connected">Disconnected</p>
<p class="lead">
This page simulates a server side event. <br/>
<a hfref="#" ng-click="test()" >Clicking here</a> to see the device status<br/>
change in any open page.
</p>
<div>
<device class="device" device-id="1"></device>
</div>
</div>
</div>
<!-- Socket.io library -->
<script src="socket.io/socket.io.js"></script>
<!-- Angular Libraries -->
<script src="/components/underscore/underscore.js"></script>
<script src="/components/unstable-angular-complete/angular.js"></script>
<script src="/components/unstable-angular-complete/angular-resource.js"></script>
<script src="/components/unstable-angular-complete/angular-cookies.js"></script>
<script src="/controllers/dashboard-controller.js"></script>
<script src="/components/lelylan-ng/lelylan-ng.js"></script>
<script src="/components/device-component-ng/device-component-ng.js"></script>
<!-- Test Helpers -->
<script src="/components/unstable-angular-complete/angular-mocks.js"></script>
<script src="/mocks/mocks.js"></script>
<script src="/fixtures/fixtures.js"></script>
</body>
</html>