71 lines
1.7 KiB
HTML
71 lines
1.7 KiB
HTML
{% extends "layout_banned.html" %}
|
|
{% block content %}
|
|
<h1>Tu es tranché</h1>
|
|
<p>
|
|
{{ explanation }}
|
|
</p>
|
|
<p>
|
|
Rétablissement de la connexion externe dans approximativement :
|
|
</p>
|
|
<p style="text-align: center">
|
|
<strong><span id="time">30:00</span></strong>.
|
|
</p>
|
|
<p>
|
|
(redémarrer le navigateur peut être nécessaire une fois ce délai écoulé)
|
|
</p>
|
|
|
|
<script type='text/javascript'>
|
|
window.onload = function () {
|
|
var fiveMinutes = {{ timeleft }},
|
|
display = document.querySelector('#time');
|
|
startTimer(fiveMinutes, display);
|
|
};
|
|
</script>
|
|
|
|
<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: [
|
|
['Tranchés', {{ stats[0] }}],
|
|
['Vivants', {{ stats[1] }}]
|
|
]
|
|
}]
|
|
});
|
|
});
|
|
</script>
|
|
|
|
{% endblock %}
|