| @@ -1,6 +1,5 @@ | ||
| 1 | -/******/ (function() { // webpackBootstrap | |
| 2 | -var __webpack_exports__ = {}; | |
| 1 | +/******/ (() => { // webpackBootstrap | |
| 3 | 2 | /*!***********************************************!*\ |
| 4 | 3 | !*** ./assets/src/apps/js/frontend/custom.js ***! |
| 5 | 4 | \***********************************************/ |
| 6 | 5 | /** |
| @@ -5,8 +4,9 @@ | ||
| 5 | 4 | \***********************************************/ |
| 6 | 5 | /** |
| 7 | 6 | * Custom functions for frontend quiz. |
| 8 | 7 | */ |
| 8 | + | |
| 9 | 9 | const { |
| 10 | 10 | Hook |
| 11 | 11 | } = LP; |
| 12 | 12 | const $ = window.jQuery || jQuery; |
| @@ -15,9 +15,8 @@ | ||
| 15 | 15 | }); |
| 16 | 16 | Hook.addAction('before-start-quiz', function () {}); |
| 17 | 17 | Hook.addAction('quiz-started', function (results, id) { |
| 18 | 18 | $(`.course-item-${id}`).removeClass('status-completed failed passed').addClass('has-status status-started'); |
| 19 | - | |
| 20 | 19 | window.onbeforeunload = function () { |
| 21 | 20 | return 'Warning!'; |
| 22 | 21 | }; |
| 23 | 22 | }); |