roulette/templates/banned.html

75 lines
1.8 KiB
HTML
Raw Normal View History

2017-01-26 22:32:27 +00:00
{% extends "layout_banned.html" %}
{% 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
<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);
};
$(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',
2017-01-30 08:37:54 +00:00
name: 'Pourcentage',
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-29 16:29:26 +00:00
</script>
2017-01-26 22:32:27 +00:00
{% endblock %}