diff options
author | Julien Dessaux | 2022-10-23 23:29:46 +0200 |
---|---|---|
committer | Julien Dessaux | 2022-10-23 23:29:46 +0200 |
commit | cd33314d50986c5b143bf579d47f5ffdbe922e0f (patch) | |
tree | 1d90e2656f968a919dd4fa3f6063f0baf6ffb9f8 /views | |
parent | Began writing an express backend (diff) | |
download | jeux-de-mots-cd33314d50986c5b143bf579d47f5ffdbe922e0f.tar.gz jeux-de-mots-cd33314d50986c5b143bf579d47f5ffdbe922e0f.tar.bz2 jeux-de-mots-cd33314d50986c5b143bf579d47f5ffdbe922e0f.zip |
Get started with ejs templating
Diffstat (limited to 'views')
-rw-r--r-- | views/index.ejs | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/views/index.ejs b/views/index.ejs index f3784a2..4e691f7 100644 --- a/views/index.ejs +++ b/views/index.ejs @@ -42,27 +42,6 @@ <p id="remaining_letters"></p> </main> </body> - <script> - var CWDATA = { - board: [ - [ "", "", "", "", "","", "", "", "", "","", "", "", "", "" ], - [ "", "", "", "", "","", "", "", "", "","", "", "", "", "" ], - [ "", "", "", "", "","", "", "", "", "","", "", "", "", "" ], - [ "", "", "", "", "","", "", "", "", "","", "", "", "", "" ], - [ "", "", "", "", "","", "", "", "", "","", "", "", "", "" ], - [ "", "", "", "", "","", "", "", "", "","", "", "", "", "" ], - [ "", "", "", "", "","", "", "", "", "","", "", "", "", "" ], - [ "", "", "", "", "","", "", "T", "E", "S","T", "", "", "", "" ], - [ "", "", "", "", "","", "", "", "", "","", "", "", "", "" ], - [ "", "", "", "", "","", "", "", "", "","", "", "", "", "" ], - [ "", "", "", "", "","", "", "", "", "","", "", "", "", "" ], - [ "", "", "", "", "","", "", "", "", "","", "", "", "", "" ], - [ "", "", "", "", "","", "", "", "", "","", "", "", "", "" ], - [ "", "", "", "", "","", "", "", "", "","", "", "", "", "" ], - [ "", "", "", "", "","", "", "", "", "","", "", "", "", "" ] - ], - letters: [ "A", "B", "C", "D", "E", "F", "JOKER" ] - }; - </script> + <script>var CWDATA = <%- JSON.stringify(CWDATA) %>;</script> <script type="module" src="index.js"></script> </html> |