-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathui.R
executable file
·93 lines (88 loc) · 2.54 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
### -----------------------###
### UI for iNZight Lite ###
### -----------------------###
###
### Date Created : January 13, 2015
### Last Modified : December 15, 2015
###
### Please consult the comments before editing any code.
### This file sources the ui files for each panel separately.
print(shiny::getCurrentOutputInfo())
css <- "
.nav li a.disabled {
background-color: #aaa !important;
color: #333 !important;
cursor: not-allowed !important;
border-color: #aaa !important;
}"
# library(shinyStorePlus)
shinyUI(
fluidPage(
shinyjs::useShinyjs(),
shinyjs::inlineCSS(css),
# initStore("browser"),
## Set Tabpanel font to be size 16.
tags$head(
shinyjs::useShinyjs(),
tags$script(src = "vit.js"),
tags$script(src = "js/disconnect.js"),
tags$link(
href = "disconnectedModal.css", rel = "stylesheet",
type = "text/css"
),
tags$script(src = "js/ticker.js"),
tags$link(href = "ticker.css", rel = "stylesheet", type = "text/css"),
tags$style(HTML("
body > .container-fluid {
padding: 0 !important;
}
.fill-frame {
object-fit: fill;
width: 100%;
height: 600px;
}
"))
),
## This code fixes the DataTables warning coming up from time to time.
tags$head(tags$script("window.alert = (function() {
var nativeAlert = window.alert;
return function(message) {
//window.alert = nativeAlert;
message.indexOf('DataTables warning') === 0 ?
console.warn(message) :
nativeAlert(message);
}
})();")),
tags$head(tags$script(src = "js/testNumeric.js")),
tags$head(tags$script(src = "js/google-analytics.js")),
tags$head(tags$script(src = "js/user-info.js")),
# tags$head(tags$script(src = "js/download-logs.js")),
## Load the "Lumen" Theme (from http://bootswatch.com).
theme = "bootstrap.css",
tags$head(
tags$link(
href = "global-styles.css", rel = "stylesheet",
type = "text/css"
)
),
navbarPage(
## Set Window Title
windowTitle = "iNZight Lite",
## Add logo and link it to the iNZight website.
title =
HTML(
"<img src = 'inzight_lite_logo_web.svg'
alt = 'iNZight Lite' height='150%' />"
),
## Set ID
id = "selector",
## Set custom colour and collapse options.
inverse = TRUE, collapsible = TRUE,
## "About" tab.
tabPanel(
"About",
uiOutput("about.panel")
)
)
)
)