Guest User

Untitled

a guest
May 22nd, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.89 KB | None | 0 0
  1. library(shiny)
  2. shinyApp(
  3. ui <- fluidPage(
  4. tags$style(type = "text/css",
  5. ".irs-grid-text:nth-child(-2n+12) {color: #006400; font: bold;font-size: 12px;}",
  6. ".irs-grid-text:nth-child(2n+14) {color: #3CB371; font: bold;font-size: 12px;}",
  7. ".irs-grid-text:nth-child(2n+24) {color: orange; font: bold;font-size: 12px;}",
  8. ".irs-grid-text:nth-child(2n+36) {color: red; font: bold;font-size: 12px;}",
  9. ".irs-grid-pol:nth-of-type(-n+10) {background: #006400; font: bold;}",
  10. ".irs-grid-pol:nth-of-type(n+11) {background: #3CB371; font: bold;}",
  11. ".irs-grid-pol:nth-of-type(n+23) {background:orange; font: bold;}",
  12. ".irs-grid-pol:nth-of-type(n+34) {background:red; font: bold;}"),
  13. sliderInput("bins", "Number of bins:", 1, 10, 1)
  14. ),
  15. server <- function(input, output) {})
  16.  
  17. library(shiny)
  18. library(shinydashboard)
  19. library(shinyjs)
  20.  
  21. ui <- dashboardPage(skin = "black",
  22. dashboardHeader(title = "test"),
  23. dashboardSidebar(
  24. sidebarMenu(
  25. menuItem("Complete", tabName = "comp"))),
  26. dashboardBody(
  27. inlineCSS(".form-group {margin-bottom: 0;}"
  28. ),
  29. tabItems(
  30. tabItem(tabName = "comp",
  31. fluidRow(
  32. sliderInput("range_var", "", value = 1, min = 1, max = 10, width = '100%'),
  33. div(id="belowslider", style= "display:inline-block; width: 59%; background-color: green;", p()),
  34. div(id="belowslider1", style= "display:inline-block; width: 40%; background-color: orange;", p())
  35. )))))
  36.  
  37. server <- function(input, output, session) {
  38. }
  39.  
  40. shinyApp(ui, server)
Add Comment
Please, Sign In to add comment