<main class="timing-check">
<p class="eyebrow">A small subtitle-workflow example</p>
<h1>Local SRT timing check</h1>
<p>Check timestamp syntax, duration, order and overlaps before working with subtitles. Overlap warnings can be intentional.</p>
<form id="timing-form">
<label for="srt-input">SRT text</label>
<textarea id="srt-input" rows="12" maxlength="1000000" spellcheck="false" placeholder="1 00:00:01,000 --> 00:00:03,000 Your caption."></textarea>
<div class="actions"><button type="submit">Check timing</button><button type="button" id="load-example">Load example</button></div>
<label class="file-label" for="srt-file">Or open a UTF-8 SRT file (up to 1 MB)</label>
<input id="srt-file" type="file" accept=".srt,text/plain">
</form>
<section aria-labelledby="result-title"><h2 id="result-title">Timing notes</h2><p id="timing-status" role="status" aria-live="polite">Paste text or load the example to begin.</p><ul id="timing-issues"></ul></section>
<p class="fine-print">This example uses local JavaScript and contains no upload request. Hosting-site privacy rules still apply. It checks timing lines; subtitle meaning, translation quality and complete format conformance are outside its scope. SRT files can use other encodings; the file picker here supports UTF-8.</p>
<footer><p>Original example shared by <a href="https://scanfile.online/" target="_blank" rel="noopener">Scanfile · online file translation</a>. Prepared with AI assistance; example code is MIT licensed.</p><p>Format reference: <a href="https://www.loc.gov/preservation/digital/formats/fdd/fdd000569.shtml" target="_blank" rel="noopener">Library of Congress: SubRip subtitles</a>.</p></footer>
...