Description Usage Arguments Value Examples
View source: R/webexercises_fns.R
Display total correct
1 | total_correct(elem = "span", args = "")
|
elem |
The html element to display (e.g., div, h3, p, span) |
args |
Optional arguments for css classes or styles |
A string with the html for displaying a total correct element.
1 2 3 4 | total_correct() # <div id="total_correct"></div>
total_correct("h3") # <h3 id="total_correct"></h3>
total_correct("p", "style='color: red;'")
total_correct("div", "class='customclass'")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.