There is a problem with the 2 characters colon : and comma , since these are used as separators. I will see what I can do about that. Until then you can get the other characters into the string by using BACKQUOTE (GRAVE ACCENT) delimiters and code it thus:
const range = `A:Z,0:9,!:!,':',*:*, : `; // The range of characters that are on the flipcards
I thought of another little thing that, in my opinion, would add even more realism.
But I fear it would require a lot of changes in the entire script. Let me know what you think.
So here’s the idea
When the flipping begins, the board gets filled with random characters.
What if we could set the board to start with personalized text?
Something like this maybe?
With “const order” set to ascending, if a specific card is set to start with B and end with S it would flip from B to S then stop.
If it’s set to start with D and end with C it would flip from D to Z, then use all other allowed characters in their proper order, then go from A to C
OK, the event you’ve all been waiting for with bated breath is now here: Flipperboard MkII. This doe a pretty good emulation of a flipperboard where the letters are in 2 halves and the top half flips down to cover the bottom half and reveal the next letter. Here is the HTML file:
This requires quite a rewrite and my kids and grandkids arrive this weekend for a fortnight, so I won’t be able to do much before the New Year, but I will definitely look into doing it.
If you slow down the animation and increase the size of the flipcards you will see that the perspective I use makes it even more realistic.
I had several false starts when doing the coding and found a few strange limitations of 3D rotation in the plane at 90% to the computer screen, but I got there in the end.
I have put the code on Codepen as a publicly accessible pen for anyone to use/modify:
I searched on YouTube to find a video of one of these flip boards. I captured the audio with Audacity and edited that audio (cutting parts of it) until it fit my own video.
I was thinking that you would say that. I’m going to look at it myself sometime.
btw, have you seen these “webby” parameter parsing/input systems that exist on some of the CAD systems. They let some parameters be accepted into a form where only the module knows what the parameters will be.
I was thinking it would be great to have this type of parameter input system to make it easier to feed input parameters into the html file.
In actuality, I would suggest that you could even use a Templating engine like CheetahTemplates, Jinja or whatever you like and then distribute the file as a Template that would actually create the final html.
As a user, it would be great to fill in some fields and then get the .html file created in the project directory rather than having to modify the .html file which is scary for even me because I have no test-suite to run regression tests - (looks at self and sees grumpy old man)
Because .html opens up so many possibilities it would be nice to see progress made with addons like these and others.