# encrize/aitumap architecture

> Architecture diagram of the GitHub repository encrize/aitumap, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-14). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/encrize/aitumap
- Repository: https://github.com/encrize/aitumap

## Overview

This static site combines a student timetable with a campus-room map. The main workflow is viewing a day’s classes and live status, then opening a room’s location in the map; the map supports room lookup, floor-plan selection, highlighting, and navigation. Separate map enhancements add a room directory and accessible map controls, while mapfix straightens rendered plans and adds fullscreen behavior. The HTML files and plan assets are present in the tree, but their wiring was not sampled, so links between pages and scripts are shown only where excerpts or the README establish them.

Main entry points: [`script.js`](https://github.com/encrize/aitumap/blob/main/script.js) (Schedule UI), [`aitumap/map.js`](https://github.com/encrize/aitumap/blob/main/aitumap/map.js) (Map interaction), [`aitumap/map-enhancements.js`](https://github.com/encrize/aitumap/blob/main/aitumap/map-enhancements.js) (Room directory), [`aitumap/enhanced.html`](https://github.com/encrize/aitumap/blob/main/aitumap/enhanced.html) (Embedded map)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_schedule["Schedule"]
  node_timetable["Schedule UI<br/>[script.js]"]
  node_schedule_data["Class schedule<br/>[script.js]"]
  node_status["Live class status<br/>[script.js]"]
  node_reminders["Lesson reminders<br/>[script.js]"]
  node_schedule_page["Schedule page<br/>[index.html]"]
  node_schedule_styles["Schedule styling<br/>[style.css]"]
  node_map_embed["Embedded map<br/>[enhanced.html]"]
end

subgraph group_campus["Campus map"]
  node_campus_page["Map page<br/>[index.html]"]
  node_map_app["Map interaction<br/>[map.js]"]
  node_plans["Floor plans"]
  node_plan_index["Room index<br/>[plans.js]"]
  node_map_transform["Map zoom and pan<br/>[map.js]"]
  node_mapfix["Plan alignment<br/>[mapfix.js]"]
  node_fullscreen["Fullscreen control<br/>[mapfix.js]"]
  node_map_styles["Map styling<br/>[map.css]"]
end

subgraph group_mapplus["Map enhancements"]
  node_enhancement["Room directory"]
  node_enhance_controls["Accessible map tools"]
  node_enhance_styles["Enhancement styles"]
end

node_student(("Student"))

node_student -->|"views schedule"| node_timetable
node_timetable -->|"reads"| node_schedule_data
node_timetable -->|"updates"| node_status
node_timetable -->|"checks reminders"| node_reminders
node_student -->|"searches rooms"| node_map_app
node_map_app -.->|"reads index"| node_plan_index
node_map_app -.->|"renders plans"| node_plans
node_map_app -->|"applies view"| node_map_transform
node_map_app -.->|"updates plan DOM"| node_mapfix
node_student -->|"uses directory"| node_enhancement
node_enhancement -->|"adds tools"| node_enhance_controls
node_enhancement -->|"lists rooms"| node_plan_index
node_enhancement -->|"zooms and pans"| node_map_transform
node_student -->|"toggles fullscreen"| node_fullscreen
node_timetable -->|"opens room map"| node_map_embed
node_map_embed -.->|"embeds map"| node_campus_page

click node_timetable "https://github.com/encrize/aitumap/blob/main/script.js"
click node_schedule_data "https://github.com/encrize/aitumap/blob/main/script.js"
click node_status "https://github.com/encrize/aitumap/blob/main/script.js"
click node_reminders "https://github.com/encrize/aitumap/blob/main/script.js"
click node_schedule_page "https://github.com/encrize/aitumap/blob/main/index.html"
click node_campus_page "https://github.com/encrize/aitumap/blob/main/aitumap/index.html"
click node_map_app "https://github.com/encrize/aitumap/blob/main/aitumap/map.js"
click node_plans "https://github.com/encrize/aitumap/tree/main/aitumap/plans"
click node_plan_index "https://github.com/encrize/aitumap/blob/main/aitumap/plans.js"
click node_map_transform "https://github.com/encrize/aitumap/blob/main/aitumap/map.js"
click node_mapfix "https://github.com/encrize/aitumap/blob/main/aitumap/mapfix.js"
click node_fullscreen "https://github.com/encrize/aitumap/blob/main/aitumap/mapfix.js"
click node_enhancement "https://github.com/encrize/aitumap/blob/main/aitumap/map-enhancements.js"
click node_enhance_controls "https://github.com/encrize/aitumap/blob/main/aitumap/map-enhancements.js"
click node_map_styles "https://github.com/encrize/aitumap/blob/main/aitumap/map.css"
click node_enhance_styles "https://github.com/encrize/aitumap/blob/main/aitumap/map-enhancements.css"
click node_schedule_styles "https://github.com/encrize/aitumap/blob/main/style.css"
click node_map_embed "https://github.com/encrize/aitumap/blob/main/aitumap/enhanced.html"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_timetable,node_schedule_data,node_status,node_reminders,node_schedule_page,node_schedule_styles,node_map_embed toneBlue
class node_campus_page,node_map_app,node_plans,node_plan_index,node_map_transform,node_mapfix,node_fullscreen,node_map_styles toneAmber
class node_enhancement,node_enhance_controls,node_enhance_styles toneMint
class node_student toneIndigo
```

## Components

### Schedule

- [Schedule UI](https://github.com/encrize/aitumap/blob/main/script.js): `script.js`
- [Class schedule](https://github.com/encrize/aitumap/blob/main/script.js): `script.js`
- [Live class status](https://github.com/encrize/aitumap/blob/main/script.js): `script.js`
- [Lesson reminders](https://github.com/encrize/aitumap/blob/main/script.js): `script.js`
- [Schedule page](https://github.com/encrize/aitumap/blob/main/index.html): `index.html`
- [Schedule styling](https://github.com/encrize/aitumap/blob/main/style.css): `style.css`
- [Embedded map](https://github.com/encrize/aitumap/blob/main/aitumap/enhanced.html): `aitumap/enhanced.html`

### Campus map

- [Map page](https://github.com/encrize/aitumap/blob/main/aitumap/index.html): `aitumap/index.html`
- [Map interaction](https://github.com/encrize/aitumap/blob/main/aitumap/map.js): `aitumap/map.js`
- [Floor plans](https://github.com/encrize/aitumap/tree/main/aitumap/plans): `aitumap/plans`
- [Room index](https://github.com/encrize/aitumap/blob/main/aitumap/plans.js): `aitumap/plans.js`
- [Map zoom and pan](https://github.com/encrize/aitumap/blob/main/aitumap/map.js): `aitumap/map.js`
- [Plan alignment](https://github.com/encrize/aitumap/blob/main/aitumap/mapfix.js): `aitumap/mapfix.js`
- [Fullscreen control](https://github.com/encrize/aitumap/blob/main/aitumap/mapfix.js): `aitumap/mapfix.js`
- [Map styling](https://github.com/encrize/aitumap/blob/main/aitumap/map.css): `aitumap/map.css`

### Map enhancements

- [Room directory](https://github.com/encrize/aitumap/blob/main/aitumap/map-enhancements.js): `aitumap/map-enhancements.js`
- [Accessible map tools](https://github.com/encrize/aitumap/blob/main/aitumap/map-enhancements.js): `aitumap/map-enhancements.js`
- [Enhancement styles](https://github.com/encrize/aitumap/blob/main/aitumap/map-enhancements.css): `aitumap/map-enhancements.css`

### Other components

- **Student**

## Connections

- Student → Schedule UI: views schedule (evidence: `README.md`)
- Schedule UI → Class schedule: reads (evidence: `script.js`)
- Schedule UI → Live class status: updates (evidence: `script.js`)
- Schedule UI → Lesson reminders: checks reminders (evidence: `script.js`)
- Student → Map interaction: searches rooms (evidence: `aitumap/map.js`)
- Map interaction → Room index: reads index
- Map interaction → Floor plans: renders plans
- Map interaction → Map zoom and pan: applies view (evidence: `aitumap/map.js`)
- Map interaction → Plan alignment: updates plan DOM
- Student → Room directory: uses directory (evidence: `aitumap/map-enhancements.js`)
- Room directory → Accessible map tools: adds tools (evidence: `aitumap/map-enhancements.js`)
- Room directory → Room index: lists rooms (evidence: `aitumap/map-enhancements.js`)
- Room directory → Map zoom and pan: zooms and pans (evidence: `aitumap/map-enhancements.js`)
- Student → Fullscreen control: toggles fullscreen (evidence: `aitumap/mapfix.js`)
- Schedule UI → Embedded map: opens room map (evidence: `script.js`)
- Embedded map → Map page: embeds map
