X-Git-Url: https://git.auder.net/?a=blobdiff_plain;ds=sidebyside;f=views%2Fvariant.pug;h=a613a0b094a5aa52e5ec24857472fd882570b4da;hb=4ecf423bce243e8e10b5b777a95f67ecc9f8d8d3;hp=e744962149d58fdbfb7a9064a9d3fe2903d0f615;hpb=f5d3e4f539355d166baf38bab97480582e90e4af;p=vchess.git diff --git a/views/variant.pug b/views/variant.pug index e7449621..a613a0b0 100644 --- a/views/variant.pug +++ b/views/variant.pug @@ -8,17 +8,17 @@ block content .container#variantPage .row .col-sm-12.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2 - h4.rulesTitle.text-center(v-on:click="display='rules'") + h4.variantpage-title.text-center(v-on:click="toggleDisplay('rules')") | #{variant} Rules my-rules(v-show="display=='rules'") .col-sm-12.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2 - h4.rulesTitle.text-center(v-on:click="display='game'") + h4.variantpage-title.text-center(v-on:click="toggleDisplay('game')") | #{variant} Game my-game(v-show="display=='game'") .col-sm-12.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2 - h4.rulesTitle.text-center(v-on:click="display='problems'") + h4.variantpage-title.text-center(v-on:click="toggleDisplay('problems')") | #{variant} Problems - my-game(v-show="display=='problems'") + my-problems(v-show="display=='problems'") block javascripts script(src="/javascripts/utils/misc.js") @@ -34,3 +34,4 @@ block javascripts script(src="/javascripts/components/rules.js") script(src="/javascripts/components/game.js") script(src="/javascripts/components/problems.js") + script(src="/javascripts/variant.js")