summaryrefslogtreecommitdiff
path: root/script.js
diff options
context:
space:
mode:
authorMichael Foiani <sotech117@michaels-mbp-21.devices.brown.edu>2022-09-06 21:10:45 -0400
committerMichael Foiani <sotech117@michaels-mbp-21.devices.brown.edu>2022-09-06 21:10:45 -0400
commit8d0e91a305e90b2e16fdadbfbc5fa77ddcafb735 (patch)
tree56323e022c636409780309503f634cf67a255ff8 /script.js
parent67d31021543c502c4175133eab558642a0f30512 (diff)
fix tabbing
Diffstat (limited to 'script.js')
-rw-r--r--script.js8
1 files changed, 6 insertions, 2 deletions
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