4 link(rel="stylesheet" href="/stylesheets/variant.css")
9 .col-sm-12.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2
10 label.drawer-toggle(for="drawer-control")
11 input#drawer-control.drawer(type="checkbox")
13 label.drawer-close(for="drawer-control")
16 a(href="#room" @click="setDisplay('room')")
18 a(href="#gameList" @click="setDisplay('gameList')")
20 a(href="#rules" @click="setDisplay('rules')")
21 =translations["Rules"]
22 a(href="#problems" @click="setDisplay('problems')")
23 =translations["Problems"]
25 onClick="document.getElementById('modalSettings').checked=true")
26 i.material-icons settings
28 my-room(v-show="display=='room'")
29 my-games-list(v-show="display=='gameList'")
30 my-rules(v-show="display=='rules'")
31 my-problems(v-show="display=='problems'")
32 // my-game: for room and games-list components
33 my-game(v-show="display=='game'" :gameId="")
36 script(src="/javascripts/utils/misc.js")
37 script(src="/javascripts/utils/array.js")
38 script(src="/javascripts/utils/md5.js")
39 script(src="/javascripts/utils/printDiagram.js")
40 script(src="/javascripts/utils/ajax.js")
41 script(src="/javascripts/utils/datetime.js")
42 script(src="/javascripts/socket_url.js")
43 script(src="/javascripts/base_rules.js")
44 script(src="/javascripts/variants/" + variant + ".js")
46 const V = VariantRules; //because this variable is often used
47 const variant = "#{variant}";
48 const problemArray = !{JSON.stringify(problemArray)};
49 script(src="/javascripts/components/rules.js")
50 script(src="/javascripts/components/game.js")
51 script(src="/javascripts/components/problemSummary.js")
52 script(src="/javascripts/components/problems.js")
53 script(src="/javascripts/variant.js")