From 5f5d7e29d28705531812ca91371a128e53df27f4 Mon Sep 17 00:00:00 2001 From: Frannerz Date: Mon, 23 Oct 2023 14:32:20 +0100 Subject: [PATCH] columns in correct order --- ny-times.js | 6 +++--- style.css | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ny-times.js b/ny-times.js index 0d0c247..837ddfb 100644 --- a/ny-times.js +++ b/ny-times.js @@ -2,7 +2,7 @@ const apiKey = "mUe2fT4eSndxgMFa9PYAyHeDtCPPhGxx" // Frans latest api = 'mUe2fT4eSndxgMFa9PYAyHeDtCPPhGxx'; // old API = "AzUyLIxzSLLZygRO896Q1msZZGAgH6V5"; -// lucien api = "61ppkdu3vYf9JrgMIljm72BZDuCAt8vO" +const lucienapi = "61ppkdu3vYf9JrgMIljm72BZDuCAt8vO" //The categories of books const categories = [ @@ -96,7 +96,7 @@ function createBestsellersLink(category) { // Function to fetch and display the book list for the selected category function fetchBooksForCategory(category) { - fetch(`https://api.nytimes.com/svc/books/v3/lists/current/${category}.json?api-key=${apiKey}`) + fetch(`https://api.nytimes.com/svc/books/v3/lists/current/${category}.json?api-key=${lucienapi}`) .then((response) => { if (!response.ok) { // if (response.status === 429) { @@ -267,7 +267,7 @@ indexTop5Rendering() function indexTop5Rendering() { const top5Content = document.getElementById("top5-content"); -fetch("https://api.nytimes.com/svc/books/v3/lists/current/combined-print-and-e-book-fiction.json?api-key=mUe2fT4eSndxgMFa9PYAyHeDtCPPhGxx") +fetch(`https://api.nytimes.com/svc/books/v3/lists/current/combined-print-and-e-book-fiction.json?api-key=${lucienapi}`) .then((response) => { if (!response.ok) { diff --git a/style.css b/style.css index c5812b3..d0dc49a 100644 --- a/style.css +++ b/style.css @@ -186,7 +186,7 @@ main { -#genre-section { +#genre-section\ { grid-column: 2; grid-row: 1; border-left: var(--line-m) solid var(--blackest);