Skip to content

Commit

Permalink
http and https
Browse files Browse the repository at this point in the history
  • Loading branch information
jrosell committed Aug 8, 2024
1 parent a160647 commit 1c48572
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion R/rendering.R
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ render_page <- \(main = NULL, page_title = NULL, head_tags = NULL) {
tags$head(
tags$title(page_title),
tags$style("body {background-color:white;}"),
tags$script(src = "https://unpkg.com/[email protected]"),
tags$script(src = "//unpkg.com/[email protected]"),
head_tags,
),
tags$body(
Expand Down
6 changes: 3 additions & 3 deletions inst/examples/11-tonejs.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
devtools::load_all()
# library(ambhtmx)
# devtools::load_all()
library(ambhtmx)

live_path <- tryCatch(
{this.path::this.path()},
Expand Down Expand Up @@ -42,7 +42,7 @@ amb_tonejs <- \(
style = "margin : 10px; float: left;",
button(id = id, button_text),
script(HTML(script_chr)),
a("x", style = "color: red; text-decoration: none", href = "/", hx_delete="/delete", hx_confirm = glue('Are you sure you want to delete "{button_text}"?'), hx_swap = "outerHTML", hx_target = glue(".{id}"))
a("x", style = "color: red; text-decoration: none", href="#", hx_delete="/delete", hx_confirm = glue('Are you sure you want to delete "{button_text}"?'), hx_swap = "outerHTML", hx_target = glue(".{id}"))
)
}

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 1c48572

Please sign in to comment.