forked from toorshia/justgage
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathexample.html
56 lines (45 loc) · 1.21 KB
/
example.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
<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>Guage</title>
<meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0">
</head>
<body>
<div id="ttfb" style="width: 600px; height: 400px;"></div>
<div id="conversion" style="width: 600px; height: 400px;"></div>
<div id="apiRequests" style="width: 600px; height: 400px;"></div>
<script src="raphael.js"></script>
<script src="justgage.js"></script>
<script>
var ttfb = new JustGage({
id: "ttfb",
value: 0.9,
min: 0,
max: 5,
targetValue: 0.8,
thresholdUpper: 1.2,
title: "Time to first byte"
});
var conversion = new JustGage({
id: "conversion",
value: 55,
min: 0,
max: 100,
targetValue: 58,
thresholdLower: 50,
title: "User conversion"
});
var load = new JustGage({
id: "apiRequests",
value: 1100,
min: 0,
max: 3000,
targetValue: 1500,
thresholdLower: 1000,
thresholdUpper: 2000,
title: "Database load"
});
</script>
</body>
</html>