modeltemplate / countdowntimer Goto Github PK
View Code? Open in Web Editor NEWA simple countdown timer that is accurate to the second.
License: Creative Commons Zero v1.0 Universal
A simple countdown timer that is accurate to the second.
License: Creative Commons Zero v1.0 Universal
Duplicate delay parameters (endDateDelay, timeDiffDelay, timeDiffByUnitDelay
) may not be needed if we can figure out how to split one loopTime
into two separate loops without adding additional parameters by doing some simple subtraction and comparison against delayTime
.
FANDOM's MediaWiki's ResourceLoader only parses ES3 JavaScript with some caveats. Need to convert code so it can run on the wiki.
For https://warframe.fandom.com/wiki/Template:MilestoneTimer. Readd the following optional CSS classes countXinterval
and countXinterval2
and implement a separate function that handles milestones.
To emulate duck-typing languages. It may not be needed for most use cases, but can be useful for debugging in production (i.e. use on FANDOM wikis) since technically anyone can use functions since once they are loaded by ResourceLoader (i.e. they have global scope).
Baro Ki'Teer timer can be tracked via WARFRAME's WorldState API instead. Using the API may be more future proof and accurate over hardcoding a timer for his arrival time and the in-game relay he will be at. Another bonus of using the API is that you get his current offerings when he is on a relay. Though, this requires a separate project to be worked on outside of the countdown timer.
Merge the following CSS classes and parameters: loopTime with loopUnit, delayTime with delayUnit, and dateFormat with separators (e.g. loopTime = "5s" instead of loopTime = 5 and loopUnit = "s"; dateFormat = "YY-MM-DD hh:mm:ss" instead of dateFormat = "YY MM DD hh mm ss" and separators = "-").
For example, only update timer based on the smallest displayed unit (e.g. update timer every minute) instead of calling updateTimers()
every second?
Fix delay timer appearing in middle of actual countdown even though actual countdown has not gone down to zero.
This happens in the case where delayTime
is not exactly half of loopTime
since timeDiffDelay
can decrement to zero in more times than timeDiff
can decrement to zero, causing the delay timer to pop up at unintended times.
Update platform labels since WARFRAME supports multiple platforms of the same family (e.g. Playstation has PS4 and PS4).
In other words, PS4 โ PSN and XB1 โ XBX.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.