From 8d0e91a305e90b2e16fdadbfbc5fa77ddcafb735 Mon Sep 17 00:00:00 2001 From: Michael Foiani Date: Tue, 6 Sep 2022 21:10:45 -0400 Subject: fix tabbing --- script.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'script.js') diff --git a/script.js b/script.js index 4178c93..7365d05 100644 --- a/script.js +++ b/script.js @@ -1,11 +1,15 @@ -const THRESHOLD_FIDELITY = 150 ; +const THRESHOLD_FIDELITY = 150; + +// accessibility tab index +const sectionsAndHeaders = document.querySelectorAll('section, header'); +console.log(sectionsAndHeaders) +sectionsAndHeaders.forEach(ele => ele.tabIndex = "1"); // mutation observer for the video element const videoTitle = document.querySelector('#video-title'); // const pastryIframe = document.querySelector('#connie-pastries') - const observer = new IntersectionObserver(entries => { // note - if the boundingClientRect.y is negative, then they are scrolling down // note - since using id, only 1 entry -- cgit v1.2.3-70-g09d2