Nothing
library(shiny)
library(countdown)
ui <- fluidPage(
title = "{countdown} - Example Shiny App",
div(
class = "container",
h2("Simple {countdown} Timer App"),
p("Here's a simple timer, created with the {countdown} package."),
HTML('<pre><code>countdown(id = "countdown")</code></pre>'),
countdown(
id = "countdown",
style = "position:relative;width: 5em;max-width: 100%;"
),
p(
"The countdown timer reports the state of the timer whenever key actions",
"are performed. On the Shiny side, the input ID is the same as the timer's",
"ID - in this case", code("input$countdown"), "— and the data sent to",
"Shiny reports both the action taken by the user and the current state",
"of the timer."
),
verbatimTextOutput("debug"),
p(
"You may also use the", code("countdown_action()"), "button to trigger",
"actions with the timer from Shiny. Interact with the timer directly or",
"use the buttons below to start, stop, reset, or bump the timer up or down."
),
uiOutput("buttons", inline = TRUE),
tags$style("body, pre, .btn { font-size: 16px }")
)
)
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.