Skip to content
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

NW6 | Fathi Kahin | JS2 | slideshow | Week 3 #195

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

Conversation

fhkahin
Copy link

@fhkahin fhkahin commented Jan 17, 2024

Learners, PR Template

Self checklist

  • I have committed my files one by one, on purpose, and for a reason
  • I have titled my PR with COHORT_NAME | FIRST_NAME LAST_NAME | REPO_NAME | WEEK
  • I have tested my changes
  • My changes follow the style guide
  • My changes meet the requirements of this task

Changelist

Briefly explain your PR.

Questions

Ask any questions you have for your reviewer.

Copy link

netlify bot commented Jan 17, 2024

Deploy Preview for cute-gaufre-e4b4e5 ready!

Name Link
🔨 Latest commit 6ada2ae
🔍 Latest deploy log https://app.netlify.com/sites/cute-gaufre-e4b4e5/deploys/65a7e8d9c1d5570008205fcc
😎 Deploy Preview https://deploy-preview-195--cute-gaufre-e4b4e5.netlify.app/week-3/slideshow
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

@eliza-an eliza-an left a comment

Choose a reason for hiding this comment

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

Good work FathI! INteresting structure as well. For the future, try to name elements something that is easy to understand rather than something generic like num as this doesnt tell the reviewer much intformation about what it is exatly>

Another thing, in the final demo they showed, they have a counter of which image you are on. I didnt manage to find that feature in the instructions and your code doesnt hav that feature implemented. Feel free to implement it and we can look over again>
Well done!

<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="/week-3/slideshow/style.css">
<title>Slideshow</title>

Choose a reason for hiding this comment

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

image
Be very careful when readinginstructions! The title should have been image carousel!

let num = 0;
imageSelector.style.width = "600px";

Choose a reason for hiding this comment

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

i would definitely do this in css! It works here, you might just want to keep JS seperate for functionality

let num = 0;

Choose a reason for hiding this comment

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

I am nitpicking here, but in a perfect world, we dont want to have global variables. ALl the variables you want to use should be defined in a function. Agsin this works fine, just a note for later!

num++;
if (num === images.length) {
num = 0;

Choose a reason for hiding this comment

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

Im not quite sure what num is supposed to be. For the future, tru to name variables something people can understand just by looking at your code!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants