File size: 8,370 Bytes
4a58e48 b1876f7 4a58e48 b1876f7 4a58e48 daa9f5e 4a58e48 b1876f7 4a58e48 daa9f5e 4a58e48 b1876f7 4a58e48 b1876f7 4a58e48 b1876f7 4a58e48 b1876f7 4a58e48 b1876f7 4a58e48 b1876f7 4a58e48 b1876f7 4a58e48 b1876f7 4a58e48 b1876f7 4a58e48 daa9f5e 4a58e48 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 | <!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
<meta name="theme-color" content="#1b1814" />
<meta name="description" content="Listen to your PDF and EPUB books, read aloud in a natural voice. Your book never leaves your phone or computer." />
<link rel="manifest" href="./manifest.webmanifest" />
<link rel="icon" href="./icon.svg" type="image/svg+xml" />
<link rel="apple-touch-icon" href="./icon-192.png" />
<title>EarShelf</title>
</head>
<body>
<div id="app">
<!-- LIBRARY -->
<main id="library" class="view">
<header class="lib-head">
<div class="brand"><span class="logo" aria-hidden="true"></span>EarShelf</div>
<span class="private-pill" title="Your books never leave this device"><svg class="ic sm" viewBox="0 0 24 24" aria-hidden="true"><path d="M17 9V7A5 5 0 0 0 7 7v2H5v12h14V9zm-8 0V7a3 3 0 0 1 6 0v2z"/></svg>Nothing uploaded</span>
</header>
<section id="continue" class="continue" aria-label="Continue listening" hidden></section>
<section class="hero">
<h1>Listen to any book.</h1>
<p>Add a PDF or EPUB and it starts reading aloud in seconds. Your book stays on your phone or computer. Free to try, no sign-up.</p>
<label class="drop" id="drop">
<input id="file" type="file" accept=".pdf,.epub,.txt,application/pdf,application/epub+zip,text/plain" multiple />
<span class="drop-icon" aria-hidden="true">+</span>
<span class="drop-main">Add a book</span>
<span class="drop-sub">PDF, EPUB or TXT · or drag it here</span>
</label>
<div id="lib-error" class="lib-error" role="alert" hidden>
<p id="lib-error-text"></p>
<div class="lib-error-actions">
<button id="lib-error-retry" class="pill-btn" type="button">Choose another file</button>
<button id="lib-error-close" class="link-btn" type="button">Dismiss</button>
</div>
</div>
<button id="sample" class="sample-btn" type="button"><svg class="ic" viewBox="0 0 24 24" aria-hidden="true"><path d="M8 5v14l11-7z"/></svg>Try a sample · hear it in a second</button>
</section>
<section id="shelf" aria-label="Your books">
<h2 id="shelf-title" hidden>Your shelf</h2>
<ul id="books" class="books"></ul>
</section>
<footer class="lib-foot">
<p id="storage"></p>
<button id="pro-status" class="link-btn" type="button" hidden></button>
<p class="fine">Your books and your place in each one are saved on this phone or computer only. The natural voice downloads once (a minute or two on Wi-Fi), then works without internet.</p>
<p class="fine">Free software under the <a href="./LICENSE" target="_blank" rel="noopener">GPL-3.0</a> · <a href="https://huggingface.co/spaces/WilburDev/earshelf/tree/main/source" target="_blank" rel="noopener">source code</a> · <a href="./THIRD_PARTY_NOTICES.md" target="_blank" rel="noopener">notices</a></p>
</footer>
</main>
<!-- PLAYER -->
<section id="player" class="view" hidden>
<header class="p-head">
<button id="back" class="icon-btn" aria-label="Back to library"><svg class="ic" viewBox="0 0 24 24" aria-hidden="true"><path d="M15.4 6.4 14 5l-7 7 7 7 1.4-1.4L9.8 12z"/></svg></button>
<div class="p-titles">
<div id="p-title" class="p-title"></div>
<button id="chapter-btn" class="chapter-btn" aria-haspopup="dialog"><span id="p-chapter"></span> ▾</button>
</div>
</header>
<div id="model-banner" class="banner" hidden></div>
<article id="reader" class="reader" aria-live="off"></article>
<div class="dock">
<div class="progress-row">
<div class="seek-wrap">
<div class="bar" aria-hidden="true"><div id="bar-fill"></div></div>
<input id="seek" type="range" min="0" max="0" step="1" value="0" aria-label="Position in this chapter" />
</div>
<span id="progress-label" class="progress-label"></span>
<button id="sleep" class="chip-btn" aria-label="Sleep timer: off"><svg class="ic sm" viewBox="0 0 24 24" aria-hidden="true"><path d="M12.3 3a9 9 0 1 0 8.7 11.3A7 7 0 0 1 12.3 3z"/></svg><span id="sleep-label">Sleep</span></button>
</div>
<div class="controls">
<button id="speed" class="pill-btn" aria-label="Playback speed">1×</button>
<button id="prev" class="icon-btn big skip" aria-label="Back 15 seconds"><svg class="ic" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 5V2L7 6l5 4V7a6 6 0 1 1-6 6H4a8 8 0 1 0 8-8z"/></svg><span class="skip-n">15</span></button>
<button id="play" class="play-btn" aria-label="Play"><svg class="ic" viewBox="0 0 24 24" aria-hidden="true"><path id="play-path" d="M8 5v14l11-7z"/></svg></button>
<button id="next" class="icon-btn big skip" aria-label="Forward 30 seconds"><svg class="ic" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 5V2l5 4-5 4V7a6 6 0 1 0 6 6h2a8 8 0 1 1-8-8z"/></svg><span class="skip-n">30</span></button>
<button id="voice-btn" class="pill-btn" aria-haspopup="dialog" aria-label="Voice">Voice</button>
</div>
</div>
</section>
<!-- SHEETS -->
<dialog id="chapters" class="sheet" aria-label="Chapters">
<div class="sheet-head"><h3>Chapters</h3><button class="icon-btn close" aria-label="Close">✕</button></div>
<ol id="chapter-list" class="chapter-list"></ol>
</dialog>
<dialog id="voices" class="sheet" aria-label="Voices">
<div class="sheet-head"><h3>Voice</h3><button class="icon-btn close" aria-label="Close">✕</button></div>
<div id="voice-body"></div>
</dialog>
<dialog id="paywall" class="sheet" aria-labelledby="pw-title">
<div class="sheet-head"><h3 id="pw-title">Loved it? Keep listening</h3><button class="icon-btn close" aria-label="Close">✕</button></div>
<div class="pw-body">
<p id="pw-lead" class="pw-lead"></p>
<ul class="pw-list">
<li>Listen as much as you like, every book, every voice</li>
<li>The natural voice reads whole books, first page to last</li>
<li>One payment. Your code works on your other phone or computer too</li>
</ul>
<a id="pw-buy" class="primary-btn" target="_blank" rel="noopener">Keep listening · <span class="pw-price">US$29</span> once</a>
<p class="pw-fine">One payment of <span class="pw-price">US$29</span>. No subscription, nothing renews. <span id="pw-guarantee">30</span>-day money-back guarantee.</p>
<ol class="pw-steps" aria-label="How it works">
<li>Pay on Gumroad (it opens a new page)</li>
<li>Your access code arrives by email</li>
<li>Come back, paste it here and tap Unlock</li>
</ol>
<details id="pw-restore">
<summary>Already paid? Enter your code</summary>
<form id="pw-form">
<input id="pw-key" aria-label="Your access code" placeholder="Paste your code here" autocomplete="off" autocapitalize="characters" spellcheck="false" />
<button type="submit" class="pill-btn">Unlock</button>
</form>
<button id="pw-paste" class="link-btn" type="button" hidden>Paste my code</button>
<p id="pw-msg" role="status"></p>
</details>
<button id="pw-later" class="link-btn" type="button">Not now</button>
</div>
</dialog>
<div id="toast" class="toast" role="status" aria-live="polite"></div>
<div id="busy" class="busy" hidden>
<div class="busy-card" role="status" aria-live="polite">
<div class="spinner" aria-hidden="true"></div>
<p id="busy-text">Opening your book…</p>
<div class="bar" aria-hidden="true"><div id="busy-fill"></div></div>
<p class="busy-sub">On this device · nothing is uploaded</p>
</div>
</div>
</div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>
|