alisharelink/popup.html

47 lines
1.5 KiB
HTML

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Ali Sharelink</title>
<style>
body { font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif; margin: 12px; width: 360px; }
h1 { font-size: 16px; margin: 0 0 8px; }
.row { margin: 8px 0; }
input[readonly] { width: 100%; padding: 6px 8px; border: 1px solid #ccc; border-radius: 6px; font-size: 12px; }
button { padding: 6px 10px; font-size: 12px; border-radius: 6px; border: 1px solid #999; background: #fff; cursor: pointer; }
button.primary { background: #0a84ff; border-color: #0a84ff; color: #fff; }
.actions { display: flex; gap: 8px; }
.muted { color: #666; font-size: 12px; }
.small { font-size: 11px; }
.error { color: #b00020; }
.ok { color: #007a3d; }
label { display: block; font-size: 12px; margin-bottom: 4px; }
</style>
</head>
<body>
<h1>Ali Sharelink</h1>
<div class="row">
<label>Current URL</label>
<input id="currentUrl" type="text" readonly>
</div>
<div class="row">
<label>Clean Link</label>
<input id="cleanUrl" type="text" readonly>
</div>
<div class="row actions">
<button id="copyClean" class="primary">Copy Clean</button>
<button id="shortenCopy">Shorten + Copy</button>
</div>
<div class="row small muted" id="status"></div>
<script src="popup.js"></script>
</body>
</html>