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 | |
d5973790 BA |
9 | .row |
10 | .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 | div | |
14 | label.drawer-close(for="drawer-control") | |
15 | a(href="#") Home | |
16 | a(href="#") Home222 | |
1d184b4c BA |
17 | .row |
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('rules')") |
92342261 | 20 | | #{variant} Rules |
f5d3e4f5 | 21 | my-rules(v-show="display=='rules'") |
1d184b4c | 22 | .col-sm-12.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2 |
4ecf423b | 23 | h4.variantpage-title.text-center(v-on:click="toggleDisplay('game')") |
f5d3e4f5 | 24 | | #{variant} Game |
c794dbb8 | 25 | my-game(v-show="display=='game'" v-bind:problem="problem") |
f5d3e4f5 | 26 | .col-sm-12.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2 |
4ecf423b | 27 | h4.variantpage-title.text-center(v-on:click="toggleDisplay('problems')") |
f5d3e4f5 | 28 | | #{variant} Problems |
c794dbb8 BA |
29 | my-problems(v-show="display=='problems'" |
30 | v-on:show-problem="showProblem($event)") | |
1d184b4c BA |
31 | |
32 | block javascripts | |
b019d603 | 33 | script(src="/javascripts/utils/misc.js") |
1d184b4c BA |
34 | script(src="/javascripts/utils/socket_url.js") |
35 | script(src="/javascripts/utils/array.js") | |
331fc58c | 36 | script(src="/javascripts/utils/md5.js") |
da06a6eb BA |
37 | script(src="/javascripts/utils/printDiagram.js") |
38 | script(src="/javascripts/utils/ajax.js") | |
c794dbb8 | 39 | script(src="/javascripts/utils/datetime.js") |
1d184b4c BA |
40 | script(src="/javascripts/base_rules.js") |
41 | script(src="/javascripts/variants/" + variant + ".js") | |
42 | script. | |
0b7d99ec | 43 | const V = VariantRules; //because this variable is often used |
1d184b4c | 44 | const variant = "#{variant}"; |
da06a6eb | 45 | const problemArray = !{JSON.stringify(problemArray)}; |
1d184b4c BA |
46 | script(src="/javascripts/components/rules.js") |
47 | script(src="/javascripts/components/game.js") | |
da06a6eb | 48 | script(src="/javascripts/components/problemSummary.js") |
f5d3e4f5 | 49 | script(src="/javascripts/components/problems.js") |
4ecf423b | 50 | script(src="/javascripts/variant.js") |