Première version qui marche

This commit is contained in:
2020-10-08 00:17:08 +02:00
parent 48651421a2
commit 55c2e4a0c3
11 changed files with 841 additions and 1 deletions

42
index.html Normal file
View File

@@ -0,0 +1,42 @@
<html lang="fr">
<head>
<meta charset="utf-8"/>
<title>Kikikoz</title>
<script type="module">
import {default as init, greet, ajoute, next} from './pkg/kikikoz.js';
async function run() {
await init()
}
run()
window.greet = greet;
window.ajoute = ajoute;
window.next = next;
</script>
<link rel="stylesheet" href="kikikoz.css"/>
</head>
<body>
<h1>Kikikoz</h1>
<p class="prochain">
<span id="prochain" class="personne">Personne</span> <button onclick="next()">Hop!</button>
</p>
<section class="queue" id="queue_prio">
<h3>Personnes prioritaires</h3>
<ol>
</ol>
<p>Ajouter: <input type="text"/><button onclick='ajoute("queue_prio")'>x</button></p>
</section>
<section class="queue" id="queue_non_prio">
<h3>Personnes non prioritaires</h3>
<ol>
</ol>
<p>Ajouter: <input type="text"/><button onclick='ajoute("queue_non_prio")'>x</button></p>
</section>
</body>
</html>