From 2cf187ae8af4ce7d56ff2bbcf4f536eedd0c9863 Mon Sep 17 00:00:00 2001 From: Khaliun Baatarkhuu Date: Sun, 26 Jul 2026 21:56:17 +0100 Subject: [PATCH 1/5] changed the title element in the html file --- Sprint-3/alarmclock/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sprint-3/alarmclock/index.html b/Sprint-3/alarmclock/index.html index 48e2e80d9..ff2d3b453 100644 --- a/Sprint-3/alarmclock/index.html +++ b/Sprint-3/alarmclock/index.html @@ -4,7 +4,7 @@ - Title here + Alarm clock app
From ddbb891954a1088a021ff8d9aff81793529fe8de Mon Sep 17 00:00:00 2001 From: Khaliun Baatarkhuu Date: Sun, 26 Jul 2026 22:24:24 +0100 Subject: [PATCH 2/5] Revert "changed the title element in the html file" This reverts commit 2cf187ae8af4ce7d56ff2bbcf4f536eedd0c9863. --- Sprint-3/alarmclock/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sprint-3/alarmclock/index.html b/Sprint-3/alarmclock/index.html index ff2d3b453..48e2e80d9 100644 --- a/Sprint-3/alarmclock/index.html +++ b/Sprint-3/alarmclock/index.html @@ -4,7 +4,7 @@ - Alarm clock app + Title here
From 72ced8af977574e6242d80464b982b6c9510733f Mon Sep 17 00:00:00 2001 From: Khaliun Baatarkhuu Date: Mon, 3 Aug 2026 22:12:01 +0100 Subject: [PATCH 3/5] Change title to 'Quote generator app' --- Sprint-3/quote-generator/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sprint-3/quote-generator/index.html b/Sprint-3/quote-generator/index.html index 30b434bcf..5f6a720f1 100644 --- a/Sprint-3/quote-generator/index.html +++ b/Sprint-3/quote-generator/index.html @@ -3,7 +3,7 @@ - Title here + Quote generator app From 6d4e004ad16c7f22478c2c6a59b2e79673d1422c Mon Sep 17 00:00:00 2001 From: Khaliun Baatarkhuu Date: Tue, 4 Aug 2026 22:27:43 +0100 Subject: [PATCH 4/5] Add quote display functionality with button --- Sprint-3/quote-generator/quotes.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/Sprint-3/quote-generator/quotes.js b/Sprint-3/quote-generator/quotes.js index 4a4d04b72..1bc73026f 100644 --- a/Sprint-3/quote-generator/quotes.js +++ b/Sprint-3/quote-generator/quotes.js @@ -491,3 +491,22 @@ const quotes = [ ]; // call pickFromArray with the quotes array to check you get a random quote + + +const quoteElement = document.getElementById("quote"); +const authorElement = document.getElementById("author"); +const newQuoteButton = document.getElementById("new-quote"); + + +function displayQuote() { + const randomQuote = pickFromArray(quotes); + + quoteElement.textContent = `"${randomQuote.quote}"`; + authorElement.textContent = `- ${randomQuote.author}`; +} + + +displayQuote(); + + +newQuoteButton.addEventListener("click", displayQuote); From f7887b8221a3b472a212820bd69291a538501e57 Mon Sep 17 00:00:00 2001 From: Khaliun Baatarkhuu Date: Tue, 4 Aug 2026 22:29:56 +0100 Subject: [PATCH 5/5] Remove unnecessary quotes in displayQuote function --- Sprint-3/quote-generator/quotes.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sprint-3/quote-generator/quotes.js b/Sprint-3/quote-generator/quotes.js index 1bc73026f..21a56ec03 100644 --- a/Sprint-3/quote-generator/quotes.js +++ b/Sprint-3/quote-generator/quotes.js @@ -501,8 +501,8 @@ const newQuoteButton = document.getElementById("new-quote"); function displayQuote() { const randomQuote = pickFromArray(quotes); - quoteElement.textContent = `"${randomQuote.quote}"`; - authorElement.textContent = `- ${randomQuote.author}`; + quoteElement.textContent = randomQuote.quote; + authorElement.textContent = randomQuote.author; }