PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.4.6
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.4.6
4.4.8 4.4.7 4.4.6 4.4.5 4.4.4 4.4.3 4.4.2 4.4.1 4.4.0 4.3.9.1 4.3.9 4.3.8 4.3.7 4.1.6.9 4.1.6.9.1 4.1.6.9.2 4.1.6.9.3 4.1.6.9.4 4.1.7 4.1.7.1 4.1.7.2 4.1.7.3 4.1.7.3.1 4.1.7.3.2 4.2.0 All 139 releases
learnpress / assets / js / dist / frontend / lp-configs.js

lp-configs.js in LearnPress – WordPress LMS Plugin for Create and Sell Online Courses 4.4.6, at assets/js/dist/frontend/lp-configs.js

103 lines 3.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /******/ (() => { // webpackBootstrap
2 /******/ "use strict";
3 /******/ // The require scope
4 /******/ var __webpack_require__ = {};
5 /******/
6 /************************************************************************/
7 /******/ /* webpack/runtime/define property getters */
8 /******/ (() => {
9 /******/ // define getter functions for harmony exports
10 /******/ __webpack_require__.d = (exports, definition) => {
11 /******/ for(var key in definition) {
12 /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
13 /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
14 /******/ }
15 /******/ }
16 /******/ };
17 /******/ })();
18 /******/
19 /******/ /* webpack/runtime/hasOwnProperty shorthand */
20 /******/ (() => {
21 /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
22 /******/ })();
23 /******/
24 /******/ /* webpack/runtime/make namespace object */
25 /******/ (() => {
26 /******/ // define __esModule on exports
27 /******/ __webpack_require__.r = (exports) => {
28 /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
29 /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
30 /******/ }
31 /******/ Object.defineProperty(exports, '__esModule', { value: true });
32 /******/ };
33 /******/ })();
34 /******/
35 /************************************************************************/
36 var __webpack_exports__ = {};
37 /*!***************************************************!*\
38 !*** ./assets/src/apps/js/frontend/lp-configs.js ***!
39 \***************************************************/
40 __webpack_require__.r(__webpack_exports__);
41 /* harmony export */ __webpack_require__.d(__webpack_exports__, {
42 /* harmony export */ classNames: () => (/* binding */ classNames),
43 /* harmony export */ isQuestionCorrect: () => (/* binding */ isQuestionCorrect),
44 /* harmony export */ questionBlocks: () => (/* binding */ questionBlocks),
45 /* harmony export */ questionChecker: () => (/* binding */ questionChecker),
46 /* harmony export */ questionFooterButtons: () => (/* binding */ questionFooterButtons),
47 /* harmony export */ questionTitleParts: () => (/* binding */ questionTitleParts),
48 /* harmony export */ quizStartBlocks: () => (/* binding */ quizStartBlocks)
49 /* harmony export */ });
50 const {
51 Hook
52 } = LP;
53 const classNames = {
54 Quiz: {
55 Result: ['quiz-result'],
56 Content: ['quiz-content'],
57 Questions: ['quiz-questions'],
58 Buttons: ['quiz-buttons'],
59 Attempts: ['quiz-attempts']
60 }
61 };
62 const questionCheckers = {
63 single_choice() {},
64 multi_choice() {},
65 true_or_false() {}
66 };
67 const isQuestionCorrect = {
68 fill_in_blank() {
69 return true;
70 }
71 };
72
73 /**
74 * Question blocks.
75 *
76 * Allow to sort the blocks of question
77 */
78 const questionBlocks = function () {
79 return LP.Hook.applyFilters('question-blocks', ['title', 'content', 'answer-options', 'explanation', 'hint', 'buttons']);
80 };
81 const questionFooterButtons = function () {
82 return LP.Hook.applyFilters('question-footer-buttons', ['instant-check']);
83 };
84 const questionTitleParts = function () {
85 return LP.Hook.applyFilters('question-title-parts', ['index', 'title', 'hint', 'edit-permalink']);
86 };
87 const questionChecker = function (type) {
88 const c = LP.Hook.applyFilters('question-checkers', questionCheckers);
89 return type && c[type] ? c[type] : function () {
90 return {};
91 };
92 };
93 const quizStartBlocks = function () {
94 const blocks = Hook.applyFilters('quiz-start-blocks', {
95 meta: true,
96 description: true,
97 custom: 'Hello'
98 });
99 };
100 (window.LP = window.LP || {}).config = __webpack_exports__;
101 /******/ })()
102 ;
103 //# sourceMappingURL=lp-configs.js.map