110 lines
3.6 KiB
HTML
110 lines
3.6 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta http-equiv="refresh" content="0; url=index.html#help">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>EV Dash · Help</title>
|
|
<link rel="icon" type="image/x-icon" href="styles/pce/favicon.ico">
|
|
<style>
|
|
:root {
|
|
--background-color: #58616b;
|
|
--surface-color: #ffffff;
|
|
--primary-color: #e30a18;
|
|
--text-color: #222222;
|
|
--muted-text-color: #515d69;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
min-height: 100vh;
|
|
font-family: "Segoe UI", Roboto, sans-serif;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: var(--background-color);
|
|
color: var(--text-color);
|
|
}
|
|
|
|
.redirect-panel {
|
|
width: min(420px, 90vw);
|
|
background: var(--surface-color);
|
|
padding: 2rem;
|
|
border-radius: 18px;
|
|
text-align: center;
|
|
box-shadow: 0 22px 45px rgba(0, 0, 0, 0.18);
|
|
}
|
|
|
|
.redirect-panel img {
|
|
width: 64px;
|
|
height: 64px;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.redirect-panel h1 {
|
|
margin: 0 0 0.5rem;
|
|
font-size: 1.35rem;
|
|
}
|
|
|
|
.redirect-panel p {
|
|
margin: 0 0 1.5rem;
|
|
color: var(--muted-text-color);
|
|
}
|
|
|
|
.redirect-panel a {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 0.75rem 1.5rem;
|
|
border-radius: 999px;
|
|
text-decoration: none;
|
|
font-weight: 600;
|
|
color: #ffffff;
|
|
background: linear-gradient(135deg, var(--primary-color), #a20d17);
|
|
box-shadow: 0 16px 32px rgba(227, 10, 24, 0.25);
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<main class="redirect-panel">
|
|
<img src="styles/pce/icon.svg" alt="EV Dash logo">
|
|
<h1 id="redirectTitle">Help moved into the dashboard</h1>
|
|
<p id="redirectText">The help content now lives inside the built-in side panel. You will be redirected automatically.</p>
|
|
<a id="redirectLink" href="index.html#help">Open EV Dash</a>
|
|
</main>
|
|
<script>
|
|
const isGerman = (() => {
|
|
const candidates = Array.isArray(navigator.languages) && navigator.languages.length
|
|
? navigator.languages
|
|
: [navigator.language || 'en'];
|
|
return candidates
|
|
.filter(Boolean)
|
|
.map(value => String(value).toLowerCase())
|
|
.some(value => value === 'de' || value.startsWith('de-'));
|
|
})();
|
|
|
|
if (isGerman) {
|
|
try { document.documentElement.lang = 'de'; } catch (error) { /* ignore */ }
|
|
const title = document.getElementById('redirectTitle');
|
|
const text = document.getElementById('redirectText');
|
|
const link = document.getElementById('redirectLink');
|
|
if (title) title.textContent = 'Hilfe wurde ins Dashboard verschoben';
|
|
if (text) text.textContent = 'Die Hilfe befindet sich jetzt im integrierten Seitenbereich. Du wirst automatisch weitergeleitet.';
|
|
if (link) link.textContent = 'EV Dash öffnen';
|
|
}
|
|
|
|
window.addEventListener('load', () => {
|
|
try {
|
|
window.location.replace('index.html#help');
|
|
} catch (error) {
|
|
window.location.href = 'index.html#help';
|
|
}
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|