X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=views%2Findex.pug;h=6ea45166e1370421b27cce9730a88d68472f52c2;hb=74ea2e8d9ec6980e2fb5a4f86afe33b4850e3d53;hp=34c059b4e6ad2e0128512b6ef83728edf877da4e;hpb=e081ffe361b06ca74db0a36bf72dd73602abf57b;p=vchess.git diff --git a/views/index.pug b/views/index.pug index 34c059b4..6ea45166 100644 --- a/views/index.pug +++ b/views/index.pug @@ -4,54 +4,45 @@ block css link(rel="stylesheet", href="/stylesheets/index.css") block content - .container#indexPage - include langNames.pug + .container case lang when "en" - include translations/en.pug - include welcome/en.pug - include modal-lang/en.pug - include modal-help/en.pug + include welcome/en when "es" - include translations/es.pug - include welcome/es.pug - include modal-lang/es.pug - include modal-help/es.pug + include welcome/es when "fr" - include translations/fr.pug - include welcome/fr.pug - include modal-lang/fr.pug - include modal-help/fr.pug + include welcome/fr .row #header.col-sm-12.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2 - #mainTitle + #mainTitle.clickable(onClick="doClick('modalWelcome')") img(src="/images/index/unicorn.svg") .info-container p vchess.club img(src="/images/index/wildebeest.svg") - #flagMenu.clickable( - onClick="document.getElementById('modalLang').checked=true") + #flagMenu.clickable(onClick="doClick('modalLang')") img(src="/images/flags/" + lang + ".svg") - #helpMenu.clickable( - onClick="document.getElementById('modalHelp').checked=true") + include userMenu + a.right-menu(v-show="display=='variants'" href="#correspondance") .info-container - p= translations["Help"] - .row + p Correspondance + a.right-menu(v-show="display=='correspondance'" href="#variants") + .info-container + p Variants + .row(v-show="display=='variants'") + .col-sm-12.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2 + label(for="prefixFilter") Type first letters... + input#prefixFilter(v-model="curPrefix") my-variant-summary(v-for="(v,idx) in sortedCounts" v-bind:vobj="v" v-bind:index="idx" v-bind:key="v.name") - // Other modals: - input#modalB4welcome.modal(type="checkbox") - div(role="dialog") - #b4welcome.card.text-center.small-modal - h3.blue= translations["First visit?"] - p#readThis.clickable(@click="showWelcomeMsg") - =translations[">>> Please read this <<<"] + .row(v-show="display=='correspondance'") + my-correspondance block javascripts script. - const translations = !{JSON.stringify(translations)}; const variantArray = !{JSON.stringify(variantArray)}; - script(src="/javascripts/utils/misc.js") script(src="/javascripts/socket_url.js") script(src="/javascripts/components/variantSummary.js") + script(src="/javascripts/components/gameList.js") + script(src="/javascripts/components/challengeList.js") + script(src="/javascripts/components/correspondance.js") script(src="/javascripts/index.js")