projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix Apocalypse (again...), moveslist highlighting and get a first working draft of...
[vchess.git]
/
client
/
src
/
components
/
MoveList.vue
diff --git
a/client/src/components/MoveList.vue
b/client/src/components/MoveList.vue
index
91d138e
..
6eaf43c
100644
(file)
--- a/
client/src/components/MoveList.vue
+++ b/
client/src/components/MoveList.vue
@@
-53,7
+53,7
@@
div
| {{ notation(moves[moveIdx]) }}
.td(
v-if="moveIdx < moves.length-1"
| {{ notation(moves[moveIdx]) }}
.td(
v-if="moveIdx < moves.length-1"
- :class="{'highlight-lm': highlightBlackmove(moveIdx)}"
+ :class="{'highlight-lm': highlightBlackmove(moveIdx
+1
)}"
@click="() => gotoMove(moveIdx+1)"
)
| {{ notation(moves[moveIdx+1]) }}
@click="() => gotoMove(moveIdx+1)"
)
| {{ notation(moves[moveIdx+1]) }}
@@
-139,8
+139,8
@@
export default {
},
highlightBlackmove: function(moveIdx) {
return (
},
highlightBlackmove: function(moveIdx) {
return (
- this.cursor == moveIdx
+ 1
||
- (this.show == "byrow" && this.cursor == moveIdx +
2
)
+ this.cursor == moveIdx ||
+ (this.show == "byrow" && this.cursor == moveIdx +
1
)
);
},
gotoMove: function(index) {
);
},
gotoMove: function(index) {