Commit 8bd3b8a1 authored by Ioannis Valasakis's avatar Ioannis Valasakis

Add RSoC countdown timer

As everybody frantically checks their clocks for the result announcement
add a javascript countdown timer to easy peoples lives.
parent 38bdb218
......@@ -2,6 +2,35 @@
title = "Redox Summer of Code"
+++
## Estimated time remaining for the results
<h1 id="countdown"><
<script>
var target_date = new Date("May 5, 2018").getTime();
var days, hours, minutes, seconds;
var countdown = document.getElementById("countdown");
setInterval(function () {
var current_date = new Date().getTime();
var seconds_left = (target_date - current_date) / 1000;
days = parseInt(seconds_left / 86400);
seconds_left = seconds_left % 86400;
hours = parseInt(seconds_left / 3600);
seconds_left = seconds_left % 3600;
minutes = parseInt(seconds_left / 60);
seconds = parseInt(seconds_left % 60);
countdown.innerHTML = days + "d " + hours + "h "
+ minutes + "m " + seconds + "s ";
}, 1000);
</script>
</h1>
**Applications for the 2018 Redox Summer of Code will no longer be accepted. We
are in the process of evaluating the applications and will have results
available some time before May 5th, 2018.**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment