-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathui.R
120 lines (76 loc) · 4.44 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
require(shiny)
require(shinysense)
shinyUI(
fluidPage(
tags$script('
$(document).on("keydown", function (e) {
Shiny.onInputChange("decision", [e.which,e.timeStamp]);
});
'),
tags$style(type="text/css", "
#loadmessage {
position: fixed;
top: 35%;
left: 64%;
margin: auto;
text-align: center;
font-weight: bold;
font-size: 100%;
color: #000000;
background: #FFFFFF;
opacity: 0.7;
z-index:1;
}
"),
tags$head(
tags$title("cindeR"),
tags$link(rel = "icon" , href="logo.png"),
tags$script(src="LoadingBar.js")),
div(div(class = "busy",
img(src="Loading_icon.gif")) , id = "loadmessage"),
navbarPage(div("cindeR" , style="color:#C4071B;text-align:center;font-style: italic;font-weight: bold;font-size: 150%"),
tabPanel("Evaluation",
sidebarPanel(
wellPanel(
shiny::fileInput(inputId = "file" , label = "Upload a csv file to judge") ,
checkboxInput("import.header", "Header", TRUE),
selectInput("import.sep", "Separator", selected = ",",
choices = c(Comma = ",", Semicolon = ";", Tab = "\t")),
selectInput("import.quote", "Quote", selected = '"',
choices = c(None = "", "Double Quote" = '"', "Single Quote" = "'"))
),
wellPanel(
h4("Instructions"),
icon("toggle-right") , ": Class 1",
br(),
icon("toggle-left") , ": Class 2" ,
br(),
icon("toggle-up") , ": Class 3",
br(),
icon("toggle-down") , ": Class 4"),
br(),
wellPanel(
h4("Progress"),
uiOutput("progress")
),
downloadButton("Save" , "Download current progress")
),
mainPanel(
shinyswiprUI("plot_swiper" ,
shiny::plotOutput("plotout" ,height = "600px")),
br(),
fluidRow(column(6 , align="center", offset = 3, actionButton("back" , label = "back" , icon = icon("mail-reply" , lib = "font-awesome")) , tags$style(type='text/css', "#button { vertical-align- middle; height- 50px; width- 100%; font-size- 30px;}")))
)
),
tabPanel("Plot function",
sidebarPanel( width = 3 ,
fileInput("plotScript" , label = "Select a plot script"),
br(),
uiOutput("plotfunctionSelector")
),
mainPanel(width = 9 ,
h4("Plot function"),
verbatimTextOutput("plotfuncode")))
)
)
)