Repository: Hestenb62/_legacy_backup
Author: Hesten Berger
Commit Message: updated library
URL: https://github.com/Hestenb62/_legacy_backup/commit/8e6fe5ed291b3035d52cfe5c00e5c7b353d3d3b3
Code Changes:
diff --git a/library/bookd.json b/library/bookd.json
index 323d712..89ee4e2 100644
--- a/library/bookd.json
+++ b/library/bookd.json
@@ -43,7 +43,7 @@
"description": "A dystopian social science fiction novel and cautionary tale. The story follows the life of Winston Smith, a low-ranking member of 'the Party'.",
"pdf-link": "https://cdn.hestena62.com/library/Nineteen%20eighty-four%20-%20Goerge%20Orwell.pdf",
"epub-link": "https://cdn.hestena62.com/library/Nineteen%20eighty-four%20-%20George%20Orwell.epub",
- "read-online-link": "/library/read/reader.php?book=1984",
+ "read-online-link": "/library/read/index.php?book=1984",
"txt-link": "https://cdn.hestena62.com/library/Nineteen%20eighty-four%20-%20George%20Orwell.txt",
"mobi-link": "https://cdn.hestena62.com/library/Nineteen%20eighty-four%20-%20George%20Orwell.mobi",
"word-link": "https://cdn.hestena62.com/library/Nineteen%20eighty-four%20-%20George%20Orwell.docx",
@@ -74,7 +74,7 @@
"description": "The story of Victor Frankenstein, a young scientist who creates a sapient creature in an unorthodox scientific experiment.",
"pdf-link": "https://www.gutenberg.org/ebooks/84",
"epub-link": "https://www.gutenberg.org/ebooks/84",
- "read-online-link": "/library/read/reader.php?book=frankenstein",
+ "read-online-link": "/library/read/index.php?book=frankenstein",
"lexile": "1170L",
"grade": "Grades 9-12",
"local-file": "pg84-images.html"
@@ -199,7 +199,7 @@
"description": "'The United States Constitution' by United States is a foundational document drafted in 1787 and operational since 1789. Born from the failures of the Articles of Confederation, it establishes the supreme law of America through seven original articles defining federal government structure. Influenced by Enlightenment philosophy and English common law, it separates power among legislative, executive, and judicial branches. Twenty-seven amendments have since expanded individual rights and modified governmental processes, making it the world's oldest written national constitution still in force.",
"pdf-link": "",
"epub-link": "https://www.gutenberg.org/ebooks/5.epub.images",
- "read-online-link": "/library/read/reader.php?book=usa-constitution",
+ "read-online-link": "/library/read/index.php?book=usa-constitution",
"txt-link": "https://www.gutenberg.org/ebooks/5.txt.utf-8",
"mobi-link": "",
"word-link": "",
diff --git a/library/read/()()()(()1984.php b/library/read/()()()(()1984.php
deleted file mode 100644
index 9bc95ac..0000000
--- a/library/read/()()()(()1984.php
+++ /dev/null
@@ -1,12094 +0,0 @@
-<?php
-// --- Page-Specific Variables ---
-$pageTitle = "1984 | Hesten's Learning";
-$pageDescription = "Read 1984 by George Orwell online at Hesten's Learning e-library, with full accessibility support.";
-$pageKeywords = "ebook, online reader, 1984, George Orwell, accessible reading";
-$pageAuthor = "Hesten Allison";
-
-// --- INCLUDE THE HEADER (Root) ---
-include '../../src/header.php';
-?>
-
-<!-- Reader Specific Styles -->
-<style>
- /* Clean Reader Layout */
- #reader-container {
- max-width: 800px;
- margin: 0 auto;
- padding: 2rem;
- }
-
- /* Progress Bar */
- #progress-bar-container {
- position: fixed;
- top: 0;
- left: 0;
- width: 100%;
- height: 4px;
- background-color: var(--color-base-bg, #eee);
- z-index: 1001;
- }
-
- #progress-bar {
- height: 100%;
- width: 0;
- background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
- transition: width 0.1s ease-out;
- }
-
- /* Sticky Header for Controls */
- #reader-controls {
- position: sticky;
- top: 0;
- z-index: 50;
- background-color: var(--color-base-bg);
- border-bottom: 1px solid var(--color-text-secondary);
- padding: 1rem 0;
- margin-bottom: 2rem;
- transition: background-color 0.3s;
- }
-
- /* Add backdrop blur for premium feel if supported */
- @supports (backdrop-filter: blur(10px)) {
- #reader-controls {
- background-color: transparent;
- backdrop-filter: blur(10px);
- }
- }
-
- /* Typography Enhancements */
- #book-content p {
- margin-bottom: 1.5em;
- text-align: justify;
- }
-
- /* Disable justify for Dyslexic font */
- body.font-dyslexic #book-content p {
- text-align: left;
- }
-
- /* Tooltip Styling */
- .tooltip {
- position: relative;
- display: inline-block;
- cursor: help;
- border-bottom: 2px dotted var(--color-accent);
- color: var(--color-primary);
- font-weight: 600;
- }
-
- .tooltip .tooltiptext {
- visibility: hidden;
- width: 240px;
- background-color: var(--color-content-bg, #ffffff);
- color: var(--color-text-default);
- border: 1px solid var(--color-text-secondary);
- text-align: center;
- border-radius: 12px;
- padding: 12px;
- position: absolute;
- z-index: 100;
- bottom: 140%;
- left: 50%;
- transform: translateX(-50%);
- opacity: 0;
- transition: opacity 0.3s, transform 0.3s, bottom 0.3s;
- box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
- font-weight: 500;
- font-size: 0.95em;
- line-height: 1.4;
- pointer-events: auto;
- display: flex;
- flex-direction: column;
- gap: 10px;
- }
-
- /* Transparent bridge to maintain hover state */
- .tooltip .tooltiptext::after {
- content: "";
- position: absolute;
- bottom: -30px;
- left: 0;
- width: 100%;
- height: 35px;
- background: transparent;
- }
-
- .tooltip:hover .tooltiptext {
- visibility: visible;
- opacity: 1;
- bottom: 130%;
- }
-
- /* Tooltip Action Buttons */
- .tooltip-actions {
- display: flex;
- justify-content: center;
- gap: 10px;
- border-top: 1px solid var(--color-text-secondary);
- padding-top: 10px;
- margin-top: 4px;
- }
-
- .tooltip-btn {
- background: var(--color-primary);
- color: white;
- border: none;
- padding: 6px 12px;
- border-radius: 8px;
- cursor: pointer;
- font-size: 0.85rem;
- transition: all 0.2s ease;
- display: flex;
- align-items: center;
- gap: 6px;
- }
-
- .tooltip-btn:hover {
- background: var(--color-secondary);
- transform: translateY(-2px);
- box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
- }
-
- .tooltip-btn i {
- font-size: 0.9rem;
- }
-
- /* Chapter Navigation styling */
- .chapter-section {
- display: none;
- }
-
- .chapter-section.active {
- display: block !important;
- animation: fadeIn 0.5s ease-in-out;
- }
-
- .teacher-only.chapter-section {
- border: none !important;
- padding: 0 !important;
- background: transparent !important;
- }
-
- @keyframes fadeIn {
- from {
- opacity: 0;
- transform: translateY(10px);
- }
- to {
- opacity: 1;
- transform: translateY(0);
- }
- }
-
- /* Go To Top */
- #go-to-top-btn {
- display: none;
- position: fixed;
- bottom: 90px;
- right: 24px;
- z-index: 99;
- padding: 12px;
- border-radius: 50%;
- background: var(--color-primary);
- color: white;
- box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
- transition: transform 0.2s, opacity 0.2s;
- border: none;
- cursor: pointer;
- }
-
- #go-to-top-btn:hover {
- transform: translateY(-2px);
- }
-
- /* TOC Modal Styles */
- #toc-modal {
- position: fixed;
- inset: 0;
- z-index: 2000;
- background: rgba(0, 0, 0, 0.4);
- backdrop-filter: blur(8px);
- display: none;
- align-items: center;
- justify-content: center;
- transition: all 0.3s ease;
- }
-
- #toc-modal.active {
- display: flex;
- animation: fadeInModal 0.3s forwards;
- }
-
- @keyframes fadeInModal {
- from {
- opacity: 0;
- transform: scale(0.95);
- }
- to {
- opacity: 1;
- transform: scale(1);
- }
- }
-
- .toc-content {
- background: var(--color-base-bg);
- width: 90%;
- max-width: 600px;
- max-height: 80vh;
- border-radius: 24px;
- padding: 2rem;
- box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
- border: 1px solid var(--color-text-secondary);
- overflow-y: auto;
- position: relative;
- }
-
- .toc-header {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-bottom: 2rem;
- border-bottom: 2px solid var(--color-primary);
- padding-bottom: 1rem;
- }
-
- .toc-close {
- background: transparent;
- border: none;
- color: var(--color-text-default);
- font-size: 1.5rem;
- cursor: pointer;
- padding: 0.5rem;
- transition: color 0.2s;