Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions website/demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Demo - gtfs-sqljs</title>
<link rel="stylesheet" href="/style.css">
<link rel="stylesheet" href="./style.css">
</head>
<body>
<nav class="navbar">
<div class="container">
<h1 class="logo">gtfs-sqljs</h1>
<ul class="nav-links">
<li><a href="/">Documentation</a></li>
<li><a href="/demo.html" class="active">Demo</a></li>
<li><a href="./index.html">Documentation</a></li>
<li><a href="./demo.html" class="active">Demo</a></li>
<li><a href="https://github.com/sysdevrun/gtfs-sqljs" target="_blank">GitHub</a></li>
</ul>
</div>
Expand Down
4 changes: 2 additions & 2 deletions website/demo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ async function init() {
locateFile: (filename) => `https://sql.js.org/dist/${filename}`
});

// Load GTFS data
gtfs = await GtfsSqlJs.fromZip('/car-jaune.zip', { SQL });
// Load GTFS data (Vite will resolve this from public folder)
gtfs = await GtfsSqlJs.fromZip('./car-jaune.zip', { SQL });

// Hide loading, show content
loadingEl.style.display = 'none';
Expand Down
8 changes: 4 additions & 4 deletions website/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>gtfs-sqljs - GTFS Data with SQL.js</title>
<link rel="stylesheet" href="/style.css">
<link rel="stylesheet" href="./style.css">
</head>
<body>
<nav class="navbar">
<div class="container">
<h1 class="logo">gtfs-sqljs</h1>
<ul class="nav-links">
<li><a href="/">Documentation</a></li>
<li><a href="/demo.html">Demo</a></li>
<li><a href="./index.html">Documentation</a></li>
<li><a href="./demo.html">Demo</a></li>
<li><a href="https://github.com/sysdevrun/gtfs-sqljs" target="_blank">GitHub</a></li>
</ul>
</div>
Expand All @@ -23,7 +23,7 @@ <h1 class="logo">gtfs-sqljs</h1>
<h1>gtfs-sqljs</h1>
<p class="subtitle">Load GTFS data into sql.js SQLite database for querying in browser and Node.js</p>
<div class="hero-buttons">
<a href="/demo.html" class="button button-primary">Try Demo</a>
<a href="./demo.html" class="button button-primary">Try Demo</a>
<a href="https://github.com/sysdevrun/gtfs-sqljs" class="button button-secondary">View on GitHub</a>
</div>
</section>
Expand Down