index.html 3.43 KB
Newer Older
Yohan Boniface's avatar
Yohan Boniface committed
1 2 3 4 5
<!DOCTYPE html>
<meta charset=utf-8>
<title>Trèfle feuille à feuille</title>
<script src="vendor/riot/riot%2Bcompiler.js"></script>
<script src="vendor/riot/route%2Btag.min.js"></script>
Jean-Yves Stervinou's avatar
Jean-Yves Stervinou committed
6 7 8 9 10

<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
11
<link href="https://fonts.googleapis.com/css?family=Lato&display=swap" rel="stylesheet">
Jean-Yves Stervinou's avatar
Jean-Yves Stervinou committed
12
<link rel="stylesheet" type="text/css" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"/>
Yohan Boniface's avatar
Yohan Boniface committed
13
<link rel="stylesheet" type="text/css" href="app.css">
14 15
<link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon">
<link rel="icon" href="images/favicon.ico" type="image/x-icon">
Jean-Yves Stervinou's avatar
Jean-Yves Stervinou committed
16

Yohan Boniface's avatar
Yohan Boniface committed
17
<script type="text/javascript" src="mixin/view.mixin.js"></script>
18
<script type="text/javascript" src="app.js"></script>
Yohan Boniface's avatar
Yohan Boniface committed
19 20
<script src="components/navbar.tag.html" type="riot/tag"></script>
<script src="components/schema.tag.html" type="riot/tag"></script>
Yohan Boniface's avatar
Yohan Boniface committed
21
<script src="components/glossary.tag.html" type="riot/tag"></script>
22
<script src="components/rule.tag.html" type="riot/tag"></script>
Yohan Boniface's avatar
Yohan Boniface committed
23
<script src="components/rules.tag.html" type="riot/tag"></script>
24
<script src="components/scenarios.tag.html" type="riot/tag"></script>
25
<script src="components/simulate.tag.html" type="riot/tag"></script>
26
<script src="components/tools.tag.html" type="riot/tag"></script>
27
<script src="components/financements.tag.html" type="riot/tag"></script>
28
<script src="components/idcc-search.tag.html" type="riot/tag"></script>
29
<script src="components/catalog.tag.html" type="riot/tag"></script>
30
<script src="components/context.tag.html" type="riot/tag"></script>
Yohan Boniface's avatar
Yohan Boniface committed
31

Jean-Yves Stervinou's avatar
Jean-Yves Stervinou committed
32 33

<header data-is=navbar style="border:none"></header>
Yohan Boniface's avatar
Yohan Boniface committed
34
<main>
35 36 37 38 39 40 41 42
  <div class="page-content bg-light">
      <div data-is=schema class=tools></div>
      <div data-is=glossary class=full></div>
      <div data-is=rules></div>
      <div data-is=simulate class=tools></div>
      <div data-is=financements class=full></div>
      <div data-is=scenarios class=tools></div>
      <div data-is=tools></div>
Jean-Yves Stervinou's avatar
Jean-Yves Stervinou committed
43
  </div>
Yohan Boniface's avatar
Yohan Boniface committed
44
</main>
Yohan Boniface's avatar
Yohan Boniface committed
45 46

<script>
David Foucher's avatar
David Foucher committed
47 48 49 50
  function page() {
    riot.mount.apply(null, arguments)
    document.querySelector('header')._tag.update()
  }
51
  riot.mount('navbar')
David Foucher's avatar
David Foucher committed
52 53 54 55 56 57 58 59 60 61 62
  route('/schema/(.+)', (id) => page('schema', {id: id}))
  route('/schema', () => page('schema'))
  route('/rules/(.+)', (id) => page('rules', {id: id}))
  route('/rules', () => page('rules'))
  route('/scenarios/(.+)', (filters) => page('scenarios', {filters: decodeURIComponent(filters).split(',')}))
  route('/scenarios', () => page('scenarios'))
  route('/simulate', () => page('simulate'))
  route('/simulate/(.+)', (url) => page('simulate', {url: url}))
  route('/tools', () => page('tools'))
  route('/financements', () => page('financements'))
  route('/glossary', () => page('glossary'))
Yohan Boniface's avatar
Yohan Boniface committed
63
</script>