score_counter: Display floating score counter

Description Usage Arguments Value Examples

View source: R/labsheet_fns.R

Description

Display floating score counter

Usage

1
score_counter(elem = "div", args = "")

Arguments

elem

The html element to display (e.g., div, h3, p, span)

args

Optional arguments for css classes or styles

Value

A string with the html for displaying a total correct element

Examples

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'")

bioboot/labsheet documentation built on Nov. 4, 2019, 7:19 a.m.