More work on marketing pages

This commit is contained in:
Matthew Holt 2023-11-21 10:11:05 -07:00 committed by Francis Lavoie
parent 48645cedc1
commit 14e9b01bf4
No known key found for this signature in database
GPG key ID: 0F66EE1687682239
8 changed files with 426 additions and 42 deletions

View file

@ -185,6 +185,17 @@ on('mouseover', '.button:not(.cool), button:not(.cool)', (e) => {
});
// mouseover highlights for feature sections that explain config
on('mouseover', '.rollover', e => {
const target = e.target.closest('.rollover') || e.target;
$$(`.${target.dataset.rollover}`).forEach(elem => elem.classList.add('show'));
});
on('mouseout', '.rollover', e => {
const target = e.target.closest('.rollover') || e.target;
$$(`.${target.dataset.rollover}`).forEach(elem => elem.classList.remove('show'));
});
// immediately set the configured theme to avoid flash
setTheme(getTheme());