diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-01-15 22:43:52 +0100 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-01-15 22:43:52 +0100 |
| commit | 778e74bbf1f43b7703d1c3230a0a88b5c5f9f573 (patch) | |
| tree | 2ba7913f407002808288257a73673e42654cf853 /examples/dashboard/templates/stats.js | |
| parent | 530cba26f5e63e2c9b593dea40ee5d774ac3d2c4 (diff) | |
| download | python-gamelocker-778e74bbf1f43b7703d1c3230a0a88b5c5f9f573.tar.gz python-gamelocker-778e74bbf1f43b7703d1c3230a0a88b5c5f9f573.zip | |
dashboard: more stats
Diffstat (limited to 'examples/dashboard/templates/stats.js')
| -rw-r--r-- | examples/dashboard/templates/stats.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/examples/dashboard/templates/stats.js b/examples/dashboard/templates/stats.js index cb68641..518bce8 100644 --- a/examples/dashboard/templates/stats.js +++ b/examples/dashboard/templates/stats.js @@ -1,4 +1,13 @@ $(function () { + $("#boots").text("{{ stats.boots }}"); + $("#potions").text("{{ stats.potions }}"); + $("#minions").text("{{ stats.minions }}"); + $("#topsold").text("{{ stats.topsold }}"); + $(".number").text("{{ stats.number }}"); + csstat = {{ stats.topcs|tojson|safe }}; + $("#cs-player").text(csstat.player); + $("#cs-actor").text(csstat.actor); + $("#cs-cs").text(csstat.cs); Highcharts.chart("gameType", { chart: { type: "pie" @@ -53,10 +62,14 @@ $(function () { enabled: false }, tickInterval: 1, + min: -0.5, + max: 1.5 }, title: { text: "Game durations" }, series: {{ stats.durations|tojson|safe }} }); + + $(".highcharts-credits").hide(); }); |
