Title: | Implement a Countdown in 'RMarkdown' Documents and 'shiny' Applications |
---|---|
Description: | Allows the user to create a countdown in 'RMarkdown' documents and 'shiny' applications. The package is a wrapper of the 'JavaScript' library 'flipdown.js'. See <https://pbutcher.uk/flipdown/> for more info. |
Authors: | Mohamed El Fodil Ihaddaden [aut, cre], Butcher Peter [ctb, cph] (flipdown.js library developer) |
Maintainer: | Mohamed El Fodil Ihaddaden <[email protected]> |
License: | MIT + file LICENSE |
Version: | 0.1.1 |
Built: | 2024-11-01 11:16:27 UTC |
Source: | https://github.com/feddelegrand7/flipdownr |
Implement a countdown
flipdown( downto, id, theme = "dark", headings = c("Days", "Hours", "Minutes", "Seconds") )
flipdown( downto, id, theme = "dark", headings = c("Days", "Hours", "Minutes", "Seconds") )
downto |
the targeted date in 'yyyy-mm-dd' or 'yyyy-mm-dd hh:mm:ss' format |
id |
the id of the flipdown object |
theme |
the theme of the flipdown object. Possible choices: 'dark', 'light', 'gdila', 'youkous', 'ifri', 'saida'. Defaults to 'dark' |
headings |
a character vector specifying the heading related to each time part. Defaults to English headings: c("Days", "Hours", "Minutes", "Seconds") |
a countdown object
flipdown(downto = "2020-11-16 20:20:20 UTC", id = "first", theme = "dark")
flipdown(downto = "2020-11-16 20:20:20 UTC", id = "first", theme = "dark")
Create an HTML dependency for flipdown.js
flipdown_dependency()
flipdown_dependency()