diff options
author | Julien Dessaux | 2022-11-22 22:55:36 +0100 |
---|---|---|
committer | Julien Dessaux | 2022-11-22 22:55:36 +0100 |
commit | 038c877aed55cffdb4401a4c7e7b15b113798145 (patch) | |
tree | e2902779e76ba8bd60b63be0e512a3c112530d68 /views/game.ejs | |
parent | Added basic games handling (diff) | |
download | jeux-de-mots-038c877aed55cffdb4401a4c7e7b15b113798145.tar.gz jeux-de-mots-038c877aed55cffdb4401a4c7e7b15b113798145.tar.bz2 jeux-de-mots-038c877aed55cffdb4401a4c7e7b15b113798145.zip |
Implemented game creation
Diffstat (limited to 'views/game.ejs')
-rw-r--r-- | views/game.ejs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/views/game.ejs b/views/game.ejs index e1fab41..7fae405 100644 --- a/views/game.ejs +++ b/views/game.ejs @@ -27,10 +27,10 @@ </aside> </p> <p> -<span id="player_1_name">player one name</span>: <span class="player_name" id="player_1_points">0</span><br> -<span id="player_2_name">player two name</span>: <span class="player_name" id="player_2_points">0</span> +<span id="player_1_name"><%- data.player1.username %></span>: <span class="player_name" id="player_1_points"><%- data.player1.score %></span><br> +<span id="player_2_name"><%- data.player2.username %></span>: <span class="player_name" id="player_2_points"><%- data.player2.score %></span> </p> <p id="remaining_letters"></p> -<script>var CWDATA = <%- CWDATA.data %></script> +<script>var CWDATA = <%- JSON.stringify(data) %></script> <script type="module" src="/static/index.js"></script> <%- include("footer") %> |