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 | |
92342261 BA |
11 | h4.rulesTitle.text-center(v-on:click="displayRules=!displayRules") |
12 | | #{variant} Rules | |
1d184b4c BA |
13 | my-rules(v-show="displayRules") |
14 | .col-sm-12.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2 | |
15 | my-game | |
16 | ||
17 | block javascripts | |
b019d603 | 18 | script(src="/javascripts/utils/misc.js") |
1d184b4c BA |
19 | script(src="/javascripts/utils/socket_url.js") |
20 | script(src="/javascripts/utils/array.js") | |
331fc58c | 21 | script(src="/javascripts/utils/md5.js") |
1d184b4c BA |
22 | script(src="/javascripts/base_rules.js") |
23 | script(src="/javascripts/variants/" + variant + ".js") | |
24 | script. | |
25 | const VariantRules = #{variant}Rules; | |
26 | const variant = "#{variant}"; | |
27 | script(src="/javascripts/components/rules.js") | |
28 | script(src="/javascripts/components/game.js") | |
29 | script. | |
30 | new Vue({ | |
31 | el: "#variantPage", | |
32 | data: { displayRules: false }, | |
33 | }); |