From 97cd13886934996a6a0655f4e214d93edca42210 Mon Sep 17 00:00:00 2001 From: swaggboi Date: Sun, 28 Feb 2021 02:04:39 -0500 Subject: [PATCH] Small fixes and brought back the monospace font --- public/css/crt.css | 22 ---------------------- public/css/swagg.css | 1 + public/js/die.js | 10 +++++----- templates/index.html.ep | 2 +- 4 files changed, 7 insertions(+), 28 deletions(-) delete mode 100644 public/css/crt.css diff --git a/public/css/crt.css b/public/css/crt.css deleted file mode 100644 index 2f34116..0000000 --- a/public/css/crt.css +++ /dev/null @@ -1,22 +0,0 @@ -body { - cursor: url('/misc/piz_normal_p1.cur'), auto; - background: #000; - margin: 8px; - color: #00FF00; - font: normal 16px/20px Courier, Courier New, monospace; -} - -a { - color: #FFF; - text-decoration: underline; -} - -a:hover { - color: #EEE; - text-decoration: none; -} - -form { - cursor: auto; - text-align: center; -} diff --git a/public/css/swagg.css b/public/css/swagg.css index f90604c..98c46e0 100644 --- a/public/css/swagg.css +++ b/public/css/swagg.css @@ -3,6 +3,7 @@ body { background: #000; margin: 8px; color: #00FF00; + font: normal 16px/20px Courier, Courier New, monospace; } a { diff --git a/public/js/die.js b/public/js/die.js index 5658cb7..c8178ee 100644 --- a/public/js/die.js +++ b/public/js/die.js @@ -28,7 +28,7 @@ var countDownDate = new Date("Aug 17, 2021 00:00:00").getTime(); // Update the count down every 1 second -var x = setInterval(function() { +var x = setInterval(function () { // Get today's date and time var now = new Date().getTime(); @@ -37,14 +37,14 @@ var x = setInterval(function() { 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 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="dethKlok" - document.getElementById("dethKlok").innerHTML = days + "d " + hours + "h " - + minutes + "m " + seconds + "s "; + document.getElementById("dethKlok").innerHTML = days + "d " + hours + "h " + + minutes + "m " + seconds + "s "; // If the count down is finished, write some text if (distance < 0) { diff --git a/templates/index.html.ep b/templates/index.html.ep index 8bd0f54..e417c3c 100644 --- a/templates/index.html.ep +++ b/templates/index.html.ep @@ -17,7 +17,7 @@ character from Doom video game

- When will Internet Explorer be deprecated? + When will Internet Explorer be deprecated? Internet Explorer