# premape/eb-test-83 architecture

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

- Interactive diagram: https://gitdiagram.com/premape/eb-test-83
- Repository: https://github.com/premape/eb-test-83

## Overview

A small browser-based ticket display: it shows the current time and day, a validity window, and a QR image that alternates. The JavaScript excerpt supports the date-formatting and DOM-update relationships; the HTML and CSS were not sampled, so their internal structure and wiring are not inferred.

Main entry points: [`script.js`](https://github.com/premape/eb-test-83/blob/main/script.js) (Time and validity), [`index.html`](https://github.com/premape/eb-test-83/blob/main/index.html) (Ticket view)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_browser(("Browser"))
node_ticket_view["Ticket view<br/>[index.html]"]
node_date_display["Time and validity<br/>[script.js]"]
node_date_formatter["Date formatter<br/>[script.js]"]
node_qr_switch["QR switch<br/>[script.js]"]

node_date_display -->|"formats dates"| node_date_formatter
node_date_display -->|"updates fields"| node_ticket_view
node_qr_switch -->|"changes image"| node_ticket_view
node_browser -->|"runs on load"| node_date_display
node_browser -->|"runs on interval"| node_qr_switch

click node_ticket_view "https://github.com/premape/eb-test-83/blob/main/index.html"
click node_date_display "https://github.com/premape/eb-test-83/blob/main/script.js"
click node_date_formatter "https://github.com/premape/eb-test-83/blob/main/script.js"
click node_qr_switch "https://github.com/premape/eb-test-83/blob/main/script.js"

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_browser,node_ticket_view toneBlue
class node_date_display,node_date_formatter,node_qr_switch toneTeal
```

## Components

### Other components

- **Browser**
- [Ticket view](https://github.com/premape/eb-test-83/blob/main/index.html): `index.html`
- [Time and validity](https://github.com/premape/eb-test-83/blob/main/script.js): `script.js`
- [Date formatter](https://github.com/premape/eb-test-83/blob/main/script.js): `script.js`
- [QR switch](https://github.com/premape/eb-test-83/blob/main/script.js): `script.js`

## Connections

- Time and validity → Date formatter: formats dates (evidence: `script.js`)
- Time and validity → Ticket view: updates fields (evidence: `script.js`)
- QR switch → Ticket view: changes image (evidence: `script.js`)
- Browser → Time and validity: runs on load (evidence: `script.js`)
- Browser → QR switch: runs on interval (evidence: `script.js`)
