Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 2 additions & 19 deletions src/index.webc
Original file line number Diff line number Diff line change
Expand Up @@ -701,11 +701,6 @@ changefreq: "weekly"
.marquee-row:hover .marquee-track {
animation-play-state: paused !important;
}
.marquee-logo-link {
display: flex;
align-items: center;
flex-shrink: 0;
}
.marquee-logo {
width: auto;
max-width: 8rem;
Expand All @@ -714,7 +709,7 @@ changefreq: "weekly"
transition: opacity 0.2s ease;
cursor: pointer;
}
.marquee-logo-link:hover .marquee-logo {
.marquee-logo:hover {
opacity: 1;
}
@keyframes marquee-scroll {
Expand All @@ -736,23 +731,11 @@ changefreq: "weekly"

<script>

// Marquee: wrap logos in links, duplicate tracks, measure exact scroll distance, randomize start
// Marquee: duplicate tracks, measure exact scroll distance, randomize start
(function marqueeSetup() {
document.querySelectorAll('.marquee-track').forEach(track => {
const items = Array.from(track.children);
items.forEach(item => {
const slug = item.getAttribute('data-provider-slug');
if (slug) {
const name = slug.split('/')[0];
const link = document.createElement('a');
link.href = '/providers/#' + name;
link.className = 'marquee-logo-link';
item.parentNode.insertBefore(link, item);
link.appendChild(item);
}
});
const wrapped = Array.from(track.children);
wrapped.forEach(item => {
const clone = item.cloneNode(true);
clone.setAttribute('aria-hidden', 'true');
track.appendChild(clone);
Expand Down