summaryrefslogtreecommitdiff
path: root/app.js
diff options
context:
space:
mode:
authorTinWoodman92 <chrhodgden@gmail.com>2024-01-15 20:31:20 -0600
committerTinWoodman92 <chrhodgden@gmail.com>2024-01-15 20:31:20 -0600
commit067b447b98a01fbfd4338c29ae5affc7edf5f9f7 (patch)
tree0d16a8e9c75e8f4289e83bca837503ed2036e84c /app.js
parent4f41c8fce448933e88965833feff0fb3faab79b5 (diff)
adding X & O vectorsdev
Diffstat (limited to 'app.js')
-rw-r--r--app.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/app.js b/app.js
index 158168b..3007f69 100644
--- a/app.js
+++ b/app.js
@@ -1,5 +1,13 @@
console.log('Hello from app.js');
+fetch('svg/x.svg')
+ .then(response => response.text())
+ .then(fileContents => {
+ console.log(fileContents);
+ })
+ .catch(error => console.error('Error reading the file:', error));
+
+
const turns = {true: 'X', false: 'O'};
const getXBoard = function() {