mirror of
https://git.ianrenton.com/ian/spothole.git
synced 2026-04-29 18:25:58 +00:00
Conditions display should be a separate page #92
This commit is contained in:
@@ -183,13 +183,10 @@ function listenForOSThemeChange() {
|
||||
});
|
||||
}
|
||||
|
||||
// Panel toggle functions.
|
||||
// PANELS is the single registry of all collapsible panels. To add a new panel, add an entry here
|
||||
// and provide named wrappers below. The toggle logic will automatically handle hiding other panels.
|
||||
// Panel toggle functions
|
||||
const PANELS = [
|
||||
{ area: "#filters-area", button: "#filters-button" },
|
||||
{ area: "#display-area", button: "#display-button" },
|
||||
{ area: "#conditions-area", button: "#conditions-button" },
|
||||
{ area: "#filters-area",button: "#filters-button" },
|
||||
{ area: "#display-area", button: "#display-button" },
|
||||
];
|
||||
|
||||
// Toggle a panel open or closed. If opening, all other visible panels are closed first.
|
||||
@@ -217,8 +214,6 @@ function toggleFiltersPanel() { togglePanel("#filters-area"); }
|
||||
function closeFiltersPanel() { closePanel("#filters-area"); }
|
||||
function toggleDisplayPanel() { togglePanel("#display-area"); }
|
||||
function closeDisplayPanel() { closePanel("#display-area"); }
|
||||
function toggleConditionsPanel() { togglePanel("#conditions-area"); }
|
||||
function closeConditionsPanel() { closePanel("#conditions-area"); }
|
||||
|
||||
|
||||
// Startup
|
||||
|
||||
Reference in New Issue
Block a user