JavaScript

Moodle H2

H2 header inside a Moodle page is usually redundant. Remove that with the following code chunk.

tweak_moodle_heading()

anki

Hide and show small texts. Click to toggle.

anki_setup()

modal window

Students may want to check the definition of difficult terms. Use modal windows let them do so very easily.

Set up the jquery modal...

modal_setup()

prepare the dictionary...

dict <- readxl::read_excel(juicedown_example("javascript", "economics.xlsx"))
def <- modal_register(dict)

Click to open the definitions:

Expand the usually hidden blocks with the following code. This code must be run at the end of the document.

modal_body(terms)


Try the juicedown package in your browser

Any scripts or data that you put into this service are public.

juicedown documentation built on Sept. 8, 2023, 5:11 p.m.