tool_componentlibrary/jsrunner

Description:
  • 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

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

Methods

(static) jsRunner()

Description:
  • 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.

Source: