-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
94 lines (94 loc) · 2.6 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<html>
<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>Superpedestrian Status</title>
<link rel="stylesheet" href="bower_components/furtive/css/furtive.min.css" />
<link
href="https://api.tiles.mapbox.com/mapbox-gl-js/v0.29.0/mapbox-gl.css"
rel="stylesheet"
/>
<link rel="stylesheet" href="css/index.css" />
<script
src='https://api.tiles.mapbox.com/mapbox-gl-js/v0.29.0/mapbox-gl.js'
>
</script>
<script src="./bower_components/jquery/dist/jquery.js"></script>
<script src="./bower_components/mustache.js/mustache.js"></script>
</head>
<body>
<div class="pad txt--center">
<h1>Superpedestrian</h1>
</div>
<div class="grd p0 m0">
<div class="grd-row">
<div class="full-width">
<div id="overall"></div>
</div>
</div>
<div class="grd-row pad">
<h2>90 Day Wheel Usage</h2>
<div id="map" style="height: 300px; width: 100%;"></div>
</div>
<div class="grd-row pad">
<div class="full-width" id="twitter-container">
<h2>Latest Updates</h2>
<div id="twitter">
</div>
</div>
</div>
</div>
<div id="web">
</div>
</body>
<script type="text/javascript" src="js/index.js"></script>
<script id="overall-template" type="x-tmpl-mustache">
<div class="p2 {{ status }}">
<h2 class="m0 p0 fnt--white">Overall Status</h2>
<div class="raised2 flt--right">
Last Updated: <time>{{ updated }}</time>
</div>
<p class="p1">
{{ statusMsg }}
</p>
{{# appIssues }}
<p>
Problematic Apps:
<ul>
{{# apps }}
<li>{{ . }}</li>
{{/ apps }}
</ul>
</p>
{{/ appIssues }}
</div>
</script>
<script id="twitter-template" type="x-tmpl-mustache">
<ul>
{{# tweets }}
<li>
<time>{{ date }}</time>
<p>
{{ text }}
</p>
</li>
{{/ tweets }}
</ul>
</script>
<script id="web-template" type="x-tmpl-mustache">
<div class="grd-row" class="dummy">
{{# apps }}
{{{ row }}}
<div class="p2 m1 status grd-row-col-3-6 {{ health_status}}">
<h2><a href="{{ url }}">{{ name }}</a></h2>
<ul>
<li>Response Time: {{ response_time }} ms</li>
<li>Throughput: {{ throughput }}/minute</li>
<li>Error Rate: {{ error_rate }}%</li>
</ul>
</div>
{{/ apps }}
</div>
</script>
</html>