Save current state (unmerged, broken, not working...)
[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
7 .container#variantPage
e6dcb115 8 .row
d449ae46 9 .col-sm-12.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2
9a3c9f79
BA
10 label.drawer-toggle(for="drawer-control")
11 input#drawer-control.drawer(type="checkbox")
12 #menuBar
13 label.drawer-close(for="drawer-control")
b6487fb9 14 a.icon-link(href="/")
e6dcb115 15 i.material-icons home
b6487fb9
BA
16 a(href="#room" @click="setDisplay('room')")
17 =translations["Hall"]
18 a(href="#gameList" @click="setDisplay('gameList')")
298c42e6 19 =translations["My games"]
b6487fb9
BA
20 a(href="#rules" @click="setDisplay('rules')")
21 =translations["Rules"]
22 a(href="#problems" @click="setDisplay('problems')")
23 =translations["Problems"]
24 #settings.clickable(
25 onClick="document.getElementById('modalSettings').checked=true")
26 i.material-icons settings
1d184b4c 27 .row
b6487fb9 28 my-room(v-show="display=='room'")
81da2786 29 my-game-list(v-show="display=='gameList'")
a5d56686 30 my-rules(v-show="display=='rules'")
b6487fb9 31 my-problems(v-show="display=='problems'")
298c42e6 32 my-game(v-show="display=='game'" :gameId="gameid")
1d184b4c
BA
33
34block javascripts
b019d603 35 script(src="/javascripts/utils/misc.js")
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)};
81da2786
BA
45 script(src="/javascripts/components/room.js")
46 script(src="/javascripts/components/gameList.js")
1d184b4c 47 script(src="/javascripts/components/rules.js")
da06a6eb 48 script(src="/javascripts/components/problemSummary.js")
f5d3e4f5 49 script(src="/javascripts/components/problems.js")
81da2786 50 script(src="/javascripts/components/game.js")
4ecf423b 51 script(src="/javascripts/variant.js")