tool_componentlibrary/jsrunner

Run the JS required for example code to work in the library.

Source:
License:
  • http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Methods

(static) jsRunner()

Source:

The Hugo shortcodes changes the JavaScript in markdownfiles from the Moodle mustache {{js}} code... {{/js}} syntax into a div with attribute data-action='runjs'. See hugo/site/layouts/shortcodes/example.html. This code fetches and runs the JavaScript content.