Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
martinssipenko committed Sep 20, 2024
1 parent ed7572e commit 0b4b849
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,18 @@
fetch('data.json').then(function (response) {
return response.json();
}).then(function (data) {
const prefersLightMode = window.matchMedia && window.matchMedia('(prefers-color-scheme: light)').matches;
const prefersDarkMode = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches;

const radarColors = prefersLightMode
const radarColors = prefersDarkMode
? {
background: "#ffffff", // Light background
grid: '#ddd', // Light grid lines
inactive: "#ddd" // Light inactive blips
}
: {
background: "#1d2125", // Dark background
grid: '#444', // Darker grid lines
inactive: "#777" // Darker inactive blips
}
: {
background: "#ffffff", // Light background
grid: '#ddd', // Light grid lines
inactive: "#ddd" // Light inactive blips
};

const MOVEMENT_VALUES = {
Expand Down

0 comments on commit 0b4b849

Please sign in to comment.