Repository: Hestenb62/_legacy_backup
Author: Hesten Berger
Commit Message: bug fixes
URL: https://github.com/Hestenb62/_legacy_backup/commit/3a5af4c62c7f5bb096604c776e58fc1df1aa9395
Code Changes:
diff --git a/.vscode/settings.json b/.vscode/settings.json
index f609aa5..0fb13e0 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -1,6 +1,6 @@
{
"[php]": {
- "editor.defaultFormatter": "bmewburn.vscode-intelephense-client"
+ "editor.defaultFormatter": "DEVSENSE.phptools-vscode"
},
"fiveserver.php": "C:\\xampp\\php\\php.exe",
"php.validate.executablePath": "C:\\xampp\\php\\php.exe",
diff --git a/assets/css/components/accommodations.css b/assets/css/components/accommodations.css
index c3f0eb5..f341bd7 100644
--- a/assets/css/components/accommodations.css
+++ b/assets/css/components/accommodations.css
@@ -543,11 +543,15 @@ body.dyscalculia-mode-active mjx-c.mjx-c2260 {
color: var(--color-text-main);
font-weight: 700;
font-size: 0.875rem;
- outline: none;
+ transition: border-color 0.2s, box-shadow 0.2s;
}
-.acc-select:focus {
+.acc-select:focus,
+.acc-select:focus-visible {
+ outline: 2px solid var(--color-primary, #6366f1);
+ outline-offset: 2px;
border-color: var(--color-primary);
+ box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}
/* Toast */
diff --git a/assets/css/global-primitives.css b/assets/css/global-primitives.css
index fd966df..6a19a44 100644
--- a/assets/css/global-primitives.css
+++ b/assets/css/global-primitives.css
@@ -173,9 +173,12 @@
transition: top 0.2s ease-in-out;
}
- .skip-link:focus {
+ .skip-link:focus,
+ .skip-link:focus-visible {
top: 0;
- outline: none;
+ outline: 3px solid var(--color-accent, #06b6d4);
+ outline-offset: 3px;
+ box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.35), var(--shadow-lg);
}
@media (prefers-reduced-motion: reduce) {
diff --git a/assets/css/pages/standards.css b/assets/css/pages/standards.css
index feab219..e3766a9 100644
--- a/assets/css/pages/standards.css
+++ b/assets/css/pages/standards.css
@@ -173,7 +173,12 @@
font-weight: 700;
color: var(--color-text-main);
cursor: pointer;
- outline: none;
+ border-radius: var(--radius-sm, 4px);
+ }
+
+ .curr-select:focus-visible {
+ outline: 2px solid var(--color-primary, #4f46e5);
+ outline-offset: 2px;
}
.curr-select-chevron {
diff --git a/assets/css/reader-main.css b/assets/css/reader-main.css
index d35e89d..d1873d9 100644
--- a/assets/css/reader-main.css
+++ b/assets/css/reader-main.css
@@ -232,7 +232,13 @@
font-size: 0.82rem !important;
font-weight: 700 !important;
cursor: pointer !important;
- outline: none !important;
+ transition: border-color 0.2s, box-shadow 0.2s;
+}
+
+#lexile-switcher-select:focus-visible {
+ outline: 3px solid var(--color-primary, #3b82f6) !important;
+ outline-offset: 2px !important;
+ box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25) !important;
}
#lexile-switcher-select option {
diff --git a/assets/js/research/journal-engine.js b/assets/js/research/journal-engine.js
index 39d3a03..61aa821 100644
--- a/assets/js/research/journal-engine.js
+++ b/assets/js/research/journal-engine.js
@@ -816,6 +816,9 @@ export class JournalEngine {
if (!activeBlock) return;
navigator.clipboard.writeText(activeBlock.innerText).then(() => {
copyCitationBtn.innerHTML = '<i class="fas fa-check"></i> Copied!';
+ if (typeof window.announceA11y === 'function') {
+ window.announceA11y('Citation copied to clipboard');
+ }
setTimeout(() => {
copyCitationBtn.innerHTML = '<i class="far fa-copy"></i> Copy Citation';
}, 2000);
diff --git a/lessons/index.php b/lessons/index.php
new file mode 100644
index 0000000..a1c07e5
--- /dev/null
+++ b/lessons/index.php
@@ -0,0 +1,7 @@
+<?php
+/**
+ * lessons/index.php - Dynamic Lesson Router & Curriculum Engine
+ * Resolves lessons dynamically from lessons.json or loads scaffolded curriculum standards.
+ */
+
+require_once dirname(__DIR__) . '/src/lesson_renderer.php';
diff --git a/library/read/1984/chapter-1.php b/library/read/1984/chapter-1.php
index 8d3eba3..e0efc52 100644
--- a/library/read/1984/chapter-1.php
+++ b/library/read/1984/chapter-1.php
@@ -7,7 +7,7 @@ $pageAuthor = 'Hesten Allison';
include '../../../src/header.php';
?>
-<link rel="stylesheet" href="/library/library.css">
+<link rel="stylesheet" href="<?= function_exists('assetVersion') ? assetVersion('/assets/css/reader-main.css') : '/assets/css/reader-main.css' ?>">
<style>
.reader-chapter-nav {
diff --git a/library/read/1984/chapter-10.php b/library/read/1984/chapter-10.php
index 45891c3..3f07c84 100644
--- a/library/read/1984/chapter-10.php
+++ b/library/read/1984/chapter-10.php
@@ -7,7 +7,7 @@ $pageAuthor = 'Hesten Allison';
include '../../../src/header.php';
?>
-<link rel="stylesheet" href="/library/library.css">
+<link rel="stylesheet" href="<?= function_exists('assetVersion') ? assetVersion('/assets/css/reader-main.css') : '/assets/css/reader-main.css' ?>">
<style>
.reader-chapter-nav {
diff --git a/library/read/1984/chapter-11.php b/library/read/1984/chapter-11.php
index 82192bd..b0f6844 100644
--- a/library/read/1984/chapter-11.php
+++ b/library/read/1984/chapter-11.php
@@ -7,7 +7,7 @@ $pageAuthor = 'Hesten Allison';
include '../../../src/header.php';
?>
-<link rel="stylesheet" href="/library/library.css">
+<link rel="stylesheet" href="<?= function_exists('assetVersion') ? assetVersion('/assets/css/reader-main.css') : '/assets/css/reader-main.css' ?>">
<style>
.reader-chapter-nav {
diff --git a/library/read/1984/chapter-12.php b/library/read/1984/chapter-12.php
index acc3f93..5c46615 100644
--- a/library/read/1984/chapter-12.php
+++ b/library/read/1984/chapter-12.php
@@ -7,7 +7,7 @@ $pageAuthor = 'Hesten Allison';
include '../../../src/header.php';
?>
-<link rel="stylesheet" href="/library/library.css">
+<link rel="stylesheet" href="<?= function_exists('assetVersion') ? assetVersion('/assets/css/reader-main.css') : '/assets/css/reader-main.css' ?>">
<style>
.reader-chapter-nav {
diff --git a/library/read/1984/chapter-13.php b/library/read/1984/chapter-13.php
index 203e9c7..030ddb4 100644
--- a/library/read/1984/chapter-13.php
+++ b/library/read/1984/chapter-13.php
@@ -7,7 +7,7 @@ $pageAuthor = 'Hesten Allison';
include '../../../src/header.php';
?>
-<link rel="stylesheet" href="/library/library.css">
+<link rel="stylesheet" href="<?= function_exists('assetVersion') ? assetVersion('/assets/css/reader-main.css') : '/assets/css/reader-main.css' ?>">
<style>
.reader-chapter-nav {
diff --git a/library/read/1984/chapter-14.php b/library/read/1984/chapter-14.php
index 6f2e4af..3ee84e9 100644
--- a/library/read/1984/chapter-14.php
+++ b/library/read/1984/chapter-14.php
@@ -7,7 +7,7 @@ $pageAuthor = 'Hesten Allison';
include '../../../src/header.php';
?>
-<link rel="stylesheet" href="/library/library.css">
+<link rel="stylesheet" href="<?= function_exists('assetVersion') ? assetVersion('/assets/css/reader-main.css') : '/assets/css/reader-main.css' ?>">
<style>
.reader-chapter-nav {
diff --git a/library/read/1984/chapter-15.php b/library/read/1984/chapter-15.php
index 9c01b46..a3757dc 100644
--- a/library/read/1984/chapter-15.php
+++ b/library/read/1984/chapter-15.php
@@ -7,7 +7,7 @@ $pageAuthor = 'Hesten Allison';
include '../../../src/header.php';
?>
-<link rel="stylesheet" href="/library/library.css">
+<link rel="stylesheet" href="<?= function_exists('assetVersion') ? assetVersion('/assets/css/reader-main.css') : '/assets/css/reader-main.css' ?>">
<style>
.reader-chapter-nav {
diff --git a/library/read/1984/chapter-16.php b/library/read/1984/chapter-16.php
index b8f75f8..cc1c93f 100644
--- a/library/read/1984/chapter-16.php
+++ b/library/read/1984/chapter-16.php
@@ -7,7 +7,7 @@ $pageAuthor = 'Hesten Allison';
include '../../../src/header.php';
?>
-<link rel="stylesheet" href="/library/library.css">
+<link rel="stylesheet" href="<?= function_exists('assetVersion') ? assetVersion('/assets/css/reader-main.css') : '/assets/css/reader-main.css' ?>">
<style>
.reader-chapter-nav {
diff --git a/library/read/1984/chapter-17.php b/library/read/1984/chapter-17.php
index 5c5cee1..ecc6169 100644
--- a/library/read/1984/chapter-17.php
+++ b/library/read/1984/chapter-17.php
@@ -7,7 +7,7 @@ $pageAuthor = 'Hesten Allison';
include '../../../src/header.php';
?>
-<link rel="stylesheet" href="/library/library.css">
+<link rel="stylesheet" href="<?= function_exists('assetVersion') ? assetVersion('/assets/css/reader-main.css') : '/assets/css/reader-main.css' ?>">
<style>
.reader-chapter-nav {
diff --git a/library/read/1984/chapter-18.php b/library/read/1984/chapter-18.php
index e92dfcf..7c35ca2 100644
--- a/library/read/1984/chapter-18.php
+++ b/library/read/1984/chapter-18.php
@@ -7,7 +7,7 @@ $pageAuthor = 'Hesten Allison';
include '../../../src/header.php';
?>
-<link rel="stylesheet" href="/library/library.css">
+<link rel="stylesheet" href="<?= function_exists('assetVersion') ? assetVersion('/assets/css/reader-main.css') : '/assets/css/reader-main.css' ?>">
<style>
.reader-chapter-nav {
diff --git a/library/read/1984/chapter-19.php b/library/read/1984/chapter-19.php
index 79cb81c..05557d4 100644
--- a/library/read/1984/chapter-19.php
+++ b/library/read/1984/chapter-19.php
@@ -7,7 +7,7 @@ $pageAuthor = 'Hesten Allison';
include '../../../src/header.php';
?>
-<link rel="stylesheet" href="/library/library.css">
+<link rel="stylesheet" href="<?= function_exists('assetVersion') ? assetVersion('/assets/css/reader-main.css') : '/assets/css/reader-main.css' ?>">
<style>
.reader-chapter-nav {
diff --git a/library/read/1984/chapter-2.php b/library/read/1984/chapter-2.php
index f28fa28..597b5c0 100644
--- a/library/read/1984/chapter-2.php
+++ b/library/read/1984/chapter-2.php
@@ -7,7 +7,7 @@ $pageAuthor = 'Hesten Allison';
include '../../../src/header.php';
?>
-<link rel="stylesheet" href="/library/library.css">
+<link rel="stylesheet" href="<?= function_exists('assetVersion') ? assetVersion('/assets/css/reader-main.css') : '/assets/css/reader-main.css' ?>">
<style>
.reader-chapter-nav {
diff --git a/library/read/1984/chapter-20.php b/library/read/1984/chapter-20.php
index fae1a99..a14a9fe 100644
--- a/library/read/1984/chapter-20.php
+++ b/library/read/1984/chapter-20.php
@@ -7,7 +7,7 @@ $pageAuthor = 'Hesten Allison';
include '../../../src/header.php';
?>
-<link rel="stylesheet" href="/library/library.css">
+<link rel="stylesheet" href="<?= function_exists('assetVersion') ? assetVersion('/assets/css/reader-main.css') : '/assets/css/reader-main.css' ?>">
<style>
.reader-chapter-nav {
diff --git a/library/read/1984/chapter-21.php b/library/read/1984/chapter-21.php
index 01ebe68..7a276a1 100644
--- a/library/read/1984/chapter-21.php
+++ b/library/read/1984/chapter-21.php
@@ -7,7 +7,7 @@ $pageAuthor = 'Hesten Allison';
include '../../../src/header.php';
?>
-<link rel="stylesheet" href="/library/library.css">
+<link rel="stylesheet" href="<?= function_exists('assetVersion') ? assetVersion('/assets/css/reader-main.css') : '/assets/css/reader-main.css' ?>">
<style>
.reader-chapter-nav {
diff --git a/library/read/1984/chapter-22.php b/library/read/1984/chapter-22.php