# jihanalfa23/jadwal-sholat-kelompok2 architecture

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

- Interactive diagram: https://gitdiagram.com/jihanalfa23/jadwal-sholat-kelompok2
- Repository: https://github.com/jihanalfa23/jadwal-sholat-kelompok2

## Overview

This is a browser-based prayer-time and Islamic reference website. The main workflow is to choose a city or use GPS, calculate prayer times locally, and view daily or monthly schedules with a countdown. Separate features provide Qur’an reading, dhikr and hadith, and prayer reminders with tones. The README also describes responsive styling and local persistence. The page structure and styling are identified in the README, but their implementation was not sampled; links to those layers are therefore unverified. Prayer times do not depend on an external API.

Main entry points: [`script.js`](https://github.com/jihanalfa23/jadwal-sholat-kelompok2/blob/main/script.js) (Prayer-time engine), [`fitur.js`](https://github.com/jihanalfa23/jadwal-sholat-kelompok2/blob/main/fitur.js) (Prayer reminders), [`index.html`](https://github.com/jihanalfa23/jadwal-sholat-kelompok2/blob/main/index.html) (Page structure), [`style.css`](https://github.com/jihanalfa23/jadwal-sholat-kelompok2/blob/main/style.css) (Responsive styling)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_schedule["Prayer Schedule"]
  node_prayer["Prayer-time engine<br/>[script.js]"]
  node_schedule_views["Schedule views<br/>[script.js]"]
end

subgraph group_presentation["Web Interface"]
  node_page["Page structure<br/>[index.html]"]
  node_styles["Responsive styling<br/>[style.css]"]
end

subgraph group_devotional["Devotional Content"]
  node_quran["Qur’an reader<br/>[fitur.js]"]
  node_dhikr["Dhikr counter<br/>[fitur.js]"]
  node_hadith["Daily hadith<br/>[fitur.js]"]
  node_sermons["Lecture links<br/>[fitur.js]"]
end

subgraph group_reminders["Reminders"]
  node_reminder["Prayer reminders<br/>[fitur.js]"]
  node_tone["Tone playback<br/>[fitur.js]"]
end

node_visitor(("Website user"))
node_browser_location["Browser geolocation"]
node_quran_api["equran.id API"]
node_browser_notifications["Browser notifications"]
node_browser_audio["Web Audio"]
node_youtube["YouTube search"]
node_local_storage[("Browser local storage")]

node_visitor -.->|"opens"| node_page
node_visitor -->|"chooses location"| node_prayer
node_prayer -->|"requests coordinates"| node_browser_location
node_prayer -->|"renders schedules"| node_schedule_views
node_page -.->|"styled by"| node_styles
node_page -.->|"hosts logic"| node_prayer
node_visitor -->|"selects surah"| node_quran
node_quran -->|"fetches surah data"| node_quran_api
node_visitor -->|"increments count"| node_dhikr
node_visitor -->|"views hadith"| node_hadith
node_visitor -->|"opens lecture search"| node_sermons
node_sermons -->|"links to searches"| node_youtube
node_visitor -->|"configures reminders"| node_reminder
node_reminder -->|"checks prayer times"| node_prayer
node_reminder -->|"requests permission"| node_browser_notifications
node_reminder -->|"plays alert tone"| node_tone
node_tone -->|"uses audio APIs"| node_browser_audio
node_prayer -->|"stores city and theme"| node_local_storage
node_quran -->|"stores bookmark"| node_local_storage
node_reminder -->|"stores settings"| node_local_storage

click node_page "https://github.com/jihanalfa23/jadwal-sholat-kelompok2/blob/main/index.html"
click node_styles "https://github.com/jihanalfa23/jadwal-sholat-kelompok2/blob/main/style.css"
click node_prayer "https://github.com/jihanalfa23/jadwal-sholat-kelompok2/blob/main/script.js"
click node_schedule_views "https://github.com/jihanalfa23/jadwal-sholat-kelompok2/blob/main/script.js"
click node_quran "https://github.com/jihanalfa23/jadwal-sholat-kelompok2/blob/main/fitur.js"
click node_dhikr "https://github.com/jihanalfa23/jadwal-sholat-kelompok2/blob/main/fitur.js"
click node_hadith "https://github.com/jihanalfa23/jadwal-sholat-kelompok2/blob/main/fitur.js"
click node_sermons "https://github.com/jihanalfa23/jadwal-sholat-kelompok2/blob/main/fitur.js"
click node_reminder "https://github.com/jihanalfa23/jadwal-sholat-kelompok2/blob/main/fitur.js"
click node_tone "https://github.com/jihanalfa23/jadwal-sholat-kelompok2/blob/main/fitur.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_prayer,node_schedule_views,node_visitor,node_browser_location,node_browser_notifications toneBlue
class node_page,node_styles,node_local_storage toneAmber
class node_quran,node_dhikr,node_hadith,node_sermons,node_quran_api toneMint
class node_reminder,node_tone toneRose
class node_browser_audio,node_youtube toneIndigo
```

## Components

### Prayer Schedule

- [Prayer-time engine](https://github.com/jihanalfa23/jadwal-sholat-kelompok2/blob/main/script.js): `script.js`
- [Schedule views](https://github.com/jihanalfa23/jadwal-sholat-kelompok2/blob/main/script.js): `script.js`

### Web Interface

- [Page structure](https://github.com/jihanalfa23/jadwal-sholat-kelompok2/blob/main/index.html): `index.html`
- [Responsive styling](https://github.com/jihanalfa23/jadwal-sholat-kelompok2/blob/main/style.css): `style.css`

### Devotional Content

- [Qur’an reader](https://github.com/jihanalfa23/jadwal-sholat-kelompok2/blob/main/fitur.js): `fitur.js`
- [Dhikr counter](https://github.com/jihanalfa23/jadwal-sholat-kelompok2/blob/main/fitur.js): `fitur.js`
- [Daily hadith](https://github.com/jihanalfa23/jadwal-sholat-kelompok2/blob/main/fitur.js): `fitur.js`
- [Lecture links](https://github.com/jihanalfa23/jadwal-sholat-kelompok2/blob/main/fitur.js): `fitur.js`

### Reminders

- [Prayer reminders](https://github.com/jihanalfa23/jadwal-sholat-kelompok2/blob/main/fitur.js): `fitur.js`
- [Tone playback](https://github.com/jihanalfa23/jadwal-sholat-kelompok2/blob/main/fitur.js): `fitur.js`

### Other components

- **Website user**
- **Browser geolocation**
- **equran.id API**
- **Browser notifications**
- **Web Audio**
- **YouTube search**
- **Browser local storage**

## Connections

- Website user → Page structure: opens (evidence: `README.md`)
- Website user → Prayer-time engine: chooses location (evidence: `script.js`)
- Prayer-time engine → Browser geolocation: requests coordinates (evidence: `script.js`)
- Prayer-time engine → Schedule views: renders schedules (evidence: `script.js`)
- Page structure → Responsive styling: styled by (evidence: `README.md`)
- Page structure → Prayer-time engine: hosts logic (evidence: `README.md`)
- Website user → Qur’an reader: selects surah (evidence: `fitur.js`)
- Qur’an reader → equran.id API: fetches surah data (evidence: `fitur.js`)
- Website user → Dhikr counter: increments count (evidence: `fitur.js`)
- Website user → Daily hadith: views hadith (evidence: `README.md`)
- Website user → Lecture links: opens lecture search (evidence: `fitur.js`)
- Lecture links → YouTube search: links to searches (evidence: `fitur.js`)
- Website user → Prayer reminders: configures reminders (evidence: `fitur.js`)
- Prayer reminders → Prayer-time engine: checks prayer times (evidence: `fitur.js`)
- Prayer reminders → Browser notifications: requests permission (evidence: `fitur.js`)
- Prayer reminders → Tone playback: plays alert tone (evidence: `fitur.js`)
- Tone playback → Web Audio: uses audio APIs (evidence: `fitur.js`)
- Prayer-time engine → Browser local storage: stores city and theme (evidence: `script.js`)
- Qur’an reader → Browser local storage: stores bookmark (evidence: `fitur.js`)
- Prayer reminders → Browser local storage: stores settings (evidence: `fitur.js`)
