Commit 720f14ce authored by  JosephK's avatar JosephK

fr redirection

parent ea1463b1
Pipeline #45239 passed with stages
in 44 seconds
......@@ -53,7 +53,7 @@ Obviously Sense3 meets these same criteria.
{{% /grid %}}
{{% grid class="col-sm-12 text-center" %}}
[Pour commencer](#getting-started) [Comment ça fonctionne](#how-it-works)
[Get started](#getting-started) [How it work](#how-it-works)
{{% /grid %}}<p>
{{% /grid %}}<p>
......@@ -120,7 +120,7 @@ you can install it for your own use, modify it,
Its development is ensured by [JosephK](https://liberapay.com/josephk/),
an employee of the association [Framasoft](https://framasoft.org).
The project was born from an [April fools idea for the Framablog](https://framablog.org).
The project was born from an [April fools idea for the Framablog](https://framablog.org/2018/04/01/framadsense-la-publicite-qui-a-du-sens).
{{% /grid %}}
{{% grid class="col-md-4 text-center" %}}
......@@ -130,7 +130,7 @@ The project was born from an [April fools idea for the Framablog](https://framab
{{% /grid %}}
{{% grid class="col-sm-12" %}}
[Pour commencer](#getting-started)
[Get started](#getting-started)
{{% /grid %}}
{{% /grid %}}
......
......@@ -120,7 +120,7 @@ vous pouvez l’installer pour votre propre usage, le modifier,
Son développement est assuré par [JosephK](https://liberapay.com/josephk/),
employé de l’association [Framasoft](https://framasoft.org).
Le projet est né d’une idée de [poisson d’Avril pour le Framablog](https://framablog.org).
Le projet est né d’une idée de [poisson d’Avril pour le Framablog](https://framablog.org/2018/04/01/framadsense-la-publicite-qui-a-du-sens).
{{% /grid %}}
{{% grid class="col-sm-4 text-center" %}}
......
......@@ -10,8 +10,19 @@
{{ partial "base/imports.html" . }}
<script>
if (/\/{{ .Lang }}\/$/.test(window.location.href)) {window.location.href = `${window.location.href}home/`; }
if (!(document.cookie.indexOf('selectedLanguage=') > -1)) {
document.addEventListener('DOMContentLoaded', () => {
const userLang = navigator.languages ||
[root.navigator.language || root.navigator.userLanguage];
for (let i = 0; i < userLang.length; i += 1) {
if (userLang[i].substring(0, 2).toLowerCase() === 'fr') {
changeLanguage('fr');
}
}
});
}
</script>
<script type="text/javascript" src="https://josephk.frama.io/sense3/bowser.min.js"></script>
<script type="text/javascript" src="/s/bowser.min.js"></script>
</head>
<body{{ with .Site.Params.theme }} class="{{ . }}"{{ end }} data-ng-app="myapp" data-ng-controller="MyController" data-ng-mouseleave="MouseLeave($event)">
{{ partial "base/header.html" . }}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment