mirror of
https://github.com/caddyserver/website.git
synced 2025-04-21 20:46:15 -04:00
Work on homepage more
This commit is contained in:
parent
3080b07b44
commit
870345f5b9
6 changed files with 365 additions and 90 deletions
|
@ -20,5 +20,14 @@ const resp = fetch("/resources/testimonials.json").then(async resp => {
|
|||
}
|
||||
$(`.testimonial-col:nth-child(${i%3 + 1})`).append(tpl);
|
||||
}
|
||||
|
||||
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'));
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue