/
ui.R
107 lines (104 loc) · 2.72 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
# new ui ------------------------------------------------------------------
navbarPage(
title = "中医在全球 Map of TCM",
id = "nav",
inverse = FALSE,
theme = "simplex.css",
collapsible = TRUE,
tabPanel(
value = "Map",
"地图 Map",
icon = icon("globe"),
div(
class = "outer",
# Loading message
div(
id = "loading-content",
br(),
br(),
br(),
br(),
h2("Loading...")
) %>% shinyjs::hidden(),
leafletOutput("map", width = "100%", height = "100%"),
absolutePanel(
id = "controls", class = "panel panel-default", fixed = TRUE,
draggable = TRUE, top = 60, left = "auto", right = 10, bottom = "auto",
width = 350, height = "auto",
absolutePanel(
top = 8, left = 20, actionLink("back", NULL, icon = icon("globe"))
),
hr(),
uiOutput("detailed_info"),
hr()
) %>% shinyjs::hidden(),
tags$div(
id = "cite",
p(
'Contributed by ',
tags$em('Tsinghua university, Xiaomei Xu, Zheng Yang, Lai Yu.')
),
p(
"App made by ",
tags$a(href = "mailto:shrektan@126.com", "Xianying Tan"),
".",
"Powered by ",
tags$a(href = "http://shiny.rstudio.com", target = "_blank", "Shiny"),
"."
)
)
)
),
tabPanel(
"数据 Data",
icon = icon("search"),
bsPanel(
"default",
NULL,
fluidRow(
column(
width = 12,
dataTableOutput("data")
)
)
)
),
tabPanel(
"其他 Misc",
icon = icon("info"),
br(),
p("如有疑问,请发邮件至",
tags$a(href = "mailto:maptcm@126.com", "maptcm@126.com"), "。"),
p("If you find the info is wrong or you want to add new info, ",
"please contact ", tags$a(href = "mailto:maptcm@126.com", "maptcm@126.com"), ".")
# br(),
# includeHTML("disqus_thread.html")
)
# tabPanel(
# "Download Data",
# icon = icon("cloud-download"),
# p("Click here to ", downloadLink("download", "download data"), ".")
# )
) %>%
tagList(
# Include our custom CSS
tags$head(
includeCSS("styles.css"),
includeScript("gomap.js"),
shinyjs::useShinyjs()
),
.,
tags$a(
id = "github_ribbon",
href = "https://github.com/shrektan/maptcm",
target = "_blank",
display = "none",
tags$img(
style = "position: absolute; top: 0; right: 0; border: 0; z-index: 5000",
src = "github-label-grey.png",
alt = "Fork me on GitHub",
`data-canonical-src` =
"https://s3.amazonaws.com/github/ribbons/forkme_right_white_ffffff.png"
)
)
)