Skip to content

Commit

Permalink
enter as actionbutton press
Browse files Browse the repository at this point in the history
  • Loading branch information
kwlyu committed Aug 22, 2024
1 parent 89315fc commit 76c607b
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
Binary file modified .DS_Store
Binary file not shown.
10 changes: 9 additions & 1 deletion PAC-data-analyzer/app.R
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ library(formattable)
remotes::install_github("timelyportfolio/dataui")
gs4_auth(email = "[email protected]", cache = ".secrets")


############################### USERNAME / PASSWORD ############################
# Main login screen
loginpage <- div(id = "loginpage", style = "width: 500px; max-width: 100%; margin: 0 auto; padding: 20px;",
Expand Down Expand Up @@ -261,7 +262,14 @@ event_summary <- combined_data_filtered %>%

sidebar <- dashboardSidebar(minified = TRUE, collapsed = TRUE,
uiOutput("sidebarpanel"))
body <- dashboardBody(shinyjs::useShinyjs(), uiOutput("body"))
body <- dashboardBody(shinyjs::useShinyjs(), uiOutput("body"),
tags$script(HTML("
$(document).on('keypress', function(e) {
if(e.which == 13) {
$('#login').click();
}
});
")))

# Define menu items
dataMenu <- menuItem(
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: PAC-data-analyzer
title: PAC-data-analyzer
username: estimelee
account: estimelee
server: shinyapps.io
hostUrl: https://api.shinyapps.io/v1
appId: 12500756
bundleId:
url: https://estimelee.shinyapps.io/PAC-data-analyzer/
version: 1
asMultiple: FALSE
asStatic: FALSE

0 comments on commit 76c607b

Please sign in to comment.