Review changes
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>CrossPoint Reader</title>
|
||||
<title>%%CROSSPOINT%%</title>
|
||||
<style>
|
||||
:root {
|
||||
--font-color: #333;
|
||||
@@ -101,9 +101,9 @@
|
||||
<body>
|
||||
<div class="card">
|
||||
<div class="logo">📚</div>
|
||||
<h1>CrossPoint Reader</h1>
|
||||
<h1>%%CROSSPOINT%%</h1>
|
||||
<div class="subtitle">Welcome to your reader</div>
|
||||
<div class="version">Version <span id="version">Loading...</span></div>
|
||||
<div class="version">Version %%VERSION%%</div>
|
||||
<div class="nav-links">
|
||||
<a href="/files">Open File Manager</a>
|
||||
<a href="/settings">Settings</a>
|
||||
@@ -111,22 +111,6 @@
|
||||
</div>
|
||||
<div class="footer">Fast start page designed for weak connections</div>
|
||||
</div>
|
||||
<script>
|
||||
async function loadVersion() {
|
||||
try {
|
||||
const response = await fetch('/api/status/fast');
|
||||
if (!response.ok) {
|
||||
throw new Error('Failed to fetch version');
|
||||
}
|
||||
const data = await response.json();
|
||||
document.getElementById('version').textContent = data.version || 'N/A';
|
||||
} catch (error) {
|
||||
document.getElementById('version').textContent = 'Unavailable';
|
||||
}
|
||||
}
|
||||
|
||||
document.addEventListener('DOMContentLoaded', loadVersion);
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user