| "right" = 1L | "right" = 1L | ||||
| ) | ) | ||||
| top_male_names <- readRDS(here::here("t4c/data/top_male_names.rds")) | |||||
| top_male_names <- readRDS(here::here("data/top_male_names.rds")) | |||||
| random_name <- function() sample(top_male_names, 1) | random_name <- function() sample(top_male_names, 1) | ||||
| possessive_name <- function(x) if (substr(x, nchar(x), nchar(x)) == "s") paste0(x, "'") else paste0(x, "'s") | possessive_name <- function(x) if (substr(x, nchar(x), nchar(x)) == "s") paste0(x, "'") else paste0(x, "'s") | ||||
| div(class = "bottom-help-middle", span("Swipe Card", class = "bottom-help-middle-text")) | div(class = "bottom-help-middle", span("Swipe Card", class = "bottom-help-middle-text")) | ||||
| ) | ) | ||||
| source(here::here("t4c/screens.R"), local = TRUE) | |||||
| source("screens.R", local = TRUE) | |||||
| ui <- fixedPage( | ui <- fixedPage( | ||||
| includeCSS("devices.min.css"), | |||||
| includeCSS("t4c.css"), | |||||
| includeCSS("moffitt-colors.css"), | |||||
| includeCSS("animate.css"), | |||||
| includeCSS("www/css/devices.min.css"), | |||||
| includeCSS("www/css/t4c.css"), | |||||
| includeCSS("www/css/moffitt-colors.css"), | |||||
| includeCSS("www/css/animate.css"), | |||||
| shinyjs::useShinyjs(), | shinyjs::useShinyjs(), | ||||
| tags$link(rel = "stylesheet", type = "text/css", href = "https://fonts.googleapis.com/css?family=IBM+Plex+Sans:100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,700i"), | tags$link(rel = "stylesheet", type = "text/css", href = "https://fonts.googleapis.com/css?family=IBM+Plex+Sans:100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,700i"), | ||||
| tags$link(rel = "stylesheet", type = "text/css", href = "https://fonts.googleapis.com/css?family=Amatic+SC:400,700|Coming+Soon"), | tags$link(rel = "stylesheet", type = "text/css", href = "https://fonts.googleapis.com/css?family=Amatic+SC:400,700|Coming+Soon"), | ||||
| if (!is.null(app_data$screen_prev)) app_data$screen_next <- app_data$screen_prev | if (!is.null(app_data$screen_prev)) app_data$screen_next <- app_data$screen_prev | ||||
| }) | }) | ||||
| observeEvent(input$jump_results, { | observeEvent(input$jump_results, { | ||||
| last_results_file <- here::here("t4c", "results.rds") | |||||
| last_results_file <- "results.rds" | |||||
| if (!file.exists(last_results_file)) { | if (!file.exists(last_results_file)) { | ||||
| cat("No results saved yet.") | cat("No results saved yet.") | ||||
| return() | return() |