# qjarhks04/webprogramming_pj architecture

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

- Interactive diagram: https://gitdiagram.com/qjarhks04/webprogramming_pj
- Repository: https://github.com/qjarhks04/webprogramming_pj

## Overview

This is a small browser-based math quiz. Its visible question logic presents a calendar-day question, generates addition and subtraction problems, and generates a missing-addend problem; the grading functions return points for correct answers. The HTML files are present, but their contents and wiring were not shown, so the page-to-script and score-aggregation relationships cannot be verified. The links to the browser DOM are supported by the scripts’ selectors and updates.

Main entry points: [`Webproject_Team1/정범관/Question1.js`](https://github.com/qjarhks04/webprogramming_pj/blob/main/Webproject_Team1/%EC%A0%95%EB%B2%94%EA%B4%80/Question1.js) (Day question), [`Webproject_Team1/정범관/Question2.js`](https://github.com/qjarhks04/webprogramming_pj/blob/main/Webproject_Team1/%EC%A0%95%EB%B2%94%EA%B4%80/Question2.js) (Arithmetic questions), [`Webproject_Team1/정범관/Question3.js`](https://github.com/qjarhks04/webprogramming_pj/blob/main/Webproject_Team1/%EC%A0%95%EB%B2%94%EA%B4%80/Question3.js) (Missing addend), [`Webproject_Team1/main.html`](https://github.com/qjarhks04/webprogramming_pj/blob/main/Webproject_Team1/main.html) (Main page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_pages["Page files"]
  node_main_page["Main page<br/>[main.html]"]
  node_index_page["Question page<br/>[index.html]"]
end

subgraph group_questions["Question logic"]
  node_q1["Day question<br/>[Question1.js]"]
  node_q2["Arithmetic questions<br/>[Question2.js]"]
  node_q3["Missing addend<br/>[Question3.js]"]
end

node_user(("Quiz user"))
node_dom["Browser DOM"]

node_q1 -->|"reads answer"| node_dom
node_q2 -->|"reads and writes"| node_dom
node_q3 -->|"reads and writes"| node_dom
node_user -.->|"uses"| node_main_page

click node_main_page "https://github.com/qjarhks04/webprogramming_pj/blob/main/Webproject_Team1/main.html"
click node_index_page "https://github.com/qjarhks04/webprogramming_pj/blob/main/Webproject_Team1/%EC%A0%95%EB%B2%94%EA%B4%80/index.html"
click node_q1 "https://github.com/qjarhks04/webprogramming_pj/blob/main/Webproject_Team1/%EC%A0%95%EB%B2%94%EA%B4%80/Question1.js"
click node_q2 "https://github.com/qjarhks04/webprogramming_pj/blob/main/Webproject_Team1/%EC%A0%95%EB%B2%94%EA%B4%80/Question2.js"
click node_q3 "https://github.com/qjarhks04/webprogramming_pj/blob/main/Webproject_Team1/%EC%A0%95%EB%B2%94%EA%B4%80/Question3.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_main_page,node_index_page,node_user,node_dom toneBlue
class node_q1,node_q2,node_q3 toneAmber
```

## Components

### Page files

- [Main page](https://github.com/qjarhks04/webprogramming_pj/blob/main/Webproject_Team1/main.html): `Webproject_Team1/main.html`
- [Question page](https://github.com/qjarhks04/webprogramming_pj/blob/main/Webproject_Team1/%EC%A0%95%EB%B2%94%EA%B4%80/index.html): `Webproject_Team1/정범관/index.html`

### Question logic

- [Day question](https://github.com/qjarhks04/webprogramming_pj/blob/main/Webproject_Team1/%EC%A0%95%EB%B2%94%EA%B4%80/Question1.js): `Webproject_Team1/정범관/Question1.js`
- [Arithmetic questions](https://github.com/qjarhks04/webprogramming_pj/blob/main/Webproject_Team1/%EC%A0%95%EB%B2%94%EA%B4%80/Question2.js): `Webproject_Team1/정범관/Question2.js`
- [Missing addend](https://github.com/qjarhks04/webprogramming_pj/blob/main/Webproject_Team1/%EC%A0%95%EB%B2%94%EA%B4%80/Question3.js): `Webproject_Team1/정범관/Question3.js`

### Other components

- **Quiz user**
- **Browser DOM**

## Connections

- Day question → Browser DOM: reads answer (evidence: `Webproject_Team1/정범관/Question1.js`)
- Arithmetic questions → Browser DOM: reads and writes (evidence: `Webproject_Team1/정범관/Question2.js`)
- Missing addend → Browser DOM: reads and writes (evidence: `Webproject_Team1/정범관/Question3.js`)
- Quiz user → Main page: uses
