diff options
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") %> |