From 3f683b0984b386f2fc1a87bc62d4d4d0e647be9b Mon Sep 17 00:00:00 2001 From: Meira Tompkins Date: Sun, 19 Apr 2020 23:37:31 -0400 Subject: [PATCH] trying to fix the good.. --- final_project/css/style.css | 8 +------- final_project/js/this.js | 11 ++++++++--- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/final_project/css/style.css b/final_project/css/style.css index 913a85b..5fd8ad8 100644 --- a/final_project/css/style.css +++ b/final_project/css/style.css @@ -5,13 +5,7 @@ body { } - img { - - } - - #img{ - - } + /* Google font */ @import url('https://fonts.googleapis.com/css?family=Orbitron'); diff --git a/final_project/js/this.js b/final_project/js/this.js index e98f9f2..69acafe 100644 --- a/final_project/js/this.js +++ b/final_project/js/this.js @@ -46,10 +46,15 @@ function currentTime() { var today = new Date() var curHr = today.getHours() +//function writeText(displayText){ + //var p = document.getElementById('good'); + // document.write("hello"); +//} + if (curHr < 12) { - document.write('good morning').getElementById('good') + document.write('good morning') } else if (curHr < 18) { - document.write('good afternoon').getElementById('good') + document.write('good afternoon') } else { - document.write('good evening').getElementById('good') + document.write('good evening') } \ No newline at end of file