diff --git a/web/static/scripts/gallery.js b/web/static/scripts/gallery.js index 20f9c99..f652c17 100644 --- a/web/static/scripts/gallery.js +++ b/web/static/scripts/gallery.js @@ -50,13 +50,13 @@ function Wallpaper(data) { let button = document.querySelector(".modal-footer") button.innerHTML = ` - - ` + + ` let setWallpaper = document.querySelector("#setWallpaper") if(data[id-1].media_type === "image") { img.innerHTML = ` - +
Author: ${data[id - 1].copyright}
Date of shooting: ${data[id - 1].date}
Explanation: ${data[id - 1].explanation}
@@ -95,8 +95,6 @@ function Wallpaper(data) { ` setWallpaper.addEventListener("click", function () { - console.log(`https://img.youtube.com/vi/${data[id - 1].url.slice(30,41)}/maxresdefault.jpg`); - $.ajax({ url: `http://localhost:8080/api/update/wallpaper`, type: "POST",