From 9e8ad0f17e7b62886e09b58ed89245b8df46d6dc Mon Sep 17 00:00:00 2001 From: ElGurkus Date: Mon, 2 Nov 2020 10:01:45 +0100 Subject: [PATCH 1/2] changed style -> basic table design --- style.css | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/style.css b/style.css index e69de29..f7f198c 100644 --- a/style.css +++ b/style.css @@ -0,0 +1,18 @@ +#gameTable{ + position: absolute; + transform: translate(-50%, -50%); + left: 50%; + top: 50%; +} +.game{ + border: solid black 0.1em; + border-collapse: collapse; +} +.fields{ + width: 3em; + height: 3em; +} +body{ + text-align: center; + justify-content: center; +} \ No newline at end of file From 9a4c6bea4a3e563a27dbda3d311ba2f04b942372 Mon Sep 17 00:00:00 2001 From: ElGurkus Date: Mon, 2 Nov 2020 10:13:24 +0100 Subject: [PATCH 2/2] changed code -> added empty function changed index -> added onclick call for said function with (this) parameter --- code.js | 3 ++ index.html | 128 ++++++++++++++++++++++++++--------------------------- 2 files changed, 67 insertions(+), 64 deletions(-) diff --git a/code.js b/code.js index e69de29..2232eb5 100644 --- a/code.js +++ b/code.js @@ -0,0 +1,3 @@ +function selectField(field){ + +} \ No newline at end of file diff --git a/index.html b/index.html index 24b425f..605bf1d 100644 --- a/index.html +++ b/index.html @@ -9,84 +9,84 @@ - - - - - - - - + + + + + + + + - - - - - - - - + + + + + + + + - - - - - - - - + + + + + + + + - - - - - - - - + + + + + + + + - - - - - - - - + + + + + + + + - - - - - - - - + + + + + + + + - - - - - - - - + + + + + + + + - - - - - - - - + + + + + + + +