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"
|
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."
|
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>
|
<script>
|
||||||
tailwind.config = {
|
tailwind.config = {
|
||||||
darkMode: 'media',
|
darkMode: 'media',
|
||||||
@@ -37,6 +37,17 @@
|
|||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
</style>
|
</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>
|
</head>
|
||||||
<body class="min-h-screen bg-paper text-navy antialiased dark:bg-navy dark:text-paper">
|
<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">
|
<div class="mx-auto max-w-2xl px-6 py-10">
|
||||||
@@ -135,7 +146,7 @@
|
|||||||
pseudonyme Play Jeux conformément à
|
pseudonyme Play Jeux conformément à
|
||||||
<a
|
<a
|
||||||
href="https://policies.google.com/privacy"
|
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
|
>sa propre politique de confidentialité</a
|
||||||
>. La connexion est optionnelle : sans elle, le jeu reste pleinement jouable et
|
>. La connexion est optionnelle : sans elle, le jeu reste pleinement jouable et
|
||||||
aucune donnée ne quitte votre appareil.
|
aucune donnée ne quitte votre appareil.
|
||||||
@@ -146,7 +157,7 @@
|
|||||||
nickname under
|
nickname under
|
||||||
<a
|
<a
|
||||||
href="https://policies.google.com/privacy"
|
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
|
>its own privacy policy</a
|
||||||
>. Signing in is optional: without it, the game remains fully playable and no data
|
>. Signing in is optional: without it, the game remains fully playable and no data
|
||||||
leaves your device.
|
leaves your device.
|
||||||
@@ -243,11 +254,11 @@
|
|||||||
8. iOS and desktop
|
8. iOS and desktop
|
||||||
</h2>
|
</h2>
|
||||||
<p data-lang="fr">
|
<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.
|
restent sur votre appareil.
|
||||||
</p>
|
</p>
|
||||||
<p data-lang="en">
|
<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>
|
</p>
|
||||||
</section>
|
</section>
|
||||||
</main>
|
</main>
|
||||||
@@ -275,6 +286,9 @@
|
|||||||
try {
|
try {
|
||||||
localStorage.setItem('livrets-lang', lang);
|
localStorage.setItem('livrets-lang', lang);
|
||||||
} catch (e) {}
|
} catch (e) {}
|
||||||
|
try {
|
||||||
|
history.replaceState(null, '', '#' + lang);
|
||||||
|
} catch (e) {}
|
||||||
}
|
}
|
||||||
var saved = null;
|
var saved = null;
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in new issue
Block a user