Noticed that there was an issue with css animations for Safari and iOS = dun not woikins.
So I've rebuilt the countdown using svg images instead. Kept it jQuery because the bulk of countdown.js was refactored to that.
Tested in Chrome, Safari, Firefox (all macOS).
- Removed XMLHttpRequest requests, replaced with fetch
- Added test blocks.json for Countdown.js to read and see if there are blocks for ZCL and/or BTC (Usage: add or remove value to 'btc' to see working)
- Block elements visible for both 'Awaiting..' and 'Snapshot' views
- Icon missing from last commit
Now ready for MattPass to check functionality is still within the brief, then for us to test on CoinZap
Helped out MattPass with his latest task...
Refactored the js, to
- Have cleaner structure in the html
- Remove the need for 'unit' and 'numbers' classes moving with the spinner changes = now only 3 elements get repositioned
- Mobile rules not needed anymore
- Cleaned up _countdown.scss (and nested core elements)
- Hid countdown logo on mobile to save it pushing everything down on tiny screens