Type: Package
Title: Implement a Countdown in 'RMarkdown' Documents and 'shiny' Applications
Version: 0.1.1
Maintainer: Mohamed El Fodil Ihaddaden <ihaddaden.fodeil@gmail.com>
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.
License: MIT + file LICENSE
Encoding: UTF-8
LazyData: true
RoxygenNote: 7.1.1
Imports: htmltools, glue, jsonlite, checkmate
URL: https://github.com/feddelegrand7/flipdownr
BugReports: https://github.com/feddelegrand7/flipdownr/issues
NeedsCompilation: no
Packaged: 2020-11-29 15:16:24 UTC; Administrateur
Author: Mohamed El Fodil Ihaddaden [aut, cre], Butcher Peter [ctb, cph] (flipdown.js library developer)
Repository: CRAN
Date/Publication: 2020-11-29 15:30:03 UTC

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