Package 'flipdownr'

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

Help Index


Implement a countdown

Description

Implement a countdown

Usage

flipdown(
  downto,
  id,
  theme = "dark",
  headings = c("Days", "Hours", "Minutes", "Seconds")
)

Arguments

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")

Value

a countdown object

Examples

flipdown(downto = "2020-11-16 20:20:20 UTC", id = "first", theme = "dark")

Create an HTML dependency for flipdown.js

Description

Create an HTML dependency for flipdown.js

Usage

flipdown_dependency()