From c557569b8d24c6bcea25e42aa8eaa9a8e28cfd97 Mon Sep 17 00:00:00 2001 From: Maksim Tananykin Date: Tue, 18 Oct 2022 00:34:21 +0300 Subject: [PATCH] fixed bugs --- css/style.css | 2 ++ script.js | 11 ++++++++--- style.scss | 2 ++ 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/css/style.css b/css/style.css index 8305f2d..fa64050 100644 --- a/css/style.css +++ b/css/style.css @@ -247,6 +247,8 @@ main { } .card .more { text-decoration: underline; + display: inline; + color: rgb(30, 93, 189); } .card .themes { margin: 5px 0; diff --git a/script.js b/script.js index 0580bdf..16b9a0f 100644 --- a/script.js +++ b/script.js @@ -145,7 +145,9 @@ cardsToShow.forEach((card, index) => {

${card.title}

- ${card.describe} См. подробнее... + ${ + card.describe + }

${card.time}

@@ -154,11 +156,14 @@ cardsToShow.forEach((card, index) => { `; - subscribe = document.querySelectorAll(".subscribe"); - document.querySelector(".cards").append(div); }); +subscribe = [ + ...document.querySelectorAll(".subscribe"), + ...document.querySelectorAll(".more"), +]; + subscribe.forEach((el) => { el.addEventListener("click", () => { console.log(el.value); diff --git a/style.scss b/style.scss index 5270a0f..a952891 100644 --- a/style.scss +++ b/style.scss @@ -257,6 +257,8 @@ main { .more { text-decoration: underline; + display: inline; + color: rgb(30, 93, 189); } .themes {