How otniel113/gempabumi works
Project type and purpose
• This is a single-page, static web application whose sole purpose is to display live earthquake data from BMKG’s public JSON API. There is no custom backend or database—everything runs in the browser.
File structure
• Top level:
• index.html – the entry point, defines the page structure and the tabbed UI
• styles.css – presentation layer, mobile-responsive stylesheet
• script.js – application logic, responsible for fetching JSON and rendering three different datasets (latest quake, historical 15 with M≥5.0, historical 15 felt quakes)
README for additional insights
• The README confirms the three datasets, their JSON source, and the fact that the UI is mobile-friendly and always up to date. No mention of a build step or server-side code.
Elements
• Clear labels: “Browser (Client)”, “Static Hosting (Web Server)”, “BMKG JSON API”
• From Browser → Static Hosting (GET index.html, CSS, JS)
• From Browser → BMKG API (HTTP GET requests)
• From BMKG API → Browser (JSON responses)