Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

396
Visualizações
Its possible to combine Shiny manager with js code?

Good night and thanks for reading me

I am working on a shiny manager protected application and would like to add an initial animation to the home panel, but what I have tried so far does not work. Does anyone know if it is possible to add such animation? Or some way to correct the code to make it work? I appreciate your help

The code im using is the following:

js <- "
$(document).ready(function(){
  $('#plotContainer').on('show', function(event){
    $(this).css('opacity', 0).animate({opacity: 1}, {duration: 1000});
  });
});
"


credentials <- data.frame(
    user = c("shiny", "shinymanager"),
    password = c("azerty", "12345"),
    stringsAsFactors = FALSE
)

library(shiny)
library(shinymanager)

ui <- fluidPage(
    tags$h2("My secure application"),
    verbatimTextOutput("auth_output")
)


ui <- secure_app(
    tags$head(tags$script(HTML(js))),
    ui, choose_language = TRUE)


server <- function(input, output, session) {
 
    res_auth <- secure_server(
        check_credentials = check_credentials(credentials)
    )
    
    output$auth_output <- renderPrint({
        reactiveValuesToList(res_auth)
    })
    
    observe({
        print(input$shinymanager_where)
        print(input$shinymanager_language)
    })
    
    
    
}

shinyApp(ui, server)
    
about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda