From ff5fc6e5d4b1b429debc59d121a1afd4169cc8db Mon Sep 17 00:00:00 2001 From: Zdthomas Date: Mon, 28 Aug 2023 23:06:43 -0500 Subject: [PATCH] Move to Github --- index.html | 17 ++++++++++++++--- scripts.js | 4 +++- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index 19d0dee..9a49bb5 100644 --- a/index.html +++ b/index.html @@ -6,7 +6,7 @@ - +
@@ -20,12 +20,23 @@

Welcome to Tic Tac Toe

- - + + + + + + + + + + + +
+ diff --git a/scripts.js b/scripts.js index ba09e74..c3db873 100644 --- a/scripts.js +++ b/scripts.js @@ -50,7 +50,7 @@ const addMarker = (id) => { // .getElementById(id) // document // .innerHTML - + document.getElementById(id).innerHTML = currentMarker changeMarker() } @@ -93,6 +93,8 @@ const resetBoard = () => { // = // document // const + + const squares = document.getElementsByTagName("TD") // loops over the HTML Collection of TDs and clears out the Xs and Os for (i=0; i < squares.length; i++) {