Modals first on page to avoid 'scroll to the end' effect
[vchess.git] / views / modalSettings.pug
CommitLineData
298c42e6 1input#modalSettings.modal(type="checkbox")
b6487fb9 2div(role="dialog" aria-labelledby="settingsTitle")
582df349 3 .card.smallpad(@change="updateSettings")
298c42e6 4 label.modal-close(for="modalSettings")
b6487fb9 5 h3#settingsTitle.section= translations["Preferences"]
b6487fb9 6 fieldset
582df349
BA
7 label(for="setSqSize")= translations["Square size (in pixels). 0 for 'adaptative'"]
8 input#setSqSize(type="number" v-model="settings.sqSize")
9 fieldset
10 label(for="selectHints")= translations["Show move hints?"]
11 select#setHints(v-model="settings.hints")
12 option(value="0")= translations["None"]
13 option(value="1")= translations["Moves from a square"]
14 option(value="2")= translations["Pieces which can move"]
15 fieldset
16 label(for="setHighlight")= translations["Highlight squares? (Last move & checks)"]
17 input#setHighlight(type="checkbox" v-model="settings.highlight")
18 fieldset
19 label(for="setCoords")= translations["Show board coordinates?"]
20 input#setCoords(type="checkbox" v-model="settings.coords")
b6487fb9
BA
21 fieldset
22 label(for="selectColor")= translations["Board colors"]
582df349
BA
23 select#setBcolor(v-model="settings.bcolor")
24 option(value="lichess")
b6487fb9 25 = translations["brown"]
582df349 26 option(value="chesscom")
b6487fb9 27 = translations["green"]
582df349 28 option(value="chesstempo")
b6487fb9
BA
29 = translations["blue"]
30 fieldset
31 label(for="selectSound")= translations["Play sounds?"]
582df349
BA
32 select#setSound(v-model="settings.sound")
33 option(value="0")= translations["None"]
34 option(value="1")= translations["New game"]
35 option(value="2")= translations["All"]