Skip to content

Commit

Permalink
trying to fix the good..
Browse files Browse the repository at this point in the history
  • Loading branch information
met18001 committed Apr 20, 2020
1 parent d28c0cb commit 3f683b0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
8 changes: 1 addition & 7 deletions final_project/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,7 @@ body {

}

img {

}

#img{

}


/* Google font */
@import url('https://fonts.googleapis.com/css?family=Orbitron');
Expand Down
11 changes: 8 additions & 3 deletions final_project/js/this.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
}

0 comments on commit 3f683b0

Please sign in to comment.