This is gonna be a big devlog, since i forgot to make one in between. I added two new features and i am currently working on the next one.
- Coinflip
It is a minimalist coinflip feature where you just click a button and a animation comes which tells heads or tails. There was a Problem. At first when you would click throw multiple times while still in animation, the logic wouldnt work and the results from the first press of the button would come during the the animation of the (for example) fourth throw. To fix that i added
let isFlipping = false;
and
if (isFlipping) return; in the main function.
- How many days till
You put in a date and it calcualtes for you, how many days, hours and minutes it is till that date (00:00 time). The problem was with the time zones so i added:
const targetDate = new Date(targetDateInput.value + “T00 : 00 : 00); (dont wonder it would be without spaces between the zeors but it wont let me here in the devlog menu)
The third one will be a spin the wheel feature, where you can add your own names and it will pick one. Though, im currently struggeling with the java script…
so that the browser would always assume local time midnight!
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.