From 3b14992b09a0fec34981110a5a028ccea501af29 Mon Sep 17 00:00:00 2001 From: Redume Date: Mon, 19 Sep 2022 13:25:20 +0300 Subject: [PATCH] delete garbage and add --- web/static/scripts/gallery.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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 = ` - ${data[id - 1].title} + ${data[id - 1].title}

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",