# dangnhutnguyen/azota-bypass-website-container-show architecture

> Architecture diagram of the GitHub repository dangnhutnguyen/azota-bypass-website-container-show, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-10-07). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/dangnhutnguyen/azota-bypass-website-container-show
- Repository: https://github.com/dangnhutnguyen/azota-bypass-website-container-show

## Overview

##### Project type and purpose
- This is a single-page, static, front-end tool (index.html + script.js) hosted on GitHub Pages.
- Purpose: Load the AZOTA web-app in a controlled iframe or window, accept warnings automatically, maintain 16:9 ratio, and let the user interact/bypass certain restrictions.

##### File structure
- README.md: usage instructions and user flow.
- index.html: the only HTML entry point (UI shell).
- script.js: all the business logic—injecting/controlling the AZOTA page, setting window ratio, handling inputs (URL, password, email), button events.

##### Key components
a. User (Browser) – the end user running the tool in a modern browser.
b. Static Host (GitHub Pages) – serves index.html and script.js.
c. UI Shell (index.html) – input fields (AZOTA URL, password, email), “Load Website” button, embedded view.
d. Client-Side Logic (script.js) –
- Reads user inputs
- Opens/embeds the AZOTA URL in a controlled window or iframe
- Listens/accepts any warning dialogs automatically
- Enforces window size (16:9 ratio)
e. External Service (AZOTA) – the remote examination platform; runs inside the embedded view.

##### Relationships and data flow
- User → (interacts) → UI Shell
- UI Shell → (passes inputs) → Client-Side Logic
- Client-Side Logic → (embeds/controls) → External AZOTA Service
- External AZOTA Service → (renders inside) → UI Shell/Browser
- All static assets ← (served by) ← GitHub Pages

##### Architectural patterns & design principles
- Single-Page Application (SPA) style, but no framework—vanilla JS.
- Host–Client separation: static host only serves files; all logic runs in the browser.
- Encapsulation of external service in an isolated container (iframe or window).

## Diagram (Mermaid)

```mermaid
flowchart TB
    %% Actor
    User((User<br>Browser)):::actor

    %% Hosting Layer
    subgraph "Hosting Layer"
        Host["GitHub Pages<br>(Static Host)"]:::host
        Doc["README.md"]:::doc
    end

    %% Client Container
    subgraph "Browser Runtime (Client)"
        UI["index.html<br>(UI Shell)"]:::ui
        Logic["script.js<br>(Client-Side Logic)"]:::logic
    end

    %% External Service
    AZOTA["AZOTA Web App<br>(External Service)"]:::external

    %% Connections
    Host -->|serves files| User
    Host -->|serves files| UI
    Host -->|serves files| Logic
    UI -->|user inputs & clicks| Logic
    User -->|interacts with| UI
    Logic -->|"embed & control\n(auto-accept warnings, 16:9)"| AZOTA
    AZOTA -->|renders inside| UI

    %% Click Events
    click Host "https://github.com/dangnhutnguyen/azota-bypass-website-container-show/tree/main//"
    click UI "https://github.com/dangnhutnguyen/azota-bypass-website-container-show/blob/main//index.html"
    click Logic "https://github.com/dangnhutnguyen/azota-bypass-website-container-show/blob/main//script.js"
    click Doc "https://github.com/dangnhutnguyen/azota-bypass-website-container-show/blob/main//README.md"

    %% Styles
    classDef host fill:#D8B4FE,stroke:#9F7AEA,stroke-width:2px
    classDef ui fill:#BFDBFE,stroke:#3B82F6,stroke-width:2px
    classDef logic fill:#BBF7D0,stroke:#22C55E,stroke-width:2px
    classDef external fill:#FED7AA,stroke:#F97316,stroke-width:2px
    classDef actor fill:#E5E7EB,stroke:#6B7280,stroke-width:2px
    classDef doc fill:#F3F4F6,stroke:#9CA3AF,stroke-width:2px
```
