roulette/templates/precampagne.html

59 lines
1.5 KiB
HTML
Raw Normal View History

{% extends "layout_precampagne.html" %}
2017-01-29 18:54:55 +00:00
{% block content %}
<h2>Pas de précampagne!</h2>
<p>
2017-01-29 23:05:29 +00:00
Reviens plus tard {{ user['firstname']+' '+user['name'] }} pour jouer à la rezo-roulette
2017-01-29 18:54:55 +00:00
</p>
<script type="text/javascript">
$(function () {
Highcharts.chart('container', {
chart: {
plotBackgroundColor: null,
plotBorderWidth: 0,
plotShadow: false
},
title: {
text: 'Etat du Rezo',
align: 'center',
verticalAlign: 'middle',
y: 40
},
tooltip: {
pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>'
},
plotOptions: {
pie: {
dataLabels: {
enabled: true,
distance: -50,
style: {
fontWeight: 'bold',
color: 'white'
}
},
startAngle: -90,
endAngle: 90,
center: ['50%', '75%']
},
},
series: [{
type: 'pie',
name: 'Etat du Rezo',
innerSize: '50%',
data: [
2017-01-30 08:37:54 +00:00
{
name: 'Tranchés',
y: {{ stats[0] }},
color: '#FF0000',
},{
name: 'Vivants',
y: {{ stats[1] }},
color: '#FFCC00',
}
]
}]
});
});
</script>
2017-01-29 18:54:55 +00:00
{% endblock %}