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

Feedback #1

Open
wants to merge 38 commits into
base: feedback
Choose a base branch
from
Open

Feedback #1

wants to merge 38 commits into from

Conversation

github-classroom[bot]
Copy link

@github-classroom github-classroom bot commented Aug 14, 2023

👋! GitHub Classroom created this pull request as a place for your teacher to leave feedback on your work. It will update automatically. Don’t close or merge this pull request, unless you’re instructed to do so by your teacher.
In this pull request, your teacher can leave comments and feedback on your code. Click the Subscribe button to be notified if that happens.
Click the Files changed or Commits tab to see all of the changes pushed to master since the assignment started. Your teacher can see this too.

Notes for teachers

Use this PR to leave feedback. Here are some tips:

  • Click the Files changed tab to see all of the changes pushed to master since the assignment started. To leave comments on specific lines of code, put your cursor over a line of code and click the blue + (plus sign). To learn more about comments, read “Commenting on a pull request”.
  • Click the Commits tab to see the commits pushed to master. Click a commit to see specific changes.
  • If you turned on autograding, then click the Checks tab to see the results.
  • This page is an overview. It shows commits, line comments, and general comments. You can leave a general comment below.
    For more information about this pull request, read “Leaving assignment feedback in GitHub”.

Subscribed: @fketta @ismail-benlaredj @hocine1212 @ikoworld @Ben-Tewfik @mounibzaidi

@netlify
Copy link

netlify bot commented Aug 20, 2023

Deploy Preview for jumanji-recoded ready!

Name Link
🔨 Latest commit e0438ab
🔍 Latest deploy log https://app.netlify.com/sites/jumanji-recoded/deploys/6560b29bcd659600083a91c9
😎 Deploy Preview https://deploy-preview-1--jumanji-recoded.netlify.app
📱 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

@hiba-machfej hiba-machfej left a comment

Choose a reason for hiding this comment

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

Great overall project! You have worked so much on the project, like the design and JS implementation. Minor things include adding comments to your code or having a consistent class style.

Other than that great work team!

<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<title>Jumanji | Madlibs</title>

Choose a reason for hiding this comment

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

It's great that you added a meaningful title for the web page.

<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<title>Jumanji | Madlibs</title>
<link rel="preconnect" href="https://fonts.googleapis.com" />

Choose a reason for hiding this comment

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

It's generally better to add Google Fonts to your CSS file rather than directly in your HTML file.

<div class='madLibsPreview'>
</div>
<div id="content" class="content hidden">
<div class="logoContainer">

Choose a reason for hiding this comment

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

I see some classes are using kebab-case and others are using camelCase. It's good to stick to one system.

</div>
</div>
</div>
<audio id="sound">

Choose a reason for hiding this comment

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

I loved that you added sound to your project!

<button class="start-btn" onclick="startBtn()">Start</button>
<div class="sound-btn" onclick="soundBtn()">
<div class="checkbox">
<img src="assets/icons8-checkmark-96.svg" alt="check icon" />

Choose a reason for hiding this comment

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

It's great that all your images have alt attributes for accessibility.

</head>

<body>
<div id="loading" class="loading">

Choose a reason for hiding this comment

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

The loading animation is a nice addition for user experience.

}, 2100);
};

///// sound btn

Choose a reason for hiding this comment

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

Consider adding comments to explain the purpose of event listeners, like the soundBtn function. It's not immediately clear what this function does without comments.

///// Start btn
const startBtn = () => {
const bab1 = document.querySelector(".bab1");
const bab2 = document.querySelector(".bab2");

Choose a reason for hiding this comment

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

Is bab referring to door? It would be better to stick with English in general.

* There are multiple ways to do this, but you may want to use regular expressions.
* Please go through this lesson: https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/regular-expressions/
*/
// document.body.style.overflow = "hidden";

const progressFill = document.querySelector(".progress-fill"),

Choose a reason for hiding this comment

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

It's good that you added these at the top of the file!

let arrWord = rawStory.split(" ");
let storyToObj = [];
arrWord.forEach((item) => {
if (item.match(/[[a-zA-Z]]/g)) {

Choose a reason for hiding this comment

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

It's good to have this item.match(/[[a-zA-Z]]/g) in a separate variable with a comment explaining the purpose.

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.

7 participants