Skip to content

Commit

Permalink
Merge pull request #64 from FAC29A/make-website-responsive
Browse files Browse the repository at this point in the history
columns in correct order
  • Loading branch information
Luciensday authored Oct 23, 2023
2 parents f98ea15 + 5f5d7e2 commit 36d3876
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions ny-times.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {

Expand Down
2 changes: 1 addition & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ main {



#genre-section {
#genre-section\ {
grid-column: 2;
grid-row: 1;
border-left: var(--line-m) solid var(--blackest);
Expand Down

0 comments on commit 36d3876

Please sign in to comment.