X-Git-Url: https://git.auder.net/pieces/cr.svg?a=blobdiff_plain;ds=sidebyside;f=client%2Fsrc%2Fcomponents%2FMoveList.vue;h=96d67049b64034178643e035ae0319d552a23158;hb=57078452549f252460d45e91b84c7eea40dd3e9c;hp=90b76b43531a33d56434568911d08c4dd5689046;hpb=dac395887d96e2d642b209c6db6aaacc3ffacb34;p=vchess.git
diff --git a/client/src/components/MoveList.vue b/client/src/components/MoveList.vue
index 90b76b43..96d67049 100644
--- a/client/src/components/MoveList.vue
+++ b/client/src/components/MoveList.vue
@@ -1,158 +1,258 @@
+
+div
+ input#modalAdjust.modal(type="checkbox")
+ div#adjuster(
+ role="dialog"
+ data-checkbox="modalAdjust"
+ )
+ .card.text-center
+ label.modal-close(for="modalAdjust")
+ label(for="boardSize") {{ st.tr["Board size"] }}
+ input#boardSize.slider(
+ type="range"
+ min="0"
+ max="100"
+ value="50"
+ @input="adjustBoard()"
+ )
+ #aboveMoves
+ // NOTE: variants pages already have a "Rules" link on top
+ span#rulesBtn(
+ v-if="!$route.path.match('/variants/')"
+ @click="clickRulesBtn()"
+ :class="btnRulesClass"
+ )
+ | {{ st.tr["Rules"] }}
+ button(
+ :class="btnTooltipClass()"
+ onClick="window.doClick('modalAdjust')"
+ :aria-label="st.tr['Resize board']"
+ )
+ img.inline(src="/images/icons/resize.svg")
+ button#analyzeBtn(
+ v-if="canAnalyze"
+ :class="btnTooltipClass()"
+ @click="$emit('analyze')"
+ :aria-label="st.tr['Analyse']"
+ )
+ img.inline(src="/images/icons/analyse.svg")
+ #downloadDiv(v-if="canDownload")
+ a#download(href="#")
+ button(
+ :class="btnTooltipClass()"
+ @click="$emit('download')"
+ :aria-label="st.tr['Download'] + ' PGN'"
+ )
+ img.inline(src="/images/icons/download.svg")
+ #scoreInfo(v-if="score!='*'")
+ span.score {{ score }}
+ span.score-msg {{ st.tr[message] }}
+ .moves-list
+ .tr(v-for="moveIdx in evenNumbers")
+ .td {{ firstNum + moveIdx / 2 }}
+ .td(
+ :class="{'highlight-lm': cursor == moveIdx}"
+ @click="() => gotoMove(moveIdx)"
+ )
+ | {{ notation(moveIdx) }}
+ .td(
+ v-if="moveIdx < moves.length-1"
+ :class="{'highlight-lm': cursor == moveIdx+1}"
+ @click="() => gotoMove(moveIdx+1)"
+ )
+ | {{ notation(moveIdx + 1) }}
+
+