X-Git-Url: https://git.auder.net/doc/screen_pairings_scoring.png?a=blobdiff_plain;f=client%2Fsrc%2Fcomponents%2FMoveList.vue;h=f41e7e2e0280d608808954b8fe0ed291082e4fe0;hb=f35b9960e1c527fc400ebac85321bd4712459da3;hp=73c10f0fbf771c87084fa030e009effa547aab71;hpb=144c900354f828ff2321a94db364bf436bff4586;p=vchess.git
diff --git a/client/src/components/MoveList.vue b/client/src/components/MoveList.vue
index 73c10f0f..f41e7e2e 100644
--- a/client/src/components/MoveList.vue
+++ b/client/src/components/MoveList.vue
@@ -1,88 +1,164 @@
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()"
+ )
+ div#boardSizeBtnContainer
+ button#boardSizeBtn(onClick="window.doClick('modalAdjust')")
+ | {{ st.tr["Set board size"] }}
#scoreInfo(v-if="score!='*'")
p {{ score }}
- p {{ message }}
- table.moves-list
- tbody
- tr(v-for="gmove,index in groupedMoves")
- td(v-if="index%2==0")
- | {{ firstNum + index / 2 + 1 }}
- td(:class="{'highlight-lm': cursor == moveIdx}"
- @click="() => gotoMove(moveIdx)")
- | {{ moves[moveIdx].notation }}
- td(v-if="moveIdx < moves.length-1"
- :class="{'highlight-lm': cursor == moveIdx+1}"
- @click="() => gotoMove(moveIdx+1)")
- | {{ moves[moveIdx+1].notation }}
- // Else: just add an empty cell
- td(v-else)
+ p {{ st.tr[message] }}
+ .moves-list(v-if="show != 'none'")
+ .tr(v-for="moveIdx in evenNumbers")
+ .td {{ firstNum + moveIdx / 2 + 1 }}
+ .td(v-if="moveIdx < moves.length-1 || show == 'all'"
+ :class="{'highlight-lm': cursor == moveIdx}"
+ @click="() => gotoMove(moveIdx)"
+ )
+ | {{ notation(moves[moveIdx]) }}
+ .td(
+ v-if="moveIdx < moves.length-1"
+ :class="{'highlight-lm': cursor == moveIdx+1}"
+ @click="() => gotoMove(moveIdx+1)"
+ )
+ | {{ notation(moves[moveIdx+1]) }}