2017-01-29 23:58:56 +00:00
|
|
|
{% extends "layout.html" %}
|
2017-01-26 22:32:27 +00:00
|
|
|
{% block content %}
|
2017-01-29 23:58:56 +00:00
|
|
|
<h2>Toi aussi, joue au rézoman avec la rezo-roulette Les Metzquetaires !</h2>
|
2017-01-30 00:42:20 +00:00
|
|
|
<p id="play" style="text-align: center; font-size: 1.5em">
|
|
|
|
<a href="{{url_for('play')}}">Jouer</a>
|
|
|
|
</p>
|
|
|
|
<h2>Historique personnel</h2>
|
2017-01-26 22:32:27 +00:00
|
|
|
|
2017-01-30 00:42:20 +00:00
|
|
|
{% if bans_hist != [] %}
|
|
|
|
<ul id="history">
|
|
|
|
{% for entry in bans_hist %}
|
|
|
|
<li class="{{ entry[0] }}" class="events">
|
|
|
|
<span class="normal"> {{ entry[1] }}</span>
|
|
|
|
</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
{% else %}
|
|
|
|
<p>
|
|
|
|
Rien pour l'instant
|
|
|
|
</p>
|
|
|
|
|
2017-01-30 00:45:54 +00:00
|
|
|
{% endif %}
|
2017-01-30 00:42:20 +00:00
|
|
|
<div id="container" style="min-width: 310px; max-width: 600px; margin: 0 auto"></div>
|
2017-01-30 00:45:54 +00:00
|
|
|
|
2017-01-30 00:42:20 +00:00
|
|
|
<script type='text/javascript'>
|
2017-01-30 00:23:52 +00:00
|
|
|
$(function () {
|
|
|
|
Highcharts.chart('container', {
|
|
|
|
chart: {
|
|
|
|
plotBackgroundColor: null,
|
|
|
|
plotBorderWidth: 0,
|
|
|
|
plotShadow: false
|
|
|
|
},
|
|
|
|
title: {
|
|
|
|
text: 'Browser<br>shares<br>2015',
|
|
|
|
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 00:47:43 +00:00
|
|
|
['Tranchés', {{ stats[0] }}],
|
|
|
|
['Vivants', {{ stats[1] }}]
|
2017-01-30 00:23:52 +00:00
|
|
|
]
|
|
|
|
}]
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
2017-01-26 22:32:27 +00:00
|
|
|
{% endblock %}
|