Skip to content

Commit

Permalink
Update script.js
Browse files Browse the repository at this point in the history
  • Loading branch information
codemaniac-sahil authored Jan 23, 2022
1 parent 43a3a16 commit d97b190
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ if (s > 12 && s<16) {
document.getElementById('time').innerHTML = " Evening";
document.body.style = "background-image:linear-gradient(black,gray);";
}
if(s>=23 && s<=12){
else{
document.getElementById('time').innerHTML = " Morning";
document.body.style = "background-image:linear-gradient(orange,yellow);";
}

0 comments on commit d97b190

Please sign in to comment.