- Detect stored captured magnet link and show status indicator - Provide Continue button to launch pairing page with captured link - Add manual entry field and demo link filler for quick testing
49 lines
1.4 KiB
HTML
49 lines
1.4 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>Magnetflix</title>
|
|
<link rel="stylesheet" href="popup.css">
|
|
</head>
|
|
<body>
|
|
<div class="popup-container">
|
|
<div class="header">
|
|
<div class="brand">
|
|
<span class="icon">🧲</span>
|
|
<span class="title">Magnetflix</span>
|
|
</div>
|
|
<span class="tag">Proof of Concept</span>
|
|
</div>
|
|
|
|
<div id="captured-state" class="state-panel hidden">
|
|
<div class="status-indicator">
|
|
<span class="dot"></span>
|
|
<span class="status-text">Magnet link captured!</span>
|
|
</div>
|
|
<div class="magnet-preview" id="magnet-display"></div>
|
|
<button id="btn-continue-captured" class="btn btn-primary">
|
|
<span>Continue to IMDb Match</span>
|
|
<span>→</span>
|
|
</button>
|
|
</div>
|
|
|
|
<div id="manual-state" class="state-panel">
|
|
<p class="subtitle">Click any magnet link on the web, or paste one below to pair with IMDb:</p>
|
|
<div class="input-group">
|
|
<input
|
|
type="text"
|
|
id="manual-magnet-input"
|
|
placeholder="magnet:?xt=urn:btih:..."
|
|
autocomplete="off"
|
|
/>
|
|
</div>
|
|
<div class="actions">
|
|
<button id="btn-continue-manual" class="btn btn-primary">Continue</button>
|
|
<button id="btn-load-demo" class="btn btn-secondary">Use Sample Link</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<script src="popup.js"></script>
|
|
</body>
|
|
</html>
|