From 7efde2981001e243a435313c632525ee7ba68442 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juhani=20Krekel=C3=A4?= Date: Fri, 8 Jan 2021 21:57:50 +0200 Subject: [PATCH] Add button for flipping the board perspective --- takhta.html | 78 ++++++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 63 insertions(+), 15 deletions(-) diff --git a/takhta.html b/takhta.html index 6b7bbe4..cfa117a 100644 --- a/takhta.html +++ b/takhta.html @@ -11,22 +11,22 @@ td { font-size: 200%; } - .board tbody :nth-child(odd) :nth-child(even) { + #board tbody :nth-child(odd) :nth-child(even) { background-color: #fff; } - .board tbody :nth-child(even) :nth-child(odd) { + #board tbody :nth-child(even) :nth-child(odd) { background-color: #fff; } - .board tbody :nth-child(odd) :nth-child(odd) { + #board tbody :nth-child(odd) :nth-child(odd) { background-color: #999; } - .board tbody :nth-child(even) :nth-child(even) { + #board tbody :nth-child(even) :nth-child(even) { background-color: #999; } - .board tbody :last-child :nth-child(n) { + #board tbody :last-child :nth-child(n) { background-color: unset; } - .board tbody :nth-child(n) :first-child { + #board tbody :nth-child(n) :first-child { background-color: unset; } body { @@ -54,7 +54,7 @@
- +
@@ -165,13 +165,20 @@
8
-
- - - -
+

+

+ + +
+

+

+

+ + +
+

Moves thus far

@@ -181,7 +188,7 @@