diff --git a/internal/build/web/index.html b/internal/build/web/index.html deleted file mode 100644 index f6386c1..0000000 --- a/internal/build/web/index.html +++ /dev/null @@ -1,90 +0,0 @@ - - - - - - An Aidoku source list - - - - - - - - - - - -
-

An Aidoku source list

- Add to Aidoku -
-
- On a device with Aidoku installed, tap Add to Aidoku - or use the base URL to add this source list. -
-
-

Base URL:

-

-
-
-

Sources

- - - -
- - diff --git a/internal/build/web/scripts/index.js b/internal/build/web/scripts/index.js index a1a053e..b895afa 100644 --- a/internal/build/web/scripts/index.js +++ b/internal/build/web/scripts/index.js @@ -84,11 +84,9 @@ this.loading = LoadingStatus.Error; } - if (w.location.hash) { - this.$nextTick(() => { - w.location.replace(w.location.hash); - }); - } + this.$nextTick(() => { + window.location.hash && window.location.replace(window.location.hash); + }); }, updateFilteredList() { diff --git a/internal/build/web/styles/index.css b/internal/build/web/styles/index.css index f5db949..be3f3f3 100644 --- a/internal/build/web/styles/index.css +++ b/internal/build/web/styles/index.css @@ -29,7 +29,10 @@ body { margin: 0.75rem auto; max-width: 42rem; - opacity: 0; +} + +:not(:defined) { + visibility: hidden; } @media only screen and (max-width: 767px) { @@ -44,11 +47,6 @@ body { } } - -body.ready { - opacity: 1; -} - header { margin: 1rem auto; @@ -136,6 +134,12 @@ header p { padding: 0.5rem 0.5rem; } +.sources__item:target { + background-color: rgba(255, 55, 95, 0.25); + border-radius: 0.5rem; + transition: background-color .5s; +} + @media (min-width: 1024px) { .sources__item { padding-left: 1.5rem;