From d1cf70ddeb2c1a81dfd85dbab2b950669d43f3b1 Mon Sep 17 00:00:00 2001
From: 0m364 <13804150+0m364@users.noreply.github.com>
Date: Tue, 23 Jun 2026 11:04:50 +0000
Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Palette:=20Improve=20accessibili?=
=?UTF-8?q?ty=20for=20OSINT=20modal=20buttons?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Added `role="button"` and `aria-haspopup="dialog"` to all `` links across `concepts.html`, `contact.html`, and `products.html` to communicate their purpose to screen readers.
Also added a JavaScript `keydown` listener in `modal.js` to trigger the modal via the `Spacebar` key (and prevent default page scrolling), establishing parity with native `
-
+
OSINT
diff --git a/modal.js b/modal.js
index 994d6bd..3281f0c 100644
--- a/modal.js
+++ b/modal.js
@@ -56,6 +56,12 @@ const openModal = (e) => {
const btns = document.querySelectorAll('#sitrep-btn');
btns.forEach(btn => {
btn.addEventListener('click', openModal);
+ btn.addEventListener('keydown', (e) => {
+ if (e.key === ' ' || e.code === 'Space') {
+ e.preventDefault(); // Prevent page scrolling
+ openModal(e);
+ }
+ });
});
// Close modal via button
diff --git a/products.html b/products.html
index f5f0835..01f1a6c 100644
--- a/products.html
+++ b/products.html
@@ -20,7 +20,7 @@
CHARLES WILLIAMS
Products
Concepts
Contact
- OSINT
+ OSINT