# andr1chkol/webte-1-coursework architecture

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

- Interactive diagram: https://gitdiagram.com/andr1chkol/webte-1-coursework
- Repository: https://github.com/andr1chkol/webte-1-coursework

## Overview

This repository is a set of standalone HTML/CSS/JavaScript exercises plus a student-facing site in task1. The visible workflows include fetching Bratislava weather, displaying maps, experimenting with image hotspots, and using task1 schedule and map interactions. task1 also contains CV and workspace pages, but their behavior is not shown in the available source. Edges are limited to relationships visible in the excerpts; page contents and other exercise behavior were not sampled.

Main entry points: [`task1/js/script.js`](https://github.com/andr1chkol/webte-1-coursework/blob/main/task1/js/script.js) (Site interactions), [`exercise3/script.js`](https://github.com/andr1chkol/webte-1-coursework/blob/main/exercise3/script.js) (Weather and map demo), [`exercise4/js/script.js`](https://github.com/andr1chkol/webte-1-coursework/blob/main/exercise4/js/script.js) (Hotspot experiment), [`task1/pages/schedule.html`](https://github.com/andr1chkol/webte-1-coursework/blob/main/task1/pages/schedule.html) (Schedule page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_basics["Standalone exercises"]
  node_exercise1["Exercise 1 page<br/>[index.html]"]
  node_exercise2["Exercise 2 page<br/>[index.html]"]
  node_weather["Weather and map demo<br/>[script.js]"]
  node_hotspot["Hotspot experiment<br/>[script.js]"]
end

subgraph group_student["Student site"]
  node_task1home["Student site home<br/>[index.html]"]
  node_task1runtime["Site interactions<br/>[script.js]"]
  node_schedule["Schedule page<br/>[schedule.html]"]
  node_map["Map page<br/>[map.html]"]
  node_cv["CV page<br/>[cv.html]"]
  node_workspace["Workspace page<br/>[workspace.html]"]
end

subgraph group_services["External services"]
  node_storage[("Browser storage")]
  node_openmeteo["Open-Meteo"]
  node_leaflet["Leaflet maps"]
  node_osm["OpenStreetMap tiles"]
end

node_visitor(("Visitor"))

node_visitor -->|"views"| node_weather
node_weather -->|"fetches weather"| node_openmeteo
node_weather -->|"creates map"| node_leaflet
node_weather -->|"loads tiles"| node_osm
node_visitor -->|"clicks image"| node_hotspot
node_hotspot -->|"shows coordinates"| node_visitor
node_visitor -->|"uses site"| node_task1runtime
node_task1runtime -->|"updates schedule"| node_schedule
node_task1runtime -->|"renders map"| node_map
node_task1runtime -->|"reads and writes"| node_storage
node_task1runtime -->|"creates map"| node_leaflet

click node_exercise1 "https://github.com/andr1chkol/webte-1-coursework/blob/main/exercise1/index.html"
click node_exercise2 "https://github.com/andr1chkol/webte-1-coursework/blob/main/exercise2/index.html"
click node_weather "https://github.com/andr1chkol/webte-1-coursework/blob/main/exercise3/script.js"
click node_hotspot "https://github.com/andr1chkol/webte-1-coursework/blob/main/exercise4/js/script.js"
click node_task1home "https://github.com/andr1chkol/webte-1-coursework/blob/main/task1/index.html"
click node_task1runtime "https://github.com/andr1chkol/webte-1-coursework/blob/main/task1/js/script.js"
click node_schedule "https://github.com/andr1chkol/webte-1-coursework/blob/main/task1/pages/schedule.html"
click node_map "https://github.com/andr1chkol/webte-1-coursework/blob/main/task1/pages/map.html"
click node_cv "https://github.com/andr1chkol/webte-1-coursework/blob/main/task1/pages/cv.html"
click node_workspace "https://github.com/andr1chkol/webte-1-coursework/blob/main/task1/pages/workspace.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_exercise1,node_exercise2,node_weather,node_hotspot toneBlue
class node_task1home,node_task1runtime,node_schedule,node_map,node_cv,node_workspace toneAmber
class node_storage,node_openmeteo,node_leaflet,node_osm toneMint
class node_visitor toneIndigo
```

## Components

### Standalone exercises

- [Exercise 1 page](https://github.com/andr1chkol/webte-1-coursework/blob/main/exercise1/index.html): `exercise1/index.html`
- [Exercise 2 page](https://github.com/andr1chkol/webte-1-coursework/blob/main/exercise2/index.html): `exercise2/index.html`
- [Weather and map demo](https://github.com/andr1chkol/webte-1-coursework/blob/main/exercise3/script.js): `exercise3/script.js`
- [Hotspot experiment](https://github.com/andr1chkol/webte-1-coursework/blob/main/exercise4/js/script.js): `exercise4/js/script.js`

### Student site

- [Student site home](https://github.com/andr1chkol/webte-1-coursework/blob/main/task1/index.html): `task1/index.html`
- [Site interactions](https://github.com/andr1chkol/webte-1-coursework/blob/main/task1/js/script.js): `task1/js/script.js`
- [Schedule page](https://github.com/andr1chkol/webte-1-coursework/blob/main/task1/pages/schedule.html): `task1/pages/schedule.html`
- [Map page](https://github.com/andr1chkol/webte-1-coursework/blob/main/task1/pages/map.html): `task1/pages/map.html`
- [CV page](https://github.com/andr1chkol/webte-1-coursework/blob/main/task1/pages/cv.html): `task1/pages/cv.html`
- [Workspace page](https://github.com/andr1chkol/webte-1-coursework/blob/main/task1/pages/workspace.html): `task1/pages/workspace.html`

### External services

- **Browser storage**
- **Open-Meteo**
- **Leaflet maps**
- **OpenStreetMap tiles**

### Other components

- **Visitor**

## Connections

- Visitor → Weather and map demo: views (evidence: `exercise3/script.js`)
- Weather and map demo → Open-Meteo: fetches weather (evidence: `exercise3/script.js`)
- Weather and map demo → Leaflet maps: creates map (evidence: `exercise3/script.js`)
- Weather and map demo → OpenStreetMap tiles: loads tiles (evidence: `exercise3/script.js`)
- Visitor → Hotspot experiment: clicks image (evidence: `exercise4/js/script.js`)
- Hotspot experiment → Visitor: shows coordinates (evidence: `exercise4/js/script.js`)
- Visitor → Site interactions: uses site (evidence: `task1/js/script.js`)
- Site interactions → Schedule page: updates schedule (evidence: `task1/js/script.js`)
- Site interactions → Map page: renders map (evidence: `task1/js/script.js`)
- Site interactions → Browser storage: reads and writes (evidence: `task1/js/script.js`)
- Site interactions → Leaflet maps: creates map (evidence: `task1/js/script.js`)
