Commit | Line | Data |
---|---|---|
1d184b4c BA |
1 | extends layout |
2 | ||
3 | block css | |
4 | link(rel="stylesheet", href="/stylesheets/index.css") | |
5 | ||
6 | block content | |
7 | .container#indexPage | |
8 | .row | |
9 | .col-sm-12 | |
10 | h1.text-center Welcome to v[ariant] chess club ! | |
e7cfa68d BA |
11 | h2.help.text-center(onClick="document.getElementById('modal-control').checked=true") Help ? |
12 | input#modal-control.modal(type="checkbox") | |
13 | div(role="dialog") | |
14 | .card | |
15 | label.modal-close(for="modal-control") | |
16 | h3.blue.section Modes | |
17 | p.section. | |
11c53645 BA |
18 | Each variant page offers two modes: against a human or computer opponent, |
19 | which is here to help learning the rules. | |
e7cfa68d BA |
20 | h3.blue.section Comments |
21 | p.section. | |
11c53645 BA |
22 | All games start with a random assymetric position. #[br] |
23 | Games are untimed, and played anonymously. #[br] | |
24 | No chat, to rather focus on the moves :) | |
385166a4 | 25 | h3.red.section Bug report |
11c53645 BA |
26 | p.section. |
27 | If you find a bug in a game, please follow this procedure: #[br] | |
385166a4 | 28 | 1. stop playing: click on the resign button; #[br] |
11c53645 | 29 | 2. click on the PGN to download it; #[br] |
6db7f96d | 30 | 3. send an email to |
385166a4 BA |
31 | #[a(href="mailto:contact@vchess.club?subject=[vchess.club] bug report") contact@vchess.club] |
32 | describing the situation, with the PGN and a screenshot attached :)#[br] | |
11c53645 | 33 | Thank you! |
1d184b4c BA |
34 | .row |
35 | my-variant-summary( | |
36 | v-for="(v,idx) in sortedCounts", | |
37 | v-show="v.name.startsWith(curPrefix)", | |
38 | v-bind:vobj="v", | |
39 | v-bind:key="v.name") | |
40 | ||
41 | block javascripts | |
42 | script. | |
43 | const variantArray = !{JSON.stringify(variantArray)}; | |
44 | //JSON.parse("!{variantArray}".replace(/\"/g,'"')); | |
45 | script(src="/javascripts/utils/socket_url.js") | |
46 | script(src="/javascripts/components/variantSummary.js") | |
47 | script(src="/javascripts/index.js") |