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

Create RESET button #20

Open
Tracked by #6
istarlet opened this issue May 29, 2022 · 5 comments
Open
Tracked by #6

Create RESET button #20

istarlet opened this issue May 29, 2022 · 5 comments
Assignees
Labels
frontend help wanted Extra attention is needed

Comments

@istarlet
Copy link
Collaborator

istarlet commented May 29, 2022

We need a button created that says RESET. This button will be used to reset the game back to its original state.

Original State:
All cards are facedown

Button Needs

  • id = "resetbtn"
  • class = "btn"
@istarlet istarlet added help wanted Extra attention is needed frontend labels May 29, 2022
@istarlet istarlet mentioned this issue May 29, 2022
13 tasks
@istarlet istarlet changed the title Update index.html Create RESET button May 30, 2022
@istarlet istarlet added good first issue Good for newcomers and removed good first issue Good for newcomers labels May 30, 2022
@Dex-theDev
Copy link
Collaborator

Do you need the javascript for the button to work also? or just the styling for now?

@SarahMelki
Copy link
Collaborator

The js for the button is only one line I guess

<script> document.getElementById("resetbtn").reset(); </script>

@JoeDravarol
Copy link
Collaborator

Do you need the javascript for the button to work also? or just the styling for now?

As long as the JavaScript just handle the event of calling a reset function (That currently does not exist yet) it would be okay. Something like what @SarahMelki mention but later on there will be an issue to actually create the reset feature.

@Dex-theDev
Copy link
Collaborator

Ok i’ll assign myself to this one. Im gonna use the styling from the frontend mentor pic

@Dex-theDev Dex-theDev self-assigned this May 30, 2022
@JoeDravarol
Copy link
Collaborator

We have discuss in the voice comms that the reset button should include the JavaScript functionality also.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
frontend help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants