Ifeanyi commited on
Commit
e98e810
·
verified ·
1 Parent(s): 2c549fc

Update app.R

Browse files
Files changed (1) hide show
  1. app.R +19 -21
app.R CHANGED
@@ -1,33 +1,31 @@
1
  library(shiny)
2
  library(shinyjs)
 
3
  library(shinythemes)
4
- library(shinycssloaders)
5
  library(GWalkR)
6
 
7
- # set global options for spinner
8
- options(spinner.size = 1,
9
- spinner.color.background = "#FFFFFF",
10
- spinner.color = "lightblue")
11
-
12
 
13
  ui <- fluidPage(
 
14
  useShinyjs(),
 
15
  title = "Data Explorer",
16
- theme = shinytheme("cyborg"),
17
- tags$h3(id = "title", tags$strong("Graphic-Walker Data Explorer"),style = "text-align:center;color:lightblue;"),
18
- tags$a(href = "https://github.com/Ifeanyi55", tags$strong("Maintainer"),target = "_blank",style = "text-decoration:none;color:lightblue;margin-left:1250px;margin-bottom:1000px"),
19
- tags$img(src = "https://th.bing.com/th/id/OIG2.bWBz_rrx3G45vlu3OK26?pid=ImgGn",width = 170,height = 100),br(),br(),
20
- sidebarLayout(
21
- sidebarPanel(width = 3,style = "border-width:5px;border-color:lightblue;border-radius:25px;", fileInput("target_upload",h5(strong("Click to Upload CSV File"),style = "color:lightblue;"),
22
- accept = c("text/csv"),
23
- buttonLabel = strong("Select file",style = "color:lightblue;"),
24
- placeholder = "No file selected"),
25
- actionButton("reset",strong("Refresh"),icon = icon("refresh")),
26
- br(),br(),a(href = "https://github.com/Kanaries/GWalkR",h6(strong("Learn More"),style = "color:lightblue;"),target = "_blank",style = "text-decoration: none;")),
27
- mainPanel(withSpinner(gwalkrOutput(outputId = "explorer",width = "114%"),type = 1)
28
- )
 
 
29
  )
30
-
31
  )
32
 
33
  server <- function(input,output,session){
@@ -46,7 +44,7 @@ server <- function(input,output,session){
46
  tryCatch(
47
  {
48
 
49
- gwalkr(file_upload(),dark = "dark")
50
 
51
  },
52
  error = function(e){
 
1
  library(shiny)
2
  library(shinyjs)
3
+ library(shinyWidgets)
4
  library(shinythemes)
 
5
  library(GWalkR)
6
 
 
 
 
 
 
7
 
8
  ui <- fluidPage(
9
+ includeCSS("styles.css"),
10
  useShinyjs(),
11
+ setBackgroundColor(color = c("white","#007acc"),gradient = c("linear","radial")),
12
  title = "Data Explorer",
13
+ theme = shinytheme("cerulean"),
14
+ tags$h3(id = "title", tags$strong("Graphic-Walker Data Explorer"),style = "text-align:center;color:#007acc;"),
15
+ tags$a(href = "https://github.com/Ifeanyi55", tags$strong("Maintainer"),target = "_blank",style = "text-decoration:none;color:#007acc;margin-left:1250px;margin-bottom:1000px"),
16
+ br(),br(),
17
+ sidebarLayout(sidebarPanel = "",
18
+ mainPanel(align = "center",
19
+ width = 12,
20
+ fileInput("target_upload",h5(strong("Click to Upload CSV File"),style = "color:#007acc;"),
21
+ accept = c("text/csv"),
22
+ buttonLabel = strong("Select File",style = "color:#007acc;"),
23
+ placeholder = "No file selected"),
24
+ actionButton("reset",strong("Reset"),icon = icon("refresh"),style = "color:#007acc;"),
25
+ a(href = "https://github.com/Kanaries/GWalkR",h6(strong("Learn More"),style = "color:#007acc;margin-left:-1220px;margin-top:-170px;font-size:15px;"),target = "_blank",style = "text-decoration: none;"),
26
+ gwalkrOutput(outputId = "explorer",width = "101%")
27
+ )
28
  )
 
29
  )
30
 
31
  server <- function(input,output,session){
 
44
  tryCatch(
45
  {
46
 
47
+ gwalkr(file_upload())
48
 
49
  },
50
  error = function(e){