From 59a8e6dddbaf94b4bea8ead98ca673f9ce060218 Mon Sep 17 00:00:00 2001 From: OCC Date: Sat, 24 Jan 2026 21:01:00 +0100 Subject: [PATCH] feat: complete reading list with dynamic elements and colors --- Sprint-3/reading-list/script.js | 69 ++++++++++++++++++++++++++++++++- 1 file changed, 68 insertions(+), 1 deletion(-) diff --git a/Sprint-3/reading-list/script.js b/Sprint-3/reading-list/script.js index 6024d73a0..89b98739b 100644 --- a/Sprint-3/reading-list/script.js +++ b/Sprint-3/reading-list/script.js @@ -1,4 +1,69 @@ -// for the tests, do not modify this array of books +function readingList(books) { + // Находим главный контейнер на странице + const content = document.querySelector("#content"); + + // Создаем заголовок страницы (необязательно, но красиво) + const pageTitle = document.createElement("h1"); + pageTitle.innerText = "My Reading List"; + content.appendChild(pageTitle); + + // 1. Создаем основной элемент списка