| 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 ! |
| 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. |
| 18 | Each variant page offers two modes: against a human or computer opponent, |
| 19 | which is here to help learning the rules. |
| 20 | h3.blue.section Comments |
| 21 | p.section. |
| 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 :) |
| 25 | h3.purple.section Bug report |
| 26 | p.section. |
| 27 | If you find a bug in a game, please follow this procedure: #[br] |
| 28 | 1. stop playing (click on the resign button); #[br] |
| 29 | 2. click on the PGN to download it; #[br] |
| 30 | 3. send an email to #[a(href="mailto:contact@vchess.club?subject=Bug report") this address], |
| 31 | describing the situation (what is expected vs. what is observed), |
| 32 | with the PGN attached :)#[br] |
| 33 | Thank you! |
| 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") |