Description Usage Arguments Details Value Examples
View source: R/webexercises_fns.R
Change webexercises widget style
1 | style_widgets(default = "red", correct = "blue")
|
default |
The colour of the widgets when the correct answer is not filled in (defaults to blue). |
correct |
The colour of the widgets when the correct answer not filled in (defaults to red). |
Call this function inline in an RMarkdown document to change the default and correct colours using any valid CSS colour word (e.g., red, rgb(255,0,0), hsl(0, 100
A character string containing HTML code to change the CSS style values for widgets.
1 2 3 4 5 | # change to green when correct
style_widgets(correct = "green")
# yellow when unfilled, pink when correct
style_widgets("#FFFF00", "#FF3399")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.