From d7d5ac63ac12609c08acda0d7bb132fcc2972870 Mon Sep 17 00:00:00 2001 From: efim Date: Wed, 27 Sep 2023 04:15:11 +0000 Subject: [PATCH] feat: saving dark mode on page reload main script is in index, country page template inserts it with fragment by markup selector syntax: https://www.thymeleaf.org/doc/tutorials/3.1/usingthymeleaf.html#appendix-c-markup-selector-syntax and still has some code to work in standalone --- .../src/main/resources/templates/country.html | 29 ++++++++++++++----- .../src/main/resources/templates/index.html | 23 ++++++++++----- 2 files changed, 37 insertions(+), 15 deletions(-) diff --git a/16-countries-page-from-api/src/main/resources/templates/country.html b/16-countries-page-from-api/src/main/resources/templates/country.html index 065b3dd..2676160 100644 --- a/16-countries-page-from-api/src/main/resources/templates/country.html +++ b/16-countries-page-from-api/src/main/resources/templates/country.html @@ -31,7 +31,7 @@

Where in the world?

- -