- highlightBlackmove: function(moveIdx) {
- return (
- this.cursor == moveIdx ||
- (this.show == "byrow" && this.cursor == moveIdx + 1)
- );
+ btnTooltipClass: function() {
+ return { tooltip: !("ontouchstart" in window) };
+ },
+ clickRulesBtn: function() {
+ const key = "rr_" + this.vname;
+ if (!localStorage.getItem(key)) {
+ localStorage.setItem(key, '1');
+ document.getElementById("rulesBtn").classList.remove("highlightRules");
+ }
+ this.$emit("showrules");