Skip to content

Commit f2fc3ff

Browse files
committed
docs: change delegations question
1 parent 0607cec commit f2fc3ff

1 file changed

Lines changed: 2 additions & 19 deletions

File tree

website/index.html

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,7 @@ <h4>
118118

119119
<div class="section" data-anchor="delegations">
120120
<div class="slide" data-anchor="delegations-text">
121-
<h2>Which countries are the most or the least successful with medals?</h2>
122-
<!-- <h2>Where do the medal winners come from?</h2>
123-
<h2>Who participates without reaching the podium?</h2> -->
121+
<h2>Which delegations tend to win medals, and which don't?</h2>
124122
<div class="text-columns">
125123
<div class="text-column">
126124
<p>
@@ -455,30 +453,20 @@ <h2>Project Gamma</h2>
455453
let lastMove = 0;
456454
let touchStartY = null;
457455

458-
document.querySelectorAll(".fair-ranking-card").forEach(card => {
459-
card.addEventListener("wheel", function (event) {
460-
event.stopPropagation();
461-
}, { passive: false, capture: true });
462-
});
463-
464456
function shouldForceScroll(target) {
465457
const activeSection = document.querySelector(".fp-section.active");
466458
const activeSlide = activeSection?.querySelector(".fp-slide.active");
467459
const slideAnchor = activeSlide?.dataset.anchor;
468460

469-
if (target.closest(".fair-ranking-card")) return false;
470-
471461
return (
472462
slideAnchor === "bodytype-viz" ||
473463
slideAnchor === "body-types-viz" ||
474464
slideAnchor === "geopolitics-viz" ||
475465
slideAnchor === "fair-viz" ||
476-
slideAnchor === "fair-ranking" ||
477466
target.closest("#bodytype-viz") ||
478467
target.closest("#geopolitics-map-viz") ||
479468
target.closest("#geo-event-list") ||
480-
target.closest("#fair-viz") ||
481-
target.closest("#fair-ranking-viz")
469+
target.closest("#fair-viz")
482470
);
483471
}
484472

@@ -505,11 +493,6 @@ <h2>Project Gamma</h2>
505493
document.addEventListener("wheel", function (event) {
506494
const target = event.target;
507495

508-
if (target.closest(".fair-ranking-scroll")) {
509-
event.stopPropagation();
510-
return;
511-
}
512-
513496
if (target.closest("select, option, button, input, textarea, a, .geo-popup-overlay")) {
514497
return;
515498
}

0 commit comments

Comments
 (0)