95 lines
3.2 KiB
HTML
95 lines
3.2 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="de">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Offline - MYP Platform</title>
|
|
<style>
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
|
|
background-color: #0f172a;
|
|
color: #e2e8f0;
|
|
margin: 0;
|
|
padding: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: 100vh;
|
|
align-items: center;
|
|
justify-content: center;
|
|
text-align: center;
|
|
}
|
|
.container {
|
|
max-width: 500px;
|
|
padding: 2rem;
|
|
}
|
|
.logo {
|
|
width: 80px;
|
|
height: 80px;
|
|
margin-bottom: 2rem;
|
|
}
|
|
h1 {
|
|
font-size: 1.5rem;
|
|
margin-bottom: 1rem;
|
|
}
|
|
p {
|
|
color: #94a3b8;
|
|
margin-bottom: 2rem;
|
|
line-height: 1.5;
|
|
}
|
|
.button {
|
|
background-color: #4f46e5;
|
|
color: white;
|
|
border: none;
|
|
padding: 0.75rem 1.5rem;
|
|
border-radius: 0.5rem;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
display: inline-block;
|
|
text-decoration: none;
|
|
transition: background-color 0.3s;
|
|
}
|
|
.button:hover {
|
|
background-color: #4338ca;
|
|
}
|
|
.status {
|
|
margin-top: 2rem;
|
|
font-size: 0.875rem;
|
|
color: #64748b;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<svg class="logo" viewBox="0 0 80 80" fill="currentColor">
|
|
<path d="M58.6,4.5C53,1.6,46.7,0,40,0c-6.7,0-13,1.6-18.6,4.5v0C8.7,11.2,0,24.6,0,40c0,15.4,8.7,28.8,21.5,35.5
|
|
C27,78.3,33.3,80,40,80c6.7,0,12.9-1.7,18.5-4.6C71.3,68.8,80,55.4,80,40C80,24.6,71.3,11.2,58.6,4.5z M4,40
|
|
c0-13.1,7-24.5,17.5-30.9v0C26.6,6,32.5,4.2,39,4l-4.5,32.7L21.5,46.8v0L8.3,57.1C5.6,52,4,46.2,4,40z M58.6,70.8
|
|
C53.1,74.1,46.8,76,40,76c-6.8,0-13.2-1.9-18.6-5.2c-4.9-2.9-8.9-6.9-11.9-11.7l11.9-4.9v0L40,46.6l18.6,7.5v0l12,4.9
|
|
C67.6,63.9,63.4,67.9,58.6,70.8z M58.6,46.8L58.6,46.8l-12.9-10L41.1,4c6.3,0.2,12.3,2,17.4,5.1v0C69,15.4,76,26.9,76,40
|
|
c0,6.2-1.5,12-4.3,17.1L58.6,46.8z"/>
|
|
</svg>
|
|
|
|
<h1>Sie sind offline</h1>
|
|
<p>
|
|
Es konnte keine Verbindung zum Mercedes-Benz MYP Platform Server hergestellt werden.
|
|
Einige Funktionen sind möglicherweise nicht verfügbar, bis die Verbindung wiederhergestellt ist.
|
|
</p>
|
|
|
|
<button class="button" onclick="window.location.reload()">Erneut versuchen</button>
|
|
|
|
<div class="status" id="status">Offline-Modus aktiv</div>
|
|
</div>
|
|
|
|
<script>
|
|
// Überprüfen Sie den Online-Status alle 5 Sekunden
|
|
setInterval(function() {
|
|
if (navigator.onLine) {
|
|
document.getElementById('status').textContent = 'Verbindung wiederhergestellt. Lade neu...';
|
|
setTimeout(function() {
|
|
window.location.reload();
|
|
}, 1000);
|
|
}
|
|
}, 5000);
|
|
</script>
|
|
</body>
|
|
</html> |