Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

35 Commits

Folders and files

Repository files navigation

Track Record

A static website for tracking coaster rides and credits. The page layout is in index.html, interactive behavior is in app.js, and Firebase Authentication/Cloud Firestore provide private per-account sign-in and cross-device sync. There is no application server or build step. Relogging immediately adds one lap, preserves the first-ridden date/time, and records the current local date/time as most recent; editing an entry does not change the most-recent ride time. Park and official coaster names selected from a park directory are locked in the entry form. Park-sourced ride type keeps the standard select appearance but is disabled; manual entries can change ride type, and ride version remains editable. Entries can include optional manual operating years (for example, 2007-2020); log cards show operating years only when Coasterpedia also displays them in the park list. Deleting a logged coaster also removes its matching row from the currently loaded park search. Coaster search requires an explicit roller-coaster or water-coaster list and matching Coasterpedia ride articles, including generic coaster infoboxes; water-slide-only lists and generic Operating/Defunct sections do not qualify. Water coaster attractions are included, while parks with only water slides are excluded. Former-name suggestions are not shown. Non-empty Operating, Under construction, Not operating, and Defunct categories appear as separate blocks. Coaster article status distinguishes rides that are standing but not operating from defunct rides; if an article now describes a relocated coaster, its dated park-history record identifies it as defunct at its former park even if that park's list is stale. Article details provide dates, track counts, and relocation evidence. Coasters marked “Never operated” are excluded from search. A ride is marked Relocated only at its destination park when the destination and a prior park both have operating dates; it is not marked Relocated at its original park or at a park where it was never operated. Relocated badges appear beside ride type; reimagined classifications are not shown in the park list. When a Coasterpedia article documents a substantial ride change, including removal or replacement of a track element or describes a coaster as an “updated version” of an earlier ride, quick-logging automatically selects the Reimagined version; its documented opening year starts that version. Other rides stay Original. Park-list type badges use each Coasterpedia park table's type label, while ride type in the log form uses the app's broader credit categories.

Ride status defaults to Operating for new entries. Manual entries can be set to Operating, Not operating, or Defunct; Coasterpedia-sourced statuses are locked, and rides under construction cannot be quick-logged.

Kings Island's The Racer uses Red/Blue track names; the Red side is the former backwards-running side and is automatically logged as Reimagined, while the Blue side remains Original.

Test locally

From this folder, start a local web server (Firebase modules require HTTP/HTTPS; opening index.html directly as a file will not work):

py -m http.server 8000

Then open http://localhost:8000 in your browser. Press Ctrl+C in the terminal to stop the server.

Publish with GitHub Pages

  1. Push this folder to a GitHub repository.
  2. In the repository, open Settings → Pages.
  3. Under Build and deployment, choose Deploy from a branch.
  4. Select your publishing branch and the /(root) folder, then save.
  5. Open the website URL shown in the Pages settings once the deployment finishes.

The site entry point is index.html, so GitHub Pages serves it from the repository root along with app.js and firebase-cloud.js. A branded loading screen stays visible until Firebase restores the session and, for signed-in users, loads the account data, preventing temporary zero counters during reload. Visitors can browse park and coaster discovery as guests; each account's private credits are shown only after sign-in. Creating, editing, relogging, deleting, importing, exporting, or changing credit rules prompts guests to sign in. Park and coaster discovery uses Coasterpedia's public MediaWiki API. The park's current present/former lists determine which group a ride appears in; those groups can be collapsed. Coaster list rows show the ride class and let you log, edit, or relog an entry directly. Multi-track coasters (such as Gemini and Lightning Racer) are split into separate track entries using their sourced track names when available; other two-track coasters use left/right. The displayed coaster name comes from the park directory, with no sourced former-name suggestions. Coasterpedia dates are displayed as years to help distinguish same-name rides; log cards show operating years only when those years are displayed in the park list. Log entries from coaster search retain their Coasterpedia ride/track identity and operating years so they do not merge. For rides with a documented reimagining year, Original entries end in that year and Reimagined entries start in that year. When a park's coaster table identifies a ride as powered, alpine, or water, the quick-log form selects that ride type automatically; otherwise it uses Roller Coaster. Rides not listed in a park directory can be logged manually, with ride status selectable beside the lap count and optional operating dates editable as a year or year range. The dashboard category cards filter the log and can be clicked again to clear the selected filter; the Parks card opens the park-and-coaster breakdown above the log. The Laps card filters coaster entries with multiple recorded rides. Relogging adds a lap to the existing coaster entry rather than creating another credit; repeated matching entries are grouped in the dashboard, and the Duplicates card identifies relocated entries and same-name coasters at different parks or with distinct Coasterpedia identities at one park. The setting “Count relogs toward Total” controls whether repeated laps add to Total; it is off by default. Changing credit rules immediately recalculates the counters. Ride entries can mark the date and time as independently unknown; unknown date/time components are left blank in the log. Lap counts are shown only for multiple rides. On load, saved entries with a park are checked against Coasterpedia and matching ride statuses are updated; when a later Reimagined entry exists for the same coaster, an earlier Original entry is marked Not operating if Coasterpedia reports the current version as Operating. Entries with no known park/list match retain their saved status. Entries can be edited, relogged, or deleted. Credit rules separately control powered, alpine, and water rides; meaningful Reimagined changes; and unchanged rides relocated to another park. Older saved credit settings and ride variation labels are migrated to the updated rule categories. Firebase web configuration is in firebase-cloud.js; firestore.rules restrict each authenticated account to its own profile and ride entries. Deploy those rules in the Firebase Console before allowing users to sign up. Existing browser-only logs are imported into the first Firebase account that signs in from that browser. Local per-user caches and JSON export remain available as backups. Styling and icons load from their respective CDNs.

Firebase setup

  1. In Firebase Authentication, enable Email/Password.
  2. Create a Cloud Firestore database.
  3. Publish the contents of firestore.rules in Firestore Database → Rules.
  4. Add the deployed website domain (for example, yourname.github.io) under Authentication → Settings → Authorized domains. localhost is normally allowed for local testing.
  5. Update the Firebase web configuration in firebase-cloud.js if deploying to a different Firebase project.

Same-name ride dates are labeled “Operated” in the park list and log. Currently operating versions use “Present” as the end of their date range.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages