From 76ea728095730ee73f06e6765dd2bcff7d8177aa Mon Sep 17 00:00:00 2001 From: Will Robinson Date: Mon, 27 Feb 2017 10:25:02 +0000 Subject: [PATCH] Added injuries field --- doesscreens.js | 5 +++++ index.html | 1 + 2 files changed, 6 insertions(+) diff --git a/doesscreens.js b/doesscreens.js index e35a84f..4796912 100644 --- a/doesscreens.js +++ b/doesscreens.js @@ -13,8 +13,11 @@ var DoES = (function() { clearInterval(page_timeout_interval); } }, 60000); + var last_explosion = new Date('2016/10/05 16:07'); var last_flood = new Date('2016/01/05 17:15'); + var last_injury = new Date('2017/02/27 10:05'); + function seasonalUpdates() { if (page_load_time.getMonth() == 11 || ( page_load_time.getMonth() == 0 && page_load_time.getDate() < 7)) { document.write(''); @@ -295,6 +298,8 @@ var DoES = (function() { $('.explosions .days').text(days); days = Math.floor((now - last_flood) / 86400000) $('.floods .days').text(days); + days = Math.floor((now - last_injury) / 86400000); + $('.injuries .days').text(days); } $(function(){ diff --git a/index.html b/index.html index 6580519..2a6e05b 100644 --- a/index.html +++ b/index.html @@ -13,6 +13,7 @@

Welcome to DoES Liverpool

Days since last explosion: ?

Days since last flood: ?

+

Days since last injury: ?