-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
42 lines (41 loc) · 1.35 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<!DOCTYPE html>
<html lang="fr">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<title>Vraiufo</title>
<link href="index.css" rel="stylesheet"/>
<link href="title.css" rel="stylesheet"/>
<meta content="width=device-width, initial-scale=1.0" name="viewport">
</head>
<body>
<h1 class="title">
<span class="vrai">vrai</span><span class="ou">u</span><span class="f">f</span><span class="o">o</span><span
class="aux">aux</span><span class="qm">?</span>
</h1>
<div id="question">
<h2 class="name"></h2>
<p class="description"></p>
<div class="image"><img alt="Illustration" src=""/></div>
<button class="pick" onclick="vraiUFO.pickCase()"></button>
<div class="options"></div>
<p class="score"></p>
</div>
</body>
<script type="module">
let lang = navigator.language.substring(0, 2)
if (!["de", "en", "es", "fr", "it", "no", "pt", "sv"].includes(lang)) {
lang = "en"
}
import {VraiUfo} from "./VraiUfo.mjs"
import("./lang/Messages_" + lang + ".mjs").then(messages => {
const vraiUFO = new VraiUfo(messages.default, new URL("https://rr0.org"))
const caseIndex = window.location.hash?.substring(1)
vraiUFO.init("casesDirs.json", "peopleDirs.json", caseIndex).then(() => {
window.vraiUFO = vraiUFO
})
})
</script>
<script nomodule>
alert("This website requires a modern browser")
</script>
</html>