View source: R/webexercises_fns.R
style_widgets | R Documentation |
Change webexercises widget style
style_widgets(
incorrect = "#983E82",
correct = "#59935B",
highlight = "#467AAC"
)
incorrect |
The colour of the widgets when the answer is incorrect (defaults to pink #983E82). |
correct |
The colour of the widgets when the correct answer not filled in (defaults to green #59935B). |
highlight |
The colour of the borders around hidden blocks and checked sections (defaults to blue #467AAC). |
Call this function in an RMarkdown document to change the feedback colours using R colour names (see 'colours()') or any valid CSS colour specification (e.g., red, rgb(255,0,0), hsl(0, 100
If you want more control over the widget styles, please edit the webex.css file directly.
A character string containing HTML code to change the CSS style values for widgets.
style_widgets("goldenrod", "purple")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.