I'm working on trying to write some code so that should be relatively easy to do but its not wanting to play nice.
I currently have a "reset" button that just resets the whole page but that's not what I want as I have a random number generator that is static until the page is reset and if you haven't gone through all the numbers you have to run it again and well...its obviously random so reseting the whole page has an unintended consequence.
My current code is as follows.
onclick="window.location.reload(true)"
that's for the reset function on a button. It works...but like I said it has some unintended consequences.
What I have been trying is rewriting the existing function as a new function that when the button is clicked with id="go"
the cards will flip that have the class hover
then will run the shuffle function.
I've rewritten the code several times and its still not doing what I want so I'm asking for help. I'm including the link to the codepen with the working model of existing code. It does not include the reset code since its broken...figured if you had a fresh look at the working code you may have more luck than I.