| 1 | extends layout |
| 2 | |
| 3 | block css |
| 4 | link(rel="stylesheet" href="//fonts.googleapis.com/icon?family=Material+Icons") |
| 5 | link(rel="stylesheet" href="/stylesheets/variant.css") |
| 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 |
| 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 |
| 17 | .row |
| 18 | .col-sm-12.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2 |
| 19 | h4.variantpage-title.text-center(v-on:click="toggleDisplay('rules')") |
| 20 | | #{variant} Rules |
| 21 | my-rules(v-show="display=='rules'") |
| 22 | .col-sm-12.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2 |
| 23 | h4.variantpage-title.text-center(v-on:click="toggleDisplay('game')") |
| 24 | | #{variant} Game |
| 25 | my-game(v-show="display=='game'" v-bind:problem="problem") |
| 26 | .col-sm-12.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2 |
| 27 | h4.variantpage-title.text-center(v-on:click="toggleDisplay('problems')") |
| 28 | | #{variant} Problems |
| 29 | my-problems(v-show="display=='problems'" |
| 30 | v-on:show-problem="showProblem($event)") |
| 31 | |
| 32 | block javascripts |
| 33 | script(src="/javascripts/utils/misc.js") |
| 34 | script(src="/javascripts/utils/socket_url.js") |
| 35 | script(src="/javascripts/utils/array.js") |
| 36 | script(src="/javascripts/utils/md5.js") |
| 37 | script(src="/javascripts/utils/printDiagram.js") |
| 38 | script(src="/javascripts/utils/ajax.js") |
| 39 | script(src="/javascripts/utils/datetime.js") |
| 40 | script(src="/javascripts/base_rules.js") |
| 41 | script(src="/javascripts/variants/" + variant + ".js") |
| 42 | script. |
| 43 | const V = VariantRules; //because this variable is often used |
| 44 | const variant = "#{variant}"; |
| 45 | const problemArray = !{JSON.stringify(problemArray)}; |
| 46 | script(src="/javascripts/components/rules.js") |
| 47 | script(src="/javascripts/components/game.js") |
| 48 | script(src="/javascripts/components/problemSummary.js") |
| 49 | script(src="/javascripts/components/problems.js") |
| 50 | script(src="/javascripts/variant.js") |