fix: accessibilité et robustesse de la page de confidentialité
This commit is contained in:
1 file changed
+19
-5
+19
-5
@@ -8,7 +8,7 @@
|
||||
name="description"
|
||||
content="Politique de confidentialité du jeu Livrets : vos données restent sur votre appareil. Privacy policy for the Livrets game: your data stays on your device."
|
||||
/>
|
||||
<script src="https://cdn.tailwindcss.com"></script>
|
||||
<script src="https://cdn.tailwindcss.com/3.4.16"></script>
|
||||
<script>
|
||||
tailwind.config = {
|
||||
darkMode: 'media',
|
||||
@@ -37,6 +37,17 @@
|
||||
white-space: nowrap;
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
(function () {
|
||||
var lang = location.hash === '#en' ? 'en' : location.hash === '#fr' ? 'fr' : null;
|
||||
if (!lang) {
|
||||
try { lang = localStorage.getItem('livrets-lang'); } catch (e) {}
|
||||
}
|
||||
var root = document.documentElement;
|
||||
root.classList.remove('fr', 'en');
|
||||
root.classList.add(lang === 'en' ? 'en' : 'fr');
|
||||
})();
|
||||
</script>
|
||||
</head>
|
||||
<body class="min-h-screen bg-paper text-navy antialiased dark:bg-navy dark:text-paper">
|
||||
<div class="mx-auto max-w-2xl px-6 py-10">
|
||||
@@ -135,7 +146,7 @@
|
||||
pseudonyme Play Jeux conformément à
|
||||
<a
|
||||
href="https://policies.google.com/privacy"
|
||||
class="font-medium text-accent underline underline-offset-2"
|
||||
class="font-medium text-accent underline underline-offset-2 dark:text-mist"
|
||||
>sa propre politique de confidentialité</a
|
||||
>. La connexion est optionnelle : sans elle, le jeu reste pleinement jouable et
|
||||
aucune donnée ne quitte votre appareil.
|
||||
@@ -146,7 +157,7 @@
|
||||
nickname under
|
||||
<a
|
||||
href="https://policies.google.com/privacy"
|
||||
class="font-medium text-accent underline underline-offset-2"
|
||||
class="font-medium text-accent underline underline-offset-2 dark:text-mist"
|
||||
>its own privacy policy</a
|
||||
>. Signing in is optional: without it, the game remains fully playable and no data
|
||||
leaves your device.
|
||||
@@ -243,11 +254,11 @@
|
||||
8. iOS and desktop
|
||||
</h2>
|
||||
<p data-lang="fr">
|
||||
Sur iOS et macOS, le jeu n'a aucune fonctionnalité en ligne : toutes les données
|
||||
Sur iOS et sur desktop, le jeu n'a aucune fonctionnalité en ligne : toutes les données
|
||||
restent sur votre appareil.
|
||||
</p>
|
||||
<p data-lang="en">
|
||||
On iOS and macOS, the game has no online features: all data stays on your device.
|
||||
On iOS and desktop, the game has no online features: all data stays on your device.
|
||||
</p>
|
||||
</section>
|
||||
</main>
|
||||
@@ -275,6 +286,9 @@
|
||||
try {
|
||||
localStorage.setItem('livrets-lang', lang);
|
||||
} catch (e) {}
|
||||
try {
|
||||
history.replaceState(null, '', '#' + lang);
|
||||
} catch (e) {}
|
||||
}
|
||||
var saved = null;
|
||||
try {
|
||||
|
||||
Reference in new issue
Block a user