# hsg666/annual_meeting_project_notsettimeout architecture

> Architecture diagram of the GitHub repository hsg666/annual_meeting_project_notsettimeout, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-01-21). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/hsg666/annual_meeting_project_notsettimeout
- Repository: https://github.com/hsg666/annual_meeting_project_notsettimeout

## Overview

##### Specific Components

a) Frontend Components (Use rectangles):
- Prize Display Containers (×6)
- Prize Title
- Winner Display Grid
- Start/Stop Button

- Winner List Modal
- Navigation Controls

- User List Storage
- Winner History
- Prize Configuration

c) Core Logic Modules (Use hexagons):
- Random Selection Engine
- Prize Type Manager
- Display Controller

##### Technical Stack Indicators

- HTML5
- CSS3 (flexible.css for responsive design)
- JavaScript/jQuery
- Flexible.js (REM adaptation)

##### Key Features to Highlight

- Manual stop functionality
- Surprise prize mechanism
- Full-screen toggle
- Winner list export

##### Implementation Details

Notes showing:
- Resolution adaptation (1792 × 512)
- Image preloading mechanism
- Prize drawing rules
- Winner selection algorithm

##### External Dependencies

Integration points:
- Live Server requirement
- Browser compatibility
- HDMI display output

- UI Components: Light Blue (#E3F2FD)
- Data Stores: Yellow (#FFF9C4)
- Core Logic: Green (#C8E6C9)
- External Systems: Gray (#EEEEEE)

Remember to maintain a balance between showing enough detail to understand the system while keeping it clean and readable. The focus should be on the prize drawing mechanism and user interaction flow, as these are the core features of the application.

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph UI
        PD["Prize Display Containers"]
        WM["Winner List Modal"]
        NT["Navigation Controls"]
        FS["Full-screen Toggle"]
        
        subgraph PrizeSection["Prize Sections"]
            PT["Prize Title"]
            WG["Winner Display Grid"]
            SB["Start/Stop Button"]
        end
    end

    subgraph DataManagement["Client-Side Data Management"]
        LS["Local Storage"]
        ULS["User List Storage"]:::jsonfile
        WH["Winner History"]
        PC["Prize Configuration"]
    end

    subgraph CoreLogic["Core Logic Layer"]
        RSE["Random Selection Engine"]:::corejs
        PTM["Prize Type Manager"]:::corejs
        DC["Display Controller"]:::corejs
    end

    subgraph ExternalDeps["External Dependencies"]
        LS_REQ["Live Server"]
        BC["Browser Compatibility"]
        HD["HDMI Display"]
    end

    %% Interactions
    PD --> DC
    WM --> WH
    NT --> DC
    SB --> RSE
    RSE --> WH
    PTM --> PC
    DC --> PD
    ULS --> RSE
    PC --> PTM

    %% Styling
    classDef ui fill:#E3F2FD,stroke:#666
    classDef data fill:#FFF9C4,stroke:#666
    classDef core fill:#C8E6C9,stroke:#666
    classDef external fill:#EEEEEE,stroke:#666
    classDef css fill:#FFE0B2,stroke:#666
    classDef jsonfile fill:#FFCCBC,stroke:#666
    classDef corejs fill:#B2DFDB,stroke:#666

    class PD,WM,NT,FS,PrizeSection,PT,WG,SB ui
    class LS,ULS,WH,PC data
    class RSE,PTM,DC core
    class LS_REQ,BC,HD external

    %% Click Events
    click ULS "https://github.com/HSg666/Annual_meeting_project_notSetTimeOut/blob/main/js/sign_list.json"
    click RSE "https://github.com/HSg666/Annual_meeting_project_notSetTimeOut/blob/main/js/index.js"
    click DC "https://github.com/HSg666/Annual_meeting_project_notSetTimeOut/blob/main/js/index.js"
    click PTM "https://github.com/HSg666/Annual_meeting_project_notSetTimeOut/blob/main/js/index.js"
    click PD "https://github.com/HSg666/Annual_meeting_project_notSetTimeOut/blob/main/css/lottery.css"
    click WG "https://github.com/HSg666/Annual_meeting_project_notSetTimeOut/blob/main/css/lottery2.css"
    click SB "https://github.com/HSg666/Annual_meeting_project_notSetTimeOut/blob/main/css/lottery3.css"
    click NT "https://github.com/HSg666/Annual_meeting_project_notSetTimeOut/blob/main/css/index.css"
    click FS "https://github.com/HSg666/Annual_meeting_project_notSetTimeOut/blob/main/js/flexible.js"

    %% Legend
    subgraph Legend
        L1["UI Components"]:::ui
        L2["Data Stores"]:::data
        L3["Core Logic"]:::core
        L4["External Systems"]:::external
    end
```
