Recent Releases of countdown
countdown - v0.4.0
countdown 0.4.0
Release Post: countdown v0.4.0 – Now on CRAN!
New Features
{countdown} now uses {prismatic} for color calculations.
The JavaScript implementation of countdown has been completely rewritten. It now supports a wide range of new interactions:
- Start, pause, and reset the timer (click, click again, double click).
+or-buttons to bump timer up or down.- Keyboard shortcuts: Space/Enter to start/stop, Escape to reset, and up/down arrows to bump timer.
- The timers now work on mobile devices (in particular in xaringan slides).
countdown timers can now be used in or controlled by Shiny apps:
- Use
countdown_update()to update key initial timer settings. - Use
countdown_action()to trigger common action: start, stop, reset, bump up or bump down. - State changes are reported back to the Shiny app, e.g. Shiny apps can
use
input$timerto receive event data from the timer withid = "timer". countdown_shiny_example()runs a Shiny app that demonstrates key Shiny app features.
- Use
Timers can now start immediately by setting the argument
start_immediately = TRUE. WhenTRUE, timers will start as soon as they are visible. This feature works in xaringan slides, Quarto slides and general HTML web pages (thanks @Dr-Joe-Roberts, @davidkane9, #12).The
countdown_app()now supports bookmarking, making it possible to share pre-configured timer URLs. This feature improves the usability of the timer available at https://apps.garrickadenbuie.com/countdown.
- JavaScript
Published by gadenbuie over 3 years ago
countdown - v0.3.3
Added
.countdown-timeclass to<code>element of timer. Renamed.digitsclass to.countdown-digits. This ensures that it's possible to write CSS rules with high specificity values (#10).Added
styleargument tocountdown()for inlining CSS rules to the parentdivof the timer.
- JavaScript
Published by gadenbuie over 6 years ago
countdown - countdown v0.3.0
Added a warning state to the coundown timer that is enabled by setting
warn_when = N. Thewarningclass is applied to the timer for the lastNseconds, and the colors of this state are configured with the arguments withcolor_warning_prefix (thanks @hadley, #5).Added a new convenience function for full-screen (and stand-alone) countdown timers,
countdown_fullscreen(). This function's defaults work best when called from RStudio, in xaringan slides it will still be necessary to fiddle withfont_size,margin, andpadding(thanks @hadley, #6).Add
countdown_app()to launch an interactive Shiny app with a full-screen countdown timer.
- JavaScript
Published by gadenbuie over 6 years ago