Skip to content

London | 26-ITP-Jan | Zadri Abdule | Sprint 3 | Quote Generator App - #1145

Closed
Zadri415 wants to merge 1 commit into
CodeYourFuture:mainfrom
Zadri415:sprint-3/quote-generator
Closed

London | 26-ITP-Jan | Zadri Abdule | Sprint 3 | Quote Generator App#1145
Zadri415 wants to merge 1 commit into
CodeYourFuture:mainfrom
Zadri415:sprint-3/quote-generator

Conversation

@Zadri415

Copy link
Copy Markdown

Learners, PR Template

Self checklist

  • I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
  • My changes meet the requirements of the task
  • I have tested my changes
  • My changes follow the style guide

Changelist

quotes.js — added window.onload wiring: generateQuote(), New Quote button handler, Auto‑Play checkbox handling.
style.css — replaced/fixed CSS and applied a yellow/mustard palette for background, accents and buttons.

Questions

N/A

@github-actions

This comment has been minimized.

@Zadri415 Zadri415 changed the title London | 26-ITP-Jan | Zadri Abdule | Sprint-3 | Quote Generator App London | 26-ITP-Jan | Zadri Abdule | Sprint 3 | Quote Generator App Mar 29, 2026
@Zadri415 Zadri415 added 📅 Sprint 3 Assigned during Sprint 3 of this module Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. Module-Data-Groups The name of the module. labels Mar 29, 2026
@Luro91 Luro91 added Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Apr 6, 2026
Comment on lines +39 to +48
if (autoPlayCheckbox) {
autoPlayCheckbox.addEventListener("change", (event) => {
if (event.target.checked) {
if (autoPlayStatus) autoPlayStatus.innerText = "Auto-Play: ON";
autoPlayInterval = setInterval(generateQuote, 5000);
} else {
if (autoPlayStatus) autoPlayStatus.innerText = "Auto-Play: OFF";
clearInterval(autoPlayInterval);
}
});

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see the autoplay checkbox on the web page

function getRandomQuote(obj) {
const quoteEl = document.getElementById("quote");
const authorEl = document.getElementById("author");
if (!quoteEl || !authorEl) return;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice that you ensure the elements exist before using them

@Luro91 Luro91 added Reviewed Volunteer to add when completing a review with trainee action still to take. and removed Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. labels Apr 6, 2026
@illicitonion

Copy link
Copy Markdown
Member

Closing PR because the January ITP run has finished. Feel free to re-open if you're still working on it.

@Zadri415
Zadri415 deleted the sprint-3/quote-generator branch June 30, 2026 11:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Module-Data-Groups The name of the module. Reviewed Volunteer to add when completing a review with trainee action still to take. 📅 Sprint 3 Assigned during Sprint 3 of this module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants