ALPHA 3.0.2b

This commit is contained in:
TheGamecraft
2018-09-10 09:13:10 -04:00
parent 0e0ef86b71
commit e536ef7e0a
7 changed files with 33 additions and 72 deletions

View File

@@ -5,7 +5,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Escadron 697</title>
<title>Escadron {{config('squadron.number')}}</title>
<!-- Fonts -->
<link rel="stylesheet" href="assets/css/bootstrap.min.css">
@@ -80,59 +80,12 @@
<div class="content">
<div class="title m-b-md">
Escadron 697 - Rotary Rimouski
</div>
<h4>
Le site de l'escadron sera de retour en septembre pour commencer la nouvelle année d'instruction !
</h4>
<div style="display : inline-flex;">
<h3><p id="demo"></p></h3>
</div>
<div>
<div class="progress mb-2" >
<div class="progress-bar bg-success progress-bar-striped progress-bar-animated" role="progressbar" style="width: 25%;" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100">25%</div>
</div>
<?php
foreach ($tasks as $task) {
echo $task->body;
}
?>
{{config('squadron.fullname')}}
</div>
<div class="links" style="padding-top: 50px;">
© C-CMS 2018 - Version 2.2.2
© C-CMS 2018 - Version {{config('app.version')}}
</div>
</div>
</div>
<script>
// Set the date we're counting down to
var countDownDate = new Date("Sep 1, 2018 18:30:00").getTime();
// Update the count down every 1 second
var x = setInterval(function() {
// Get todays date and time
var now = new Date().getTime();
// Find the distance between now an the count down date
var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds
var days = Math.floor(distance / (1000 * 60 * 60 * 24));
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Display the result in the element with id="demo"
document.getElementById("demo").innerHTML = "PLUS QUE " + days + "J " + hours + "H "
+ minutes + "M " + seconds + "S !";
// If the count down is finished, write some text
if (distance < 0) {
clearInterval(x);
document.getElementById("demo").innerHTML = "EXPIRED";
}
}, 1000);
</script>
</body>
</html>