rename getOppCol into static GetOppCol + start thinking about problems page
[vchess.git] / views / variant.pug
CommitLineData
1d184b4c
BA
1extends layout
2
3block css
92342261 4 link(rel="stylesheet" href="/stylesheets/variant.css")
1d184b4c
BA
5
6block content
b57dbd12
BA
7 include settings
8 .container
e6dcb115 9 .row
d449ae46 10 .col-sm-12.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2
9a3c9f79
BA
11 label.drawer-toggle(for="drawer-control")
12 input#drawer-control.drawer(type="checkbox")
13 #menuBar
14 label.drawer-close(for="drawer-control")
b6487fb9 15 a.icon-link(href="/")
e6dcb115 16 i.material-icons home
b6487fb9
BA
17 a(href="#room" @click="setDisplay('room')")
18 =translations["Hall"]
19 a(href="#gameList" @click="setDisplay('gameList')")
298c42e6 20 =translations["My games"]
b6487fb9
BA
21 a(href="#rules" @click="setDisplay('rules')")
22 =translations["Rules"]
23 a(href="#problems" @click="setDisplay('problems')")
24 =translations["Problems"]
26b8e4f7 25 #settings.clickable(onClick="doClick('modalSettings')")
b6487fb9 26 i.material-icons settings
26b8e4f7 27 include userMenu
1d184b4c 28 .row
26b8e4f7
BA
29 //my-room(v-show="display=='room'")
30 //my-game-list(v-show="display=='gameList'")
a5d56686 31 my-rules(v-show="display=='rules'")
b6487fb9 32 my-problems(v-show="display=='problems'")
26b8e4f7 33 //my-game(v-show="display=='game'" :gameId="gameid")
1d184b4c
BA
34
35block javascripts
1d184b4c 36 script(src="/javascripts/utils/array.js")
da06a6eb 37 script(src="/javascripts/utils/printDiagram.js")
c794dbb8 38 script(src="/javascripts/utils/datetime.js")
a48ee8b8 39 script(src="/javascripts/socket_url.js")
1d184b4c 40 script(src="/javascripts/base_rules.js")
8d7e2786 41 script(src="/javascripts/variants/" + variant.name + ".js")
1d184b4c 42 script.
0b7d99ec 43 const V = VariantRules; //because this variable is often used
8d7e2786 44 const variant = !{JSON.stringify(variant)};
26b8e4f7
BA
45 //script(src="/javascripts/components/room.js")
46 //script(src="/javascripts/components/gameList.js")
1d184b4c 47 script(src="/javascripts/components/rules.js")
26b8e4f7 48 script(src="/javascripts/components/problemPreview.js")
f5d3e4f5 49 script(src="/javascripts/components/problems.js")
26b8e4f7 50 //script(src="/javascripts/components/game.js")
4ecf423b 51 script(src="/javascripts/variant.js")