mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-21 02:01:03 +07:00
update html
This commit is contained in:
@@ -43,8 +43,6 @@
|
||||
|
||||
<div class="row">
|
||||
<a class="button" id="vpnLink" href="#">Открыть (ссылка <a>)</a>
|
||||
<button type="button" id="vpnBtn">Открыть (кнопка → location)</button>
|
||||
<button type="button" class="secondary" id="copyBtn">Копировать URL</button>
|
||||
<button type="button" class="muted" id="clearLogBtn">Очистить лог</button>
|
||||
</div>
|
||||
|
||||
@@ -109,23 +107,6 @@
|
||||
}
|
||||
});
|
||||
|
||||
document.getElementById("vpnBtn").addEventListener("click", function () {
|
||||
var href = buildHref();
|
||||
if (!href) return;
|
||||
log("Кнопка: переход window.location.href, длина=" + href.length);
|
||||
window.location.href = href;
|
||||
});
|
||||
|
||||
document.getElementById("copyBtn").addEventListener("click", function () {
|
||||
var href = buildHref();
|
||||
if (!href) return;
|
||||
navigator.clipboard.writeText(href).then(function () {
|
||||
log("Скопировано в буфер обмена.");
|
||||
}).catch(function (err) {
|
||||
log("Копирование не удалось: " + (err && err.message ? err.message : String(err)));
|
||||
});
|
||||
});
|
||||
|
||||
document.getElementById("clearLogBtn").addEventListener("click", function () {
|
||||
logEl.textContent = "";
|
||||
log("Лог очищен.");
|
||||
|
||||
Reference in New Issue
Block a user