68 lines
2.8 KiB
HTML
68 lines
2.8 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<title>MP3.com Metadata Browser</title>
|
|
<link rel="stylesheet" href="./bulma.min.css" />
|
|
<link rel="stylesheet" href="./site.css" />
|
|
</head>
|
|
<body>
|
|
<!-- Simple header (Bulma navbar not needed yet) -->
|
|
<section class="section">
|
|
<div class="container">
|
|
<h1 class="title">MP3.com Metadata Browser</h1>
|
|
<p class="subtitle">Client-side, static, zero-API search.</p>
|
|
</div>
|
|
</section>
|
|
|
|
<!-- Viewport: a single visible container that holds the active UX element -->
|
|
<section id="app" class="section">
|
|
<div class="container">
|
|
<div id="viewport" class="ux-viewport">
|
|
<div id="ux-root" class="ux-root"></div>
|
|
<div id="ux-overlays" class="ux-overlays" aria-live="polite" aria-atomic="true"></div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<!-- Templates for interchangeable, stackable UX elements -->
|
|
<template id="tpl-loader">
|
|
<div class="ux-view fade">
|
|
<div class="box" role="status" aria-live="polite">
|
|
<p class="mb-2" data-ref="step">Preparing…</p>
|
|
<progress class="progress is-primary" value="0" max="100" data-ref="progress">0%</progress>
|
|
<p class="is-size-7 has-text-grey" data-ref="detail">Starting…</p>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<template id="tpl-search">
|
|
<div class="ux-view fade">
|
|
<div class="box">
|
|
<form class="mb-4" role="search" aria-label="Track search" data-ref="form">
|
|
<div class="field">
|
|
<label class="label" for="q">Search</label>
|
|
<div class="control">
|
|
<input id="q" name="q" class="input" type="search" placeholder="Search artist, title, album, genre…" disabled aria-disabled="true" data-ref="q" />
|
|
</div>
|
|
<p class="help">Powered by in-browser SQLite FTS; no network queries.</p>
|
|
</div>
|
|
</form>
|
|
<div class="content" data-ref="results">
|
|
<p class="has-text-grey">Database not initialized yet.</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<!-- Third-party libs loaded from CDNs (no trackers). Pinned versions. -->
|
|
<!-- fflate: tiny ZIP library used to unzip the downloaded DB archive client-side. -->
|
|
<script src="https://cdn.jsdelivr.net/npm/fflate@0.8.2/umd/index.js" crossorigin="anonymous"></script>
|
|
<!-- sql.js (WASM SQLite) loader; WASM resolved via locateFile in script.js. -->
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/sql.js/1.10.2/sql-wasm.js" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
|
|
|
|
<!-- App logic -->
|
|
<script src="./script.js"></script>
|
|
</body>
|
|
</html>
|