Skip to content

Commit

Permalink
Fixed problemer med en dekkedne bakgrunn. Mangler nå mobil responsivi…
Browse files Browse the repository at this point in the history
…tet for å være nesten i boks
  • Loading branch information
saleemtoure committed Dec 22, 2024
1 parent e33703d commit 9a38d0a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ const spreadsheetId = "1t4fglWfkJVbSddoe976eucCISS4s8W_4h4zj-R-mk0s";
const sheetId = 0; //Første tab = 0 andre er 1 osv
const sheetName = "nylige"; //Første tab = 0 andre er 1 osv
const restrictedApiKey = "AIzaSyBDQw9Woru2ooYmmsjnRh564xlVYyeYQww";
// const url = `https://sheets.googleapis.com/v4/spreadsheets/${spreadsheetId}/values/${sheetName}?key=${restrictedApiKey}`; Slutta å funke for some reason skal væreriktikg backticks
// const url = `https://sheets.googleapis.com/v4/spreadsheets/${spreadsheetId}/values/${sheetName}?key=${restrictedApiKey}`; Slutta å funke for some reason veldig random
const url = `https://sheets.googleapis.com/v4/spreadsheets/1t4fglWfkJVbSddoe976eucCISS4s8W_4h4zj-R-mk0s/values/nylige?key=AIzaSyBDQw9Woru2ooYmmsjnRh564xlVYyeYQww`;
// Fun fact du kan ikke bruke "" med template literals, men må bruke backtick . Hadde vært fint å huske for 12 timer siden
//* Fun fact du kan ikke bruke "" med template literals, men må bruke backtick . Hadde vært fint å huske for 12 timer siden

class Bok {
constructor(tittel, nr, forfatter, pris, antall, bildeUrl, beskrivelse, igLink) {
Expand Down Expand Up @@ -149,7 +149,7 @@ function searchBarSetup() {

const searchBar = document.getElementById("searchBar");
const antallTreff = document.getElementById("antallTreff")
antallTreff.innerHTML = "Våre nyligste bøker";
antallTreff.innerHTML = "Våre nyligste bøker:";

searchBar.addEventListener("input", function () {
const search = searchBar.value.toLowerCase();
Expand Down

0 comments on commit 9a38d0a

Please sign in to comment.