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:
+1
-1
@@ -9,7 +9,7 @@
|
||||
<link href="https://fonts.googleapis.com/css?family=Quicksand" rel="stylesheet">
|
||||
<link rel="icon" type="image/x-icon" href="/img/favicon.svg">
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.9/angular.min.js"></script>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.8.2/angular.min.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="glass">
|
||||
|
||||
@@ -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