-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathui.R
39 lines (34 loc) · 1.02 KB
/
ui.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#
# This is the user-interface definition of a Shiny web application. You can
# run the application by clicking 'Run App' above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny)
# Define UI for application that draws a histogram
shinyUI(fluidPage(
# Application title
titlePanel("Number Readback"),
# Sidebar with a slider input for number of bins
shiny::column(
width = 12,
uiOutput("readNumbers"),
wellPanel(
shinyWidgets::materialSwitch("backwards", "Backwards"),
uiOutput("enterAnswer"),
actionButton("checkAnswer", "Check Answer"),
actionButton("nextQuestion", "Next Question")
),
helpText("You've gotten this many right in a row: "),
textOutput("streak"),
sliderInput("digits",
"Total Digits",
value = 3,
min = 2,
max = 7,
step = 1,
round = TRUE)
)
))