Home

display.js

Handles rendering of the Team Weakness Table. Displays how many Pokémon in the user's party belong to each type.
Source:

fetch.js

Handles fetching and rendering Pokémon data. - `fetchDexEntries()` retrieves Pokémon data from a JSON file. - `ViewPokemon()` filters and displays Pokémon based on user-selected criteria.
Source:

main.js

Entry point for the Pokémon Team Builder app. Imports the UI interactions, which drive event handling, display logic, and interactivity. This file is the starting point when the app loads. All DOM behavior is handled in ui.js.
Source:

party.js

Manages the user's party of up to 6 Pokémon. - Handles display rendering for each Pokémon - Provides logic for clearing the party - Analyzes type effectiveness via utility modules
Source:

state.js

DOM state selectors shared across modules. These provide access to user input fields and result containers.
Source:

team.js

Analyzes the type distribution of the current Pokémon party. - Counts type occurrences - Passes data to display for rendering the Team Weakness Table
Source:

type-utils.js

Analyzes a Pokémon's weaknesses, resistances, and immunities using precomputed effectiveness data from its JSON entry.
Source:

types.js

Provides the Gen 1 type matchup chart and utility function for analyzing a Pokémon’s type effectiveness against all types.
Source:

ui.js

Handles all DOM interactions for the Pokémon Team Builder: - Loads results from selected filters - Adds/removes Pokémon to/from party on click - Updates party display and weakness analysis
Source: