| Practice
button(v-show="gameInProgress" @click="() => stopGame()")
| Stop game
- button(v-if="gameInfo.vname!='Dark'" @click="gotoAnalyze")
+ button(v-if="display=='rules' && gameInfo.vname!='Dark'"
+ @click="gotoAnalyze")
| {{ st.tr["Analyze"] }}
.section-content(v-show="display=='rules'" v-html="content")
ComputerGame(v-show="display=='computer'" :game-info="gameInfo"
// user is willing to stop the game:
stopGame: function(score) {
this.gameInfo.score = score || "?";
- this.gameInfo.mode = "analyze";
},
// The game is effectively stopped:
gameStopped: function() {
};
</script>
-<style lang="sass" scoped>
+<!-- NOTE: not scoped here, because HTML is injected (TODO) -->
+<style lang="sass">
//.section-content
// *
// margin-left: auto