R/jquery.R

Defines functions jquery_modal jquery

jquery <- function(){
  jq <- if (the$jquery %||% FALSE) {
    # the$jquery is TRUE if this function has been already called.
    # NULL means FALSE, so go to else block...
    NULL
  } else {
    the$jquery <- TRUE
    the$js <- c(the$js, const$jquery)
  }
  invisible()
}

jquery_modal <- function() {
  jq <- jquery()
  jqm <- if (the$jquery_modal %||% FALSE) {
    # the$jquery_modal is TRUE if this function has been already called.
    # NULL means FALSE, so go to else block...
    NULL
  } else {
    the$jquery_modal <- TRUE
    the$js <- c(the$js, const$jquery_modal, const$juicedown_modal)
  }
  invisible()
}

Try the juicedown package in your browser

Any scripts or data that you put into this service are public.

juicedown documentation built on Sept. 8, 2023, 5:11 p.m.