2018-02-02 00:36:56 +00:00
|
|
|
{% extends "layout.html" %}
|
2018-01-28 22:29:05 +00:00
|
|
|
|
2017-01-26 22:32:27 +00:00
|
|
|
{% block content %}
|
2017-01-29 16:29:26 +00:00
|
|
|
<h1>Tu es tranché</h1>
|
2017-01-26 22:32:27 +00:00
|
|
|
<p>
|
|
|
|
{{ explanation }}
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
Rétablissement de la connexion externe dans approximativement :
|
|
|
|
</p>
|
|
|
|
<p style="text-align: center">
|
2017-01-29 17:44:32 +00:00
|
|
|
<strong><span id="time">30:00</span></strong>.
|
2017-01-26 22:32:27 +00:00
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
(redémarrer le navigateur peut être nécessaire une fois ce délai écoulé)
|
|
|
|
</p>
|
2017-01-29 16:29:26 +00:00
|
|
|
|
2020-01-18 13:29:44 +00:00
|
|
|
<p>
|
|
|
|
Voici une image de chaton pour te consoler :
|
|
|
|
<img src="https://placekitten.com/200/300"/>
|
|
|
|
|
2017-01-30 08:51:21 +00:00
|
|
|
<div id="container" style="min-width: 310px; max-width: 600px; margin: 0 auto"></div>
|
2017-01-29 16:29:26 +00:00
|
|
|
<script type='text/javascript'>
|
|
|
|
window.onload = function () {
|
2017-01-29 16:57:16 +00:00
|
|
|
var fiveMinutes = {{ timeleft }},
|
2017-01-29 16:29:26 +00:00
|
|
|
display = document.querySelector('#time');
|
|
|
|
startTimer(fiveMinutes, display);
|
|
|
|
};
|
2017-01-30 07:47:32 +00:00
|
|
|
$(function () {
|
|
|
|
Highcharts.chart('container', {
|
|
|
|
chart: {
|
2017-01-30 09:11:49 +00:00
|
|
|
backgroundColor: 'red',
|
2017-01-30 07:47:32 +00:00
|
|
|
plotBorderWidth: 0,
|
|
|
|
plotShadow: false
|
|
|
|
},
|
|
|
|
title: {
|
2018-01-12 23:30:16 +00:00
|
|
|
text: 'État du Rézo',
|
2017-01-30 07:47:32 +00:00
|
|
|
align: 'center',
|
|
|
|
verticalAlign: 'middle',
|
2017-01-30 10:12:24 +00:00
|
|
|
y: 60
|
2017-01-30 07:47:32 +00:00
|
|
|
},
|
|
|
|
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',
|
2018-01-16 09:41:43 +00:00
|
|
|
name: 'Pourcentage',
|
2017-01-30 07:47:32 +00:00
|
|
|
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',
|
|
|
|
}
|
2017-01-30 07:47:32 +00:00
|
|
|
]
|
|
|
|
}]
|
|
|
|
});
|
|
|
|
});
|
2017-01-29 16:29:26 +00:00
|
|
|
</script>
|
|
|
|
|
2017-01-26 22:32:27 +00:00
|
|
|
{% endblock %}
|