vendor: 112 bytes, lines 1-5
1/******/ (() => { // webpackBootstrap 2/******/ "use strict"; 3/******/ var __webpack_modules__ = ({ 4 5/***/ "./s
5rc/js/main.js": 6/*!************************!*\ 7 !*** ./src/js/main.js ***! 8 \************************/ 9/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 10 11__webpack_require__.r(__webpack_exports__); 12/* harmony export */ __webpack_require__.d(__webpack_exports__, { 13/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) 14/* harmony export */ }); 15// export anonymous function 16/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((function () { 17 document.addEventListener('DOMContentLoaded', function () { 18 console.log('hi from main.js'); 19 }); 20})()); 21 22/***/ }), 23
24/***/ "./src/js/plugin-overrides/wpcf7.js": 25/*!******************************************!*\ 26 !*** ./src/js/plugin-overrides/wpcf7.js ***! 27 \******************************************/ 28/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 29 30__webpack_require__.r(__webpack_exports__); 31/* harmony export */ __webpack_require__.d(__webpack_exports__, { 32/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) 33/* harmony export */ }); 34// export anonymous function 35/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((function () { 36 document.addEventListener('DOMContentLoaded', function () { 37 var wpcf7El = document.querySelector('.wpcf7'); 38 if (!wpcf7El) { 39 return; 40 } 41 function loadExternalCSS(url) { 42 const link = document.createElement('link'); 43 link.rel = 'stylesheet'; 44 link.href = url; 45 document.head.appendChild(link); 46 } 47 const formCssUrl = window.location.origin + '/wp-content/plugins/breakdance/subplugins/breakdance-elements/dependencies-files/awesome-form@1/css/form.css'; 48 loadExternalCSS(formCssUrl); 49 50 // prefill job title 51 let jobInput = document.querySelector('input[name="bewerbung-job"]'); 52 let formShortcode = document.getElementById('job-form-shortcode'); 53 if (!jobInput || !formShortcode) { 54 return; 55 } 56 let jobTitle = formShortcode.getAttribute('data-job'); 57 58 // Select the node that will be observed for mutations 59 const targetNode = formShortcode.querySelector('.wpcf7-form'); 60 61 // Options for the observer (which mutations to observe) 62 const config = { 63 attributes: true, 64 childList: false, 65 subtree: false 66 }; 67 68 // Callback function to execute when mutations are observed 69 const callback = (mutationList, observer) => { 70 for (const mutation of mutationList) { 71 if (mutation.type === "attributes") { 72 if (targetNode.classList.contains('init')) { 73 if (jobInput && formShortcode) { 74 jobInput.value = jobTitle; 75 } 76 observer.disconnect(); 77 } 78 } 79 } 80 }; 81 82 // Create an observer instance linked to the callback function 83 const observer = new MutationObserver(callback); 84 observer.observe(targetNode, config); 85 wpcf7El.addEventListener('wpcf7submit', function (event) { 86 if (jobInput && formShortcode) { 87 jobInput.value = jobTitle; 88 } 89 }, false); 90 }); 91})()); 92 93/***/ }), 94
95/***/ "./src/scss/main.scss": 96/*!****************************!*\ 97 !*** ./src/scss/main.scss ***! 98 \****************************/ 99/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { 100 101__webpack_require__.r(__webpack_exports__); 102// extracted by mini-css-extract-plugin 103 104 105/***/ })
vendor: 2,989 bytes, lines 105-176
105 106 107/******/ }); 108/************************************************************************/ 109/******/ // The module cache 110/******/ var __webpack_module_cache__ = {}; 111/******/ 112/******/ // The require function 113/******/ function __webpack_require__(moduleId) { 114/******/ // Check if module is in cache 115/******/ var cachedModule = __webpack_module_cache__[moduleId]; 116/******/ if (cachedModule !== undefined) { 117/******/ return cachedModule.exports; 118/******/ } 119/******/ // Create a new module (and put it into the cache) 120/******/ var module = __webpack_module_cache__[moduleId] = { 121/******/ // no module.id needed 122/******/ // no module.loaded needed 123/******/ exports: {} 124/******/ }; 125/******/ 126/******/ // Execute the module function 127/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); 128/******/ 129/******/ // Return the exports of the module 130/******/ return module.exports; 131/******/ } 132/******/ 133/************************************************************************/ 134/******/ /* webpack/runtime/define property getters */ 135/******/ (() => { 136/******/ // define getter functions for harmony exports 137/******/ __webpack_require__.d = (exports, definition) => { 138/******/ for(var key in definition) { 139/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { 140/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); 141/******/ } 142/******/ } 143/******/ }; 144/******/ })(); 145/******/ 146/******/ /* webpack/runtime/hasOwnProperty shorthand */ 147/******/ (() => { 148/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) 149/******/ })(); 150/******/ 151/******/ /* webpack/runtime/make namespace object */ 152/******/ (() => { 153/******/ // define __esModule on exports 154/******/ __webpack_require__.r = (exports) => { 155/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { 156/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); 157/******/ } 158/******/ Object.defineProperty(exports, '__esModule', { value: true }); 159/******/ }; 160/******/ })(); 161/******/ 162/************************************************************************/ 163var __webpack_exports__ = {}; 164// This entry needs to be wrapped in an IIFE because it needs to be isolated against other modules in the chunk. 165(() => { 166/*!**********************!*\ 167 !*** ./src/index.js ***! 168 \**********************/ 169__webpack_require__.r(__webpack_exports__); 170/* harmony import */ var _scss_main_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./scss/main.scss */ "./src/scss/main.scss"); 171/* harmony import */ var _js_main__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./js/main */ "./src/js/main.js"); 172/* harmony import */ var _js_plugin_overrides_wpcf7__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./js/plugin-overrides/wpcf7 */ "./src/js/plugin-overrides/wpcf7.js"); 173 174 175 176}
176)(); 177 178/******/ })() 179; 180//# sourceMappingURL=index.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.