-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy pathactivity.html
More file actions
40 lines (40 loc) · 1.04 KB
/
activity.html
File metadata and controls
40 lines (40 loc) · 1.04 KB
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
<!DOCTYPE html>
<html>
<head>
<title>Community Activity</title>
<style>
canvas {
-moz-user-select: none;
-webkit-user-select: none;
-ms-user-select: none;
}
</style>
<meta charset="utf-8">
<meta content="text/html">
</head>
<body>
{% include 'ribbon.html' %}
<h1>Community Activity</h1>
<br>
<br>
<div style="width:75%;">
<canvas id="canvas"></canvas>
</div>
<select id="chart-type">
<option value="Month">Year</option>
<option value="Week">Month</option>
<option value="Day">Week</option>
</select>
<br>
<br>
<script src="//cdnjs.cloudflare.com/ajax/libs/Chart.js/2.7.1/Chart.bundle.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="/static/charts.js"></script>
<script>
$('#chart-type').on('change', function(){
updateChart($('#chart-type').val())
});
updateChart($('#chart-type').val());
</script>
</body>
</html>