I am currently working on a fun project creating an MTG (Magic The Gathering) life tracker, even though the code is quite messy. Despite its flaws, it still gets the job done.
Click here to view the MTG life tracker
https://i.stack.imgur.com/Su17J.png
Objective / Challenges I'm facing
My goal is to incorporate an indicator that displays how many times someone has adjusted the life total of one of the players by clicking a button. This indicator would briefly show the number of clicks before fading out, essentially resetting for the next adjustment.
If the life total is adjusted again, the indicator should visualize the changes made, both up and down. Is there a straightforward way to achieve this using jquery or vanilla JS?
If not, I might resort to utilizing jquery's .change
.change(function(){//"count recent clicks somehow"
function to track the clicks and display a + or - accordingly.
Any advice or assistance on this matter would be greatly appreciated!