-
Notifications
You must be signed in to change notification settings - Fork 4
/
ratinghist.html
63 lines (46 loc) · 1.29 KB
/
ratinghist.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
<%inherit file="layout.html"/>
<%namespace name="lib" file="lib.html"/>
<%!
import cherrypy as cp
import config as conf
import webapp
%>
<%block name="head">
<script
type="text/javascript"
src="//cdnjs.cloudflare.com/ajax/libs/flot/0.8.1/jquery.flot.min.js"
></script>
<script
type="text/javascript"
src="//cdnjs.cloudflare.com/ajax/libs/flot/0.8.1/jquery.flot.time.min.js"
></script>
<style type="text/css">
div#plot {
width: 320px;
height: 320px;
}
</style>
<script type="text/javascript">
$(document).ready(function() {
var plotData = ${data};
var plot = $.plot(
$('div#plot')
,[ plotData ]
,{
xaxis: {
mode: 'time'
,timezone: 'browser'
}
,series: {
color: 'green'
}
}
);
});
</script>
</%block>
<%block name="mid_content">
<h2>Rating history for user <em>${webapp.get_username_to_use_short() | h}</em></h2>
<div id="plot">
</div>
</%block>