2026-08-25 02:50:10 -08:00
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html lang="en">
|
|
|
|
|
<head>
|
|
|
|
|
<meta charset="UTF-8" />
|
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
|
|
|
<title>Quintodrome</title>
|
|
|
|
|
<style>
|
|
|
|
|
:root {
|
|
|
|
|
color-scheme: dark;
|
|
|
|
|
}
|
|
|
|
|
* {
|
|
|
|
|
margin: 0;
|
|
|
|
|
padding: 0;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
}
|
|
|
|
|
body {
|
|
|
|
|
height: 100vh;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
2026-08-25 02:57:12 -08:00
|
|
|
gap: 8px;
|
|
|
|
|
padding: 0 10px;
|
2026-08-25 02:50:10 -08:00
|
|
|
background: #232329;
|
|
|
|
|
border-bottom: 1px solid #34343c;
|
|
|
|
|
font-family: system-ui, -apple-system, sans-serif;
|
|
|
|
|
-webkit-user-select: none;
|
|
|
|
|
user-select: none;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
}
|
|
|
|
|
button {
|
2026-08-25 02:57:12 -08:00
|
|
|
width: 42px;
|
|
|
|
|
height: 42px;
|
2026-08-25 02:50:10 -08:00
|
|
|
border: none;
|
2026-08-25 02:57:12 -08:00
|
|
|
border-radius: 8px;
|
2026-08-25 02:50:10 -08:00
|
|
|
background: transparent;
|
|
|
|
|
color: #d4d4d8;
|
2026-08-25 02:57:12 -08:00
|
|
|
font-size: 22px;
|
2026-08-25 02:50:10 -08:00
|
|
|
line-height: 1;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
flex: none;
|
|
|
|
|
}
|
|
|
|
|
button:hover {
|
|
|
|
|
background: #34343c;
|
|
|
|
|
}
|
|
|
|
|
button:active {
|
|
|
|
|
background: #3f3f46;
|
|
|
|
|
}
|
|
|
|
|
#url {
|
|
|
|
|
flex: 1;
|
2026-08-25 02:57:12 -08:00
|
|
|
height: 42px;
|
|
|
|
|
padding: 0 16px;
|
2026-08-25 02:50:10 -08:00
|
|
|
border: 1px solid #34343c;
|
2026-08-25 02:57:12 -08:00
|
|
|
border-radius: 21px;
|
2026-08-25 02:50:10 -08:00
|
|
|
background: #1b1b1f;
|
|
|
|
|
color: #e4e4e7;
|
2026-08-25 02:57:12 -08:00
|
|
|
font-size: 15px;
|
2026-08-25 02:50:10 -08:00
|
|
|
outline: none;
|
|
|
|
|
min-width: 0;
|
|
|
|
|
}
|
|
|
|
|
#url:focus {
|
|
|
|
|
border-color: #a855f7;
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
</head>
|
|
|
|
|
<body>
|
|
|
|
|
<button id="back" title="Back">←</button>
|
|
|
|
|
<button id="forward" title="Forward">→</button>
|
|
|
|
|
<button id="reload" title="Reload">⟳</button>
|
2026-08-25 03:08:15 -08:00
|
|
|
<input id="url" type="text" spellcheck="false" placeholder="http://quintodrome" />
|
2026-08-25 02:50:10 -08:00
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
const { invoke } = window.__TAURI__.core;
|
|
|
|
|
const { listen } = window.__TAURI__.event;
|
|
|
|
|
const urlInput = document.getElementById("url");
|
|
|
|
|
|
|
|
|
|
document.getElementById("back").addEventListener("click", () => invoke("back"));
|
|
|
|
|
document.getElementById("forward").addEventListener("click", () => invoke("forward"));
|
|
|
|
|
document.getElementById("reload").addEventListener("click", () => invoke("reload"));
|
|
|
|
|
|
|
|
|
|
urlInput.addEventListener("keydown", (e) => {
|
|
|
|
|
if (e.key === "Enter") {
|
|
|
|
|
invoke("navigate", { url: urlInput.value.trim() });
|
|
|
|
|
urlInput.blur();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
listen("url-changed", (event) => {
|
|
|
|
|
urlInput.value = event.payload;
|
|
|
|
|
});
|
|
|
|
|
</script>
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|