Progression in styles + initiate translation process
[vchess.git] / views / variant.pug
CommitLineData
1d184b4c
BA
1extends layout
2
3block css
92342261
BA
4 link(rel="stylesheet" href="//fonts.googleapis.com/icon?family=Material+Icons")
5 link(rel="stylesheet" href="/stylesheets/variant.css")
1d184b4c
BA
6
7block content
8 .container#variantPage
9a3c9f79
BA
9 .row //TODO: this thing + game/problems/rules iin variant page. Here just h1
10 #menuContainer.col-sm-12.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2
11 label.drawer-toggle(for="drawer-control")
12 input#drawer-control.drawer(type="checkbox")
13 #menuBar
14 label.drawer-close(for="drawer-control")
15 a(href="/")
16 img(src="/images/index/unicorn.svg")
17 span vchess.club
18 img(src="/images/index/wildebeest.svg")
19 a(href="#") Home222
d5973790
BA
20 .row
21 .col-sm-12.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2
22 label.drawer-toggle(for="drawer-control")
23 input#drawer-control.drawer(type="checkbox")
24 div
25 label.drawer-close(for="drawer-control")
26 a(href="#") Home
27 a(href="#") Home222
1d184b4c
BA
28 .row
29 .col-sm-12.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2
4ecf423b 30 h4.variantpage-title.text-center(v-on:click="toggleDisplay('rules')")
92342261 31 | #{variant} Rules
f5d3e4f5 32 my-rules(v-show="display=='rules'")
1d184b4c 33 .col-sm-12.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2
4ecf423b 34 h4.variantpage-title.text-center(v-on:click="toggleDisplay('game')")
f5d3e4f5 35 | #{variant} Game
c794dbb8 36 my-game(v-show="display=='game'" v-bind:problem="problem")
f5d3e4f5 37 .col-sm-12.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2
4ecf423b 38 h4.variantpage-title.text-center(v-on:click="toggleDisplay('problems')")
f5d3e4f5 39 | #{variant} Problems
c794dbb8
BA
40 my-problems(v-show="display=='problems'"
41 v-on:show-problem="showProblem($event)")
1d184b4c
BA
42
43block javascripts
b019d603 44 script(src="/javascripts/utils/misc.js")
1d184b4c
BA
45 script(src="/javascripts/utils/socket_url.js")
46 script(src="/javascripts/utils/array.js")
331fc58c 47 script(src="/javascripts/utils/md5.js")
da06a6eb
BA
48 script(src="/javascripts/utils/printDiagram.js")
49 script(src="/javascripts/utils/ajax.js")
c794dbb8 50 script(src="/javascripts/utils/datetime.js")
1d184b4c
BA
51 script(src="/javascripts/base_rules.js")
52 script(src="/javascripts/variants/" + variant + ".js")
53 script.
0b7d99ec 54 const V = VariantRules; //because this variable is often used
1d184b4c 55 const variant = "#{variant}";
da06a6eb 56 const problemArray = !{JSON.stringify(problemArray)};
1d184b4c
BA
57 script(src="/javascripts/components/rules.js")
58 script(src="/javascripts/components/game.js")
da06a6eb 59 script(src="/javascripts/components/problemSummary.js")
f5d3e4f5 60 script(src="/javascripts/components/problems.js")
4ecf423b 61 script(src="/javascripts/variant.js")