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 | 31 | #[a(href="mailto:contact@vchess.club?subject=[vchess.club] bug report") contact@vchess.club] |
98ccb376 | 32 | with relevant comments and the PGN attached. Thank you! |
1d184b4c BA |
33 | .row |
34 | my-variant-summary( | |
35 | v-for="(v,idx) in sortedCounts", | |
36 | v-show="v.name.startsWith(curPrefix)", | |
37 | v-bind:vobj="v", | |
38 | v-bind:key="v.name") | |
39 | ||
40 | block javascripts | |
41 | script. | |
42 | const variantArray = !{JSON.stringify(variantArray)}; | |
43 | //JSON.parse("!{variantArray}".replace(/\"/g,'"')); | |
44 | script(src="/javascripts/utils/socket_url.js") | |
45 | script(src="/javascripts/components/variantSummary.js") | |
46 | script(src="/javascripts/index.js") |