Skip to content

Sheffield|May-2025|Sheida Shabankari|Module-Data -Groups| Sprint-3|Quote generator #638

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

sheida-shab
Copy link

  • I have committed my files one by one, on purpose, and for a reason
  • I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
  • I have tested my changes
  • My changes follow the style guide
  • My changes meet the requirements of this task

First ,I have showed qoute and author on screen by clicking the button ,next add a chekbox and if it is checked display the text automatically every 5 second and stop with uncheck ed the checkbox.
Also , I have runned the test cases and all of them passed.

@sheida-shab sheida-shab added the Needs Review Participant to add when requesting review label Jul 17, 2025
Copy link
Contributor

@cjyuan cjyuan left a comment

Choose a reason for hiding this comment

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

Code is good.

If you are interested in improving the readability of your code, you could check out the CYF's style guide: a https://curriculum.codeyourfuture.io/guides/reviewing/style-guide/

Comment on lines +506 to +515
document.getElementById("auto-play").addEventListener("change",(event)=>{
if (event.target.checked){
//console.log("auto-play is on");
document.getElementById("auto-play-label").textContent = "auto-play : ON";
intervalId=setInterval(pickAndDisplayQuote,5000);
}else{
document.getElementById("auto-play-label").textContent = "auto-play : OFF";
clearInterval(intervalId);
}
});
Copy link
Contributor

Choose a reason for hiding this comment

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

Can probably insert some space around operators and punctuations in the code at lines 506-511 to improve their readability (like what you did in lines 495-500).

@cjyuan cjyuan added Reviewed Volunteer to add when completing a review and removed Needs Review Participant to add when requesting review labels Jul 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Reviewed Volunteer to add when completing a review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants