X-Git-Url: https://git.auder.net/parser.js?a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FGame.vue;h=30fbc39b9608fca600fbe3ec20b30b5ad2554e6a;hb=dcd68c4108412f45b8ce119ae80ce8f6e296800b;hp=220ddf13f6457cdf908e85e321e3aeff000b9ea1;hpb=6d9f43154dc2374edf5b7b802910783869d66de1;p=vchess.git
diff --git a/client/src/views/Game.vue b/client/src/views/Game.vue
index 220ddf13..30fbc39b 100644
--- a/client/src/views/Game.vue
+++ b/client/src/views/Game.vue
@@ -1,16 +1,28 @@
-.row
- .col-sm-12.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2
- BaseGame(:game="game" :vr="vr" ref="basegame"
- @newmove="processMove" @gameover="gameOver")
- div Names: {{ game.players[0].name }} - {{ game.players[1].name }}
- div(v-if="game.score=='*'") Time: {{ virtualClocks[0] }} - {{ virtualClocks[1] }}
- .button-group(v-if="game.mode!='analyze' && game.score=='*'")
- button(@click="offerDraw") Draw
- button(@click="abortGame") Abort
- button(@click="resign") Resign
- textarea(v-if="game.score=='*'" v-model="corrMsg")
- Chat(:players="game.players")
+main
+ input#modalChat.modal(type="checkbox" @change="toggleChat")
+ div#chatWrap(role="dialog" data-checkbox="modalChat"
+ aria-labelledby="inputChat")
+ #chat.card
+ label.modal-close(for="modalChat")
+ Chat(:players="game.players" :pastChats="game.chats"
+ @newchat-sent="finishSendChat" @newchat-received="processChat")
+ .row
+ #aboveBoard.col-sm-12.col-md-9.col-md-offset-3.col-lg-10.col-lg-offset-2
+ button#chatBtn(onClick="doClick('modalChat')") Chat
+ #actions(v-if="game.mode!='analyze' && game.score=='*'")
+ button(@click="clickDraw" :class="{['draw-' + drawOffer]: true}") Draw
+ button(@click="abortGame") Abort
+ button(@click="resign") Resign
+ #playersInfo
+ p
+ span.name(:class="{connected: isConnected(0)}") {{ game.players[0].name }}
+ span.time(v-if="game.score=='*'") {{ virtualClocks[0] }}
+ span.split-names -
+ span.name(:class="{connected: isConnected(1)}") {{ game.players[1].name }}
+ span.time(v-if="game.score=='*'") {{ virtualClocks[1] }}
+ BaseGame(:game="game" :vr="vr" ref="basegame"
+ @newmove="processMove" @gameover="gameOver")