Commit | Line | Data |
---|---|---|
1d184b4c BA |
1 | extends layout |
2 | ||
3 | block 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 | |
7 | block content | |
8 | .container#variantPage | |
9 | .row | |
10 | .col-sm-12.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2 | |
4ecf423b | 11 | h4.variantpage-title.text-center(v-on:click="toggleDisplay('rules')") |
92342261 | 12 | | #{variant} Rules |
f5d3e4f5 | 13 | my-rules(v-show="display=='rules'") |
1d184b4c | 14 | .col-sm-12.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2 |
4ecf423b | 15 | h4.variantpage-title.text-center(v-on:click="toggleDisplay('game')") |
f5d3e4f5 BA |
16 | | #{variant} Game |
17 | my-game(v-show="display=='game'") | |
18 | .col-sm-12.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2 | |
4ecf423b | 19 | h4.variantpage-title.text-center(v-on:click="toggleDisplay('problems')") |
f5d3e4f5 | 20 | | #{variant} Problems |
4ecf423b | 21 | my-problems(v-show="display=='problems'") |
1d184b4c BA |
22 | |
23 | block javascripts | |
b019d603 | 24 | script(src="/javascripts/utils/misc.js") |
1d184b4c BA |
25 | script(src="/javascripts/utils/socket_url.js") |
26 | script(src="/javascripts/utils/array.js") | |
331fc58c | 27 | script(src="/javascripts/utils/md5.js") |
1d184b4c BA |
28 | script(src="/javascripts/base_rules.js") |
29 | script(src="/javascripts/variants/" + variant + ".js") | |
30 | script. | |
31 | const VariantRules = #{variant}Rules; | |
0b7d99ec | 32 | const V = VariantRules; //because this variable is often used |
1d184b4c BA |
33 | const variant = "#{variant}"; |
34 | script(src="/javascripts/components/rules.js") | |
35 | script(src="/javascripts/components/game.js") | |
f5d3e4f5 | 36 | script(src="/javascripts/components/problems.js") |
4ecf423b | 37 | script(src="/javascripts/variant.js") |