How pabitra27706-oss/diploma-2nd-sem works
Purpose and Runtime
This is a static, mobile-oriented second-semester study hub delivered as a vanilla HTML/CSS/JavaScript Progressive Web App. It centralizes five subjects’ unit notes, formula sheets, previous-year questions (PYQs), and answer resources; no backend, database, or third-party service is indicated. Primary launch entry is index.html, with PWA metadata in manifest.json.
App Shell and Navigation
The dashboard UI and client-side navigation state are implemented by index.html, js/app.js, and js/data.js. data.js is the central content registry: it maps subjects, content types, and items to static resource paths. app.js renders the three-level flow—subject → resource type → item—plus dashboard widgets and persisted “continue learning” state via browser localStorage.
Subject Content Boundary
Each subject is an independently maintained static-content subtree, linked from centralized metadata rather than generated dynamically. Representative paths are Mathematics-II/Mathematics-II-Unit-1.html, Applied-Physics-II/Formula-Sheet.html, and IT-Systems-Theory/IT-Systems-Unit-4-Cybersecurity.html. The five domains are Mathematics II, Applied Physics II, IT Systems Theory, FEEE, and Engineering Mechanics.
Exam Resource Model
PYQs are year-specific HTML pages in each subject’s all_questions directory, while answer viewers are separate pages backed by annual JSON data. For example: Engineering-Mechanics/all_questions/25.html, FEEE/all_answers/index.html, and FEEE/all_answers/data/2025.json. Shared PYQ presentation/interaction assets live under pyq-assets/js/pyq-app.js, pyq-assets/js/pyq-render.js, and pyq-assets/js/pyq-storage.js; this is the main reusable subsystem outside the dashboard.
Practice Feature
Practice questions form a separate mini-application with its own page, rendering logic, and day-based JSON datasets. Its entry point is Practice_question/questions/index.html; behavior is split across Practice_question/js/app.js and Practice_question/js/renderer.js; content is loaded from files such as Practice_question/questions/data/day1.json. Practice_question/roadmap.html provides the related revision-roadmap destination.
PWA and Offline Delivery
sw.js provides service-worker caching and offline behavior, with offline.html as the fallback document. The browser runtime is therefore responsible for routing between static pages, fetching JSON datasets, caching assets, and retaining lightweight user progress. Deployment requires only a static HTTP host; service worker features need a secure context or localhost.
Supplemental Static Sections
App informational and support destinations are standalone HTML fragments/pages under app-resorses/sections/, such as app-resorses/sections/usage-guide.html and app-resorses/sections/professional-hub.html, with navigation behavior in app-resorses/scripts/navigation.js. Subject-specific study suggestions are similarly static resources rooted at suggestions/index.html.
Main entry points: data.js Content registry · index.html Dashboard entry · app.js Navigation & dashboard · pyq-app.js PYQ interaction
Components 25
App Shell
- Dashboard entry · Primary mobile-oriented study hub.
index.html - Navigation & dashboard · Renders subject-to-item navigation and continue-learning state.
js/app.js - Content registry · Maps subjects and resource items to static paths.
js/data.js - Learning progress
Study Content
- Mathematics II notes
Mathematics-II/Mathematics-II-Unit-1.html - Applied Physics II resources
Applied-Physics-II/Formula-Sheet.html - IT Systems Theory notes
IT-Systems-Theory/IT-Systems-Unit-4-Cybersecurity.html - Other subject subtrees · Also includes FEEE and Engineering Mechanics.
- Support sections · Informational destinations with standalone navigation.
app-resorses/sections/usage-guide.html - Section navigation
app-resorses/scripts/navigation.js - Study suggestions
suggestions/index.html
Exam Resources
- Year-specific PYQs · Each subject exposes annual question pages.
Engineering-Mechanics/all_questions/25.html - Answer viewer
FEEE/all_answers/index.html - Annual answer data
FEEE/all_answers/data/2025.json - PYQ interaction · Reusable PYQ presentation and state subsystem.
pyq-assets/js/pyq-app.js - PYQ renderer
pyq-assets/js/pyq-render.js - PYQ storage
pyq-assets/js/pyq-storage.js
Practice
- Practice questions
Practice_question/questions/index.html - Practice controller
Practice_question/js/app.js - Practice renderer
Practice_question/js/renderer.js - Daily practice data
Practice_question/questions/data/day1.json - Revision roadmap
Practice_question/roadmap.html
PWA Delivery
- Service worker · Caches assets and serves the offline fallback.
sw.js - Offline fallback
offline.html - PWA manifest
manifest.json
Connections 25
- Dashboard entry → Navigation & dashboard: loads
- Dashboard entry → Content registry: loads
- Navigation & dashboard → Content registry: reads routes
- Navigation & dashboard → Learning progress: persists progress
- Content registry → Mathematics II notes: links
- Content registry → Applied Physics II resources: links
- Content registry → IT Systems Theory notes: links
- Content registry → Other subject subtrees: links
- Content registry → Year-specific PYQs: links
- Content registry → Answer viewer: links
- Content registry → Practice questions: links
- Year-specific PYQs → PYQ interaction: uses
- PYQ interaction → PYQ renderer: renders with
- PYQ interaction → PYQ storage: stores state
- Answer viewer → Annual answer data: loads
- Practice questions → Practice controller: loads
- Practice controller → Practice renderer: renders with
- Practice controller → Daily practice data: fetches
- Practice questions → Revision roadmap: navigates to
- Dashboard entry → Support sections: navigates to
- Support sections → Section navigation: uses
- Dashboard entry → Study suggestions: navigates to
- Dashboard entry → PWA manifest: declares
- Dashboard entry → Service worker: registers
- Service worker → Offline fallback: serves on failure