diff --git a/README.md b/README.md new file mode 100644 index 0000000..e69de29 diff --git a/db/events.php b/db/events.php deleted file mode 100644 index 3ed930f..0000000 --- a/db/events.php +++ /dev/null @@ -1,5 +0,0 @@ - - - - -`; - - // Append the modal HTML to the document body - document.body.insertAdjacentHTML('beforeend', modalHTML); - // Function to load a script into the DOM function loadScript(url, integrity, crossorigin) { return new Promise((resolve, reject) => { diff --git a/lib.php b/lib.php index 8237aff..9efb66b 100644 --- a/lib.php +++ b/lib.php @@ -57,28 +57,4 @@ function mod_exp360_cm_info_dynamic(cm_info $cm) $cm->set_no_view_link(); $cm->set_content($modals . $script); -} - -/** - * Event observer for mod_exp360. - */ -function mod_exp360_event_observer($event) -{ - global $PAGE; - $PAGE->requires->js('/mod/exp360/global.js'); -} - -/** - * Returns the list of event observers. - * - * @return array - */ -function mod_exp360_get_event_observers() -{ - return [ - [ - 'eventname' => '\core\event\course_viewed', - 'callback' => 'mod_exp360_event_observer', - ], - ]; -} +} \ No newline at end of file