# click-software/retos-dom architecture

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

- Interactive diagram: https://gitdiagram.com/click-software/retos-dom
- Repository: https://github.com/click-software/retos-dom

## Overview

This repository is a small browser-based DOM and JavaScript exercise lab. Users enter values or type into a filter, and each script handles its own input, calculation or search, and displayed result. The sampled scripts show those event-driven workflows directly. The README gives little product detail, and the HTML and password-generator implementation were not sampled, so their wiring and behavior are not inferred.

Main entry points: [`scripts/menor-subcadena.js`](https://github.com/click-software/retos-dom/blob/main/scripts/menor-subcadena.js) (Substring Search), [`scripts/filtrar-tabla.js`](https://github.com/click-software/retos-dom/blob/main/scripts/filtrar-tabla.js) (Table Filter), [`scripts/calculadora.js`](https://github.com/click-software/retos-dom/blob/main/scripts/calculadora.js) (Calculator), [`scripts/mcm.js`](https://github.com/click-software/retos-dom/blob/main/scripts/mcm.js) (Least Common Multiple)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_text["Text Challenges"]
  node_substring["Substring Search<br/>[menor-subcadena.js]"]
  node_table_filter["Table Filter<br/>[filtrar-tabla.js]"]
end

subgraph group_numeric["Numeric Challenges"]
  node_calculator["Calculator<br/>[calculadora.js]"]
  node_lcm["Least Common Multiple<br/>[mcm.js]"]
end

subgraph group_extras["Other Challenge"]
  node_passwords["Password Generator"]
end

node_user(("User"))

node_user -->|"enters and clicks"| node_substring
node_user -->|"types filter"| node_table_filter
node_user -->|"enters and clicks"| node_calculator
node_user -->|"enters and clicks"| node_lcm

click node_substring "https://github.com/click-software/retos-dom/blob/main/scripts/menor-subcadena.js"
click node_table_filter "https://github.com/click-software/retos-dom/blob/main/scripts/filtrar-tabla.js"
click node_calculator "https://github.com/click-software/retos-dom/blob/main/scripts/calculadora.js"
click node_lcm "https://github.com/click-software/retos-dom/blob/main/scripts/mcm.js"
click node_passwords "https://github.com/click-software/retos-dom/blob/main/scripts/generador-passwords.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_substring,node_table_filter,node_user toneBlue
class node_calculator,node_lcm toneAmber
class node_passwords toneMint
```

## Components

### Text Challenges

- [Substring Search](https://github.com/click-software/retos-dom/blob/main/scripts/menor-subcadena.js): `scripts/menor-subcadena.js`
- [Table Filter](https://github.com/click-software/retos-dom/blob/main/scripts/filtrar-tabla.js): `scripts/filtrar-tabla.js`

### Numeric Challenges

- [Calculator](https://github.com/click-software/retos-dom/blob/main/scripts/calculadora.js): `scripts/calculadora.js`
- [Least Common Multiple](https://github.com/click-software/retos-dom/blob/main/scripts/mcm.js): `scripts/mcm.js`

### Other Challenge

- [Password Generator](https://github.com/click-software/retos-dom/blob/main/scripts/generador-passwords.js): `scripts/generador-passwords.js`

### Other components

- **User**

## Connections

- User → Substring Search: enters and clicks (evidence: `scripts/menor-subcadena.js`)
- User → Table Filter: types filter (evidence: `scripts/filtrar-tabla.js`)
- User → Calculator: enters and clicks (evidence: `scripts/calculadora.js`)
- User → Least Common Multiple: enters and clicks (evidence: `scripts/mcm.js`)
