From ade4dfd1d239a4cf855b7545727d8a7f0421b0f5 Mon Sep 17 00:00:00 2001 From: Campbell Alden Date: Fri, 2 Sep 2022 19:33:04 +0900 Subject: [PATCH] PUBLISH --- docs/genres/index.html | 68 ++++++++++----------- docs/review.css | 11 ++++ docs/reviews/kingsman/index.html | 1 + docs/reviews/no-reservations/index.html | 1 + docs/reviews/the-french-dispatch/index.html | 1 + docs/search.js | 4 ++ layouts/partials/search.html | 0 static/search.js | 4 ++ 8 files changed, 56 insertions(+), 34 deletions(-) delete mode 100644 layouts/partials/search.html diff --git a/docs/genres/index.html b/docs/genres/index.html index c53e626..2015fb8 100644 --- a/docs/genres/index.html +++ b/docs/genres/index.html @@ -115,6 +115,30 @@
+
+
+ The French Dispatch + +
+
+
+

The French Dispatch

+
+
Authors for a New Yorker-esque magazine report on a small town in France
+
+
+ imbd logo + 7.2 +
+ +
+
+ +
Kingsman: The Secret Service @@ -139,6 +163,16 @@
+
+ + +
+
+

Drama

+ See more +
+
+
The French Dispatch @@ -163,16 +197,6 @@
-
-
- -
-
-

Drama

- See more -
-
-
No Reservations @@ -197,30 +221,6 @@
-
-
- The French Dispatch - -
-
-
-

The French Dispatch

-
-
Authors for a New Yorker-esque magazine report on a small town in France
-
-
- imbd logo - 7.2 -
- -
-
- -
diff --git a/docs/review.css b/docs/review.css index 529a2c4..0833521 100644 --- a/docs/review.css +++ b/docs/review.css @@ -19,6 +19,7 @@ } .review-poster { + position: relative; aspect-ratio: 1/1; flex-basis: 200px; max-width: 200px; @@ -32,3 +33,13 @@ height: 100%; object-fit: cover; } + +.review-favorite { + position: absolute; + display: flex; + right: 10px; + top: 10px; + padding: 10px; + background: rgba(255,255,255,0.25); + border-radius: 100%; +} diff --git a/docs/reviews/kingsman/index.html b/docs/reviews/kingsman/index.html index ea40813..9084513 100644 --- a/docs/reviews/kingsman/index.html +++ b/docs/reviews/kingsman/index.html @@ -50,6 +50,7 @@
Poster +

Kingsman: The Secret Service

diff --git a/docs/reviews/no-reservations/index.html b/docs/reviews/no-reservations/index.html index 92381c7..d3cf531 100644 --- a/docs/reviews/no-reservations/index.html +++ b/docs/reviews/no-reservations/index.html @@ -50,6 +50,7 @@
Poster +

No Reservations

diff --git a/docs/reviews/the-french-dispatch/index.html b/docs/reviews/the-french-dispatch/index.html index ae7b6ca..a3e04c4 100644 --- a/docs/reviews/the-french-dispatch/index.html +++ b/docs/reviews/the-french-dispatch/index.html @@ -50,6 +50,7 @@
Poster +

The French Dispatch

diff --git a/docs/search.js b/docs/search.js index 0d5bec5..c06afec 100644 --- a/docs/search.js +++ b/docs/search.js @@ -1,8 +1,12 @@ const searchInput = document.getElementById('movie-search'); const datalist = document.getElementById('movies'); const dataitems = new Map(); +const dataSummaries = new Map(); Array.from(datalist.children).forEach(function (ch) { dataitems.set(ch.value, ch.getAttribute('data-value')); + if (navigator.userAgent.match(/firefox/i)) { + ch.innerHTML = ch.value; + } }); searchInput.addEventListener('change', function(e) { diff --git a/layouts/partials/search.html b/layouts/partials/search.html deleted file mode 100644 index e69de29..0000000 diff --git a/static/search.js b/static/search.js index 0d5bec5..c06afec 100644 --- a/static/search.js +++ b/static/search.js @@ -1,8 +1,12 @@ const searchInput = document.getElementById('movie-search'); const datalist = document.getElementById('movies'); const dataitems = new Map(); +const dataSummaries = new Map(); Array.from(datalist.children).forEach(function (ch) { dataitems.set(ch.value, ch.getAttribute('data-value')); + if (navigator.userAgent.match(/firefox/i)) { + ch.innerHTML = ch.value; + } }); searchInput.addEventListener('change', function(e) {