London | ITP-JAN-2026 | Said Fayaz Sadat | Sprint 3 | coursework/Quote-generator#1086
London | ITP-JAN-2026 | Said Fayaz Sadat | Sprint 3 | coursework/Quote-generator#1086fayaz551 wants to merge 6 commits intoCodeYourFuture:mainfrom
Conversation
| const quoteTxt = document.querySelector("#quote"); | ||
| const quoteAuthor = document.querySelector("#author"); | ||
| const autoPlay = document.querySelector("#auto-play"); | ||
| const autoPlayTxt = document.querySelector("#auto-play-txt"); |
There was a problem hiding this comment.
On the html page I don't see any button to start autoplay
There was a problem hiding this comment.
updated the code with md file requirement to toggle on/off and show quotes every 60 sec.
| initaliseSite(); | ||
| autoPlay.addEventListener("change", () => { | ||
| if (autoPlay.checked) { | ||
| console.log("ON"); |
There was a problem hiding this comment.
Debugging logs should be removed in the final code
There was a problem hiding this comment.
removed, thanks for pointing it out.
…file to make the toggle auto-play work properly.
| <div class="autoplay-container"> | ||
| <input type="checkbox" id="auto-play" /> | ||
| <label for="auto-play">Enable Auto-Play</label> | ||
|
|
||
| <p id="auto-play-txt">Auto-Play: OFF</p> | ||
| </div> |
There was a problem hiding this comment.
How could you ensure that the code is formatted with the correct indentation?
There was a problem hiding this comment.
by using prettier extension.
updated the file for correct indentation.
Luro91
left a comment
There was a problem hiding this comment.
Well done the code works correctly and is nicely formatted
|
Closing PR because the January ITP run has finished. Feel free to re-open if you're still working on it. |
Learners, PR Template
Self checklist
Changelist
updated the html
styled it with css
implemented DOM to quotes.js
Questions
n/a