Init Coach Hypnotruck iOS — Capacitor 8 wrapper
- Capacitor 8 + plugins natifs (push, local-notif, geoloc, HealthKit Capgo, splash, status bar, haptics) - Config pointe vers https://coach.hypnotruck.ch (server.url) - Icône 1024×1024 + splash 2732×2732 depuis icon-512 PWA coach_sportif - README complet avec procédure build sur Mac mini - Bundle ID : ch.hypnotruck.coach, App name : Coach Hypnotruck
This commit is contained in:
52
www/index.html
Normal file
52
www/index.html
Normal file
@@ -0,0 +1,52 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
|
||||
<meta name="format-detection" content="telephone=no" />
|
||||
<meta http-equiv="Content-Security-Policy" content="default-src * 'self' 'unsafe-inline' 'unsafe-eval' data: gap: https://ssl.gstatic.com" />
|
||||
<title>Coach Hypnotruck</title>
|
||||
<style>
|
||||
html, body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
height: 100%;
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
||||
background: #ffffff;
|
||||
color: #111;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
text-align: center;
|
||||
}
|
||||
.wrap { padding: 24px; }
|
||||
h1 { font-size: 22px; margin: 0 0 8px; }
|
||||
p { font-size: 15px; color: #555; margin: 0; }
|
||||
.spinner {
|
||||
margin: 24px auto 0;
|
||||
width: 36px; height: 36px;
|
||||
border: 3px solid #eee;
|
||||
border-top-color: #2b7cff;
|
||||
border-radius: 50%;
|
||||
animation: spin 0.9s linear infinite;
|
||||
}
|
||||
@keyframes spin { to { transform: rotate(360deg); } }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="wrap">
|
||||
<h1>Coach Hypnotruck</h1>
|
||||
<p>Chargement…</p>
|
||||
<div class="spinner"></div>
|
||||
</div>
|
||||
<script>
|
||||
// Fallback: si le WebView ne redirige pas via server.url, on force le chargement.
|
||||
// En conditions normales, Capacitor charge directement https://coach.hypnotruck.ch
|
||||
setTimeout(function () {
|
||||
if (location.hostname !== 'coach.hypnotruck.ch') {
|
||||
location.href = 'https://coach.hypnotruck.ch';
|
||||
}
|
||||
}, 3000);
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user