thread-master/apps/extension/haixun-threads-sync/options.html

83 lines
2.1 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!doctype html>
<html lang="zh-Hant">
<head>
<meta charset="UTF-8" />
<title>巡樓同步設定</title>
<style>
body {
font-family: system-ui, sans-serif;
max-width: 520px;
margin: 24px auto;
padding: 0 16px;
}
label {
display: block;
font-size: 13px;
font-weight: 600;
margin-bottom: 6px;
}
input {
width: 100%;
box-sizing: border-box;
padding: 8px 10px;
border: 1px solid #ccc;
border-radius: 8px;
}
button {
margin-top: 12px;
border: 0;
border-radius: 8px;
background: #111;
color: #fff;
padding: 8px 14px;
cursor: pointer;
}
p {
font-size: 12px;
color: #555;
line-height: 1.5;
}
code {
background: #f3f4f6;
padding: 1px 4px;
border-radius: 4px;
}
#saved {
margin-top: 10px;
font-size: 12px;
color: #166534;
}
.hint {
background: #f8fafc;
border: 1px solid #e2e8f0;
border-radius: 8px;
padding: 10px 12px;
margin-top: 16px;
}
</style>
</head>
<body>
<h1>巡樓網站網址</h1>
<p>
必須與瀏覽器網址列<strong>完全一致</strong>(含
<code>https</code><code>localhost</code>
<code>127.0.0.1</code> 不可混用)。
</p>
<p>
遠端例:<code>https://threads-tool-dev.30cm.net</code><br />
本機例:<code>http://localhost:5173</code>
</p>
<label for="serverUrl">Server URL</label>
<input id="serverUrl" placeholder="https://threads-tool-dev.30cm.net" />
<button id="save" type="button">儲存並注入橋接</button>
<div id="saved"></div>
<div class="hint">
<p style="margin: 0">
儲存後請回到巡樓分頁按 <strong>F5</strong>。設定頁應顯示「擴充已偵測」。
若仍未偵測chrome://extensions → 重新載入此擴充 → 再開一次本選項按儲存 → F5。
</p>
</div>
<script type="module" src="options.js"></script>
</body>
</html>