1 input#modalLang.modal(type="checkbox")
4 label.modal-close(for="modalLang")
7 label(for="langSelect")= translations["Language"]
9 each language,langCode in langName
10 option(value=langCode selected=(lang==langCode))
13 input#modalSettings.modal(type="checkbox")
14 div(role="dialog" aria-labelledby="settingsTitle")
15 .card.smallpad(@change="updateSettings")
16 label.modal-close(for="modalSettings")
17 h3#settingsTitle.section= translations["Preferences"]
19 label(for="setSqSize")= translations["Square size (in pixels). 0 for 'adaptative'"]
20 input#setSqSize(type="number" v-model="settings.sqSize")
22 label(for="selectHints")= translations["Show move hints?"]
23 select#setHints(v-model="settings.hints")
24 option(value="0")= translations["None"]
25 option(value="1")= translations["Moves from a square"]
26 option(value="2")= translations["Pieces which can move"]
28 label(for="setHighlight")= translations["Highlight squares? (Last move & checks)"]
29 input#setHighlight(type="checkbox" v-model="settings.highlight")
31 label(for="setCoords")= translations["Show board coordinates?"]
32 input#setCoords(type="checkbox" v-model="settings.coords")
34 label(for="selectColor")= translations["Board colors"]
35 select#setBcolor(v-model="settings.bcolor")
36 option(value="lichess")
37 = translations["brown"]
38 option(value="chesscom")
39 = translations["green"]
40 option(value="chesstempo")
41 = translations["blue"]
43 label(for="selectSound")= translations["Play sounds?"]
44 select#setSound(v-model="settings.sound")
45 option(value="0")= translations["None"]
46 option(value="1")= translations["New game"]
47 option(value="2")= translations["All"]
49 input#modalContact.modal(type="checkbox")
50 div(role="dialog" aria-labelledby="contactTitle")
52 label.modal-close(for="modalContact")
53 h3#contactTitle.section= translations["Contact form"]
55 label(for="userEmail")= translations["Email"]
56 input#userEmail(type="email")
58 label(for="mailSubject")= translations["Subject"]
59 input#mailSubject(type="text")
61 label(for="mailContent")= translations["Content"]
65 button(type="button" onClick="trySendMessage()") Send
66 p#emailSent= translations["Email sent!"]