X-Git-Url: https://git.auder.net/images/pieces/%22%20%20V.getPpath%28board%5Bi%5D%5Bj%5D%29%20%20%20%22.svg?a=blobdiff_plain;ds=sidebyside;f=client%2Fsrc%2Fviews%2FGame.vue;h=e16fa2f8b7a8fc7991d4cae61bbc0faba01fb264;hb=050ae3b58673dfa1ed41bf78d935fe95ec9e74c5;hp=920e9c8453e203973beedb2ad89f405ff2df0785;hpb=9d54ab8900b69876c3249b4ed1bfa355dccb7f97;p=vchess.git
diff --git a/client/src/views/Game.vue b/client/src/views/Game.vue
index 920e9c84..e16fa2f8 100644
--- a/client/src/views/Game.vue
+++ b/client/src/views/Game.vue
@@ -1,43 +1,43 @@
-
-.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")
- .button-group(v-if="game.mode!='analyze'")
- button(@click="offerDraw") Draw
- button(@click="abortGame") Abort
- button(@click="resign") Resign
- div(v-if="game.mode=='corr'")
- textarea(v-show="score=='*' && vr.turn==game.mycolor" v-model="corrMsg")
- div(v-show="cursor>=0") {{ moves[cursor].message }}
+main
+ input#modalChat.modal(type="checkbox" @change="toggleChat")
+ div(role="dialog" 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="offerDraw") 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")
-
+