-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathui.R
125 lines (116 loc) · 4.18 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
121
122
123
124
125
ui <- dashboardPage(
title = "Citrus genealogy",
dashboardHeader(title = p(em("Citrus"), "genealogy")),
dashboardSidebar(
width = 0
),
dashboardBody(
tags$head(
tags$link(rel = "stylesheet", type = "text/css", href = "app.css"),
tags$style(HTML("
.nav-tabs-custom > .nav-tabs > li > a {
background-color: #f4b943;
color: #FFF;
}
.tab-content tab-pane {
}
.nav-tabs-custom > .nav-tabs > li[class=active] > a {
background-color: green;
color:white
}")),
tags$style(HTML(".box {min-width: 840px;}")),
tags$style(HTML("
/* logo */
.skin-blue .main-header .logo {
background-color: #f4b943;
}
/* logo when hovered */
.skin-blue .main-header .logo:hover {
background-color: #f4b943;
}
/* navbar (rest of the header) */
.skin-blue .main-header .navbar {
background-color: #f4b943;
}
/* main sidebar */
.skin-blue .main-sidebar {
background-color: #f4b943;
}
/* active selected tab in the sidebarmenu */
.skin-blue .main-sidebar .sidebar .sidebar-menu .active a{
background-color: #ff0000;
}
/* other links in the sidebarmenu */
.skin-blue .main-sidebar .sidebar .sidebar-menu a{
background-color: #00ff00;
color: #000000;
}
/* other links in the sidebarmenu when hovered */
.skin-blue .main-sidebar .sidebar .sidebar-menu a:hover{
background-color: #ff69b4;
}
/* toggle button when hovered */
.skin-blue .main-header .navbar .sidebar-toggle:hover{
background-color: #ff69b4;
}
/* body */
.content-wrapper, .right-side {
background-color: #7da2d1;
}
"))
), fluidRow(
column(
width = 4,
passwordInput("password", "Password", placeholder = "passw. needed during review - contact authors!")
)
),
#
# down big boxes
#
fluidRow(
conditionalPanel(
condition = "input.password==''",
tabBox(
title = "Figure S2. Parental network and admixture",
id = "tabsetLeft",
selected = "k=4",
tabPanel(
"k=4",
div(
style = "text-align: center;",
checkboxInput("checkboxk4", "Show names of molec. study",
value = FALSE, width = "100%"
)
),
div(
style = "overflow-y:auto; overflow-x:auto",
uiOutput("k4image")
),
div(
style = "text-align: left;",
uiOutput("k4Legend")
)
),
tabPanel(
"k=3",
div(
style = "text-align: center;",
checkboxInput("checkboxk3", "Show names of molec. study",
value = FALSE, width = "100%"
)
),
div(
style = "overflow-y:auto;overflow-x:auto",
uiOutput("k3image")
),
div(
style = "text-align: left;",
uiOutput("k3Legend")
)
)
),
uiOutput("mytabBox")
)
)
)
)