- jsdelivr CDN was a silent single point of failure (Hls undefined -> unhandled rejection -> black screen with no feedback) - play() now catches API errors; hls fatal + video media errors render 'Stream error: ...' under the player - server now binds 0.0.0.0 (LAN access); was 127.0.0.1 only
21 lines
672 B
HTML
21 lines
672 B
HTML
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>ani-web</title>
|
|
<link rel="stylesheet" href="style.css">
|
|
</head>
|
|
<body>
|
|
<header>
|
|
<a class="logo" href="/" onclick="location.replace('/');return false">ani-web</a>
|
|
<form onsubmit="const q=document.getElementById('q').value.trim(); if(q) location='?q='+encodeURIComponent(q); return false">
|
|
<input id="q" placeholder="search anime…" autocomplete="off">
|
|
</form>
|
|
</header>
|
|
<main id="main"><p class="muted">Search for an anime to get started.</p></main>
|
|
<script src="hls.min.js"></script>
|
|
<script src="app.js"></script>
|
|
</body>
|
|
</html>
|