mirror of
https://github.com/bckelley/Web-Browser-Homepage.git
synced 2026-08-24 03:24:13 -05:00
Minor fixes
Fixed color changing of background according to time
This commit is contained in:
@@ -105,7 +105,7 @@ function setBackgroundGradient() {
|
||||
document.querySelector('body').style.background="linear-gradient(-45deg, #767d92, #2f4562, #152642, #081b33)";
|
||||
} else if (hour < 12) {
|
||||
// morning gradient
|
||||
document.querySelector('body').style.background="linear-gradient(-45deg, #fa4e5e, #f9a9e, #99b9d0, #00b2d2)";
|
||||
document.querySelector('body').style.background="linear-gradient(-45deg, #fa4e5e, #f9ab9e, #99b9d0, #00b2d2)";
|
||||
} else if (hour < 15) {
|
||||
// afternoon gradient
|
||||
document.querySelector('body').style.background="linear-gradient(-45deg, #96adcf, #4570b5, #234181, #1b2966)";
|
||||
|
||||
Reference in New Issue
Block a user