1/*! 2 * Theme Name: Foundry 3 * Author: Forge and Smith 4 * Author URI: https://forgeandsmith.com 5 * Description: Blank theme for Foundry development 6 * Version: 1.0.0 7 * 8 */ 9/* 10 * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development"). 11 * This devtool is neither made for production nor for readable output files. 12 * It uses "eval()" calls to create a separate source file in the browser devtools. 13 * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/) 14 * or disable the default devtool with "devtool: false". 15 * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/). 16 */ 17/******/ (function() { // webpackBootstrap 18/******/ "use strict"; 19/******/ var __webpack_modules__ = ({ 20
21/***/ "./_src/js/helpers/eventsMobileTab.js": 22/*!********************************************!*\ 23 !*** ./_src/js/helpers/eventsMobileTab.js ***! 24 \********************************************/ 25/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 26 27eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* binding */ eventsMobileTab; }\n/* harmony export */ });\nfunction eventsMobileTab() {\n function checkAndApplyMargin() {\n var activeButton = document.querySelector('.tribe-events-c-events-bar__search-button--active');\n var eventRows = document.querySelectorAll('.tribe-events-calendar-list__event-row');\n\n if (activeButton && window.innerWidth <= 768) {\n eventRows.forEach(function (row) {\n row.style.marginTop = '220px';\n });\n } else {\n eventRows.forEach(function (row) {\n row.style.marginTop = '';\n });\n }\n }\n\n checkAndApplyMargin();\n window.addEventListener('resize', checkAndApplyMargin);\n var observer = new MutationObserver(checkAndApplyMargin);\n var targetNode = document.querySelector('body');\n var config = {\n attributes: true,\n childList: true,\n subtree: true\n };\n\n if (targetNode) {\n observer.observe(targetNode, config);\n }\n}\n\n//# sourceURL=webpack://strukture/./_src/js/helpers/eventsMobileTab.js?"); 28 29/***/ }), 30
31/***/ "./_src/js/index.js": 32/*!**************************!*\ 33 !*** ./_src/js/index.js ***! 34 \**************************/ 35/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { 36 37eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _helpers_eventsMobileTab__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./helpers/eventsMobileTab */ \"./_src/js/helpers/eventsMobileTab.js\");\n// use lodash! https://lodash.com/docs/4.17.15\n\n\nvar fndryThemeInitWrapper = function fndryThemeInitWrapper() {\n (0,_helpers_eventsMobileTab__WEBPACK_IMPORTED_MODULE_0__[\"default\"])();\n};\n\nwindow.fndryThemeInitWrapper = fndryThemeInitWrapper; // eslint-disable-next-line no-unused-expressions\n\ndocument.body ? fndryThemeInitWrapper() : document.addEventListener('DOMContentLoaded', fndryThemeInitWrapper, false);\ndocument.addEventListener('DOMContentLoaded', function () {\n if (window.location.href.includes('query')) {\n var section = document.querySelector('.fndry-post-loop');\n\n if (section) {\n section.scrollIntoView({\n behavior: 'smooth'\n });\n }\n }\n\n var tagSection = document.querySelector('.tribe-section-taxonomy--post_tag');\n var eventStatusSection = document.querySelector('.tribe-section-event-status');\n\n if (tagSection) {\n tagSection.style.display = 'none';\n }\n\n if (eventStatusSection) {\n eventStatusSection.style.display = 'none';\n }\n}); // Util function\n\nfunction addFormatter(input, formatFn, callback) {\n if (!input) {\n return;\n }\n\n var oldValue = input === null || input === void 0 ? void 0 : input.value;\n\n var handleInput = function handleInput(event) {\n var result = formatFn(input.value, oldValue, event);\n\n if (typeof result === 'string') {\n input.value = result;\n }\n\n oldValue = input.value;\n\n if (callback !== undefined) {\n callback(input, result);\n }\n };\n\n handleInput();\n input.addEventListener('input', handleInput);\n} // Example implementation\n// HOF returning regex prefix formatter\n\n\nfunction createRegexFormatter(regex, defaultValue) {\n return function (newValue, oldValue) {\n return regex.test(newValue) ? newValue : newValue ? oldValue : defaultValue;\n };\n} // Input field\n\n\nvar input = document.querySelector('.eventurl input'); // Prefix formatter\n\naddFormatter(input, createRegexFormatter(/^https?:\\/\\//, 'https://'));\n\n//# sourceURL=webpack://strukture/./_src/js/index.js?"); 38 39/***/ })
vendor: 2,604 bytes, lines 39-105
39 40 41/******/ }); 42/************************************************************************/ 43/******/ // The module cache 44/******/ var __webpack_module_cache__ = {}; 45/******/ 46/******/ // The require function 47/******/ function __webpack_require__(moduleId) { 48/******/ // Check if module is in cache 49/******/ var cachedModule = __webpack_module_cache__[moduleId]; 50/******/ if (cachedModule !== undefined) { 51/******/ return cachedModule.exports; 52/******/ } 53/******/ // Create a new module (and put it into the cache) 54/******/ var module = __webpack_module_cache__[moduleId] = { 55/******/ // no module.id needed 56/******/ // no module.loaded needed 57/******/ exports: {} 58/******/ }; 59/******/ 60/******/ // Execute the module function 61/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); 62/******/ 63/******/ // Return the exports of the module 64/******/ return module.exports; 65/******/ } 66/******/ 67/************************************************************************/ 68/******/ /* webpack/runtime/define property getters */ 69/******/ !function() { 70/******/ // define getter functions for harmony exports 71/******/ __webpack_require__.d = function(exports, definition) { 72/******/ for(var key in definition) { 73/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { 74/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); 75/******/ } 76/******/ } 77/******/ }; 78/******/ }(); 79/******/ 80/******/ /* webpack/runtime/hasOwnProperty shorthand */ 81/******/ !function() { 82/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); } 83/******/ }(); 84/******/ 85/******/ /* webpack/runtime/make namespace object */ 86/******/ !function() { 87/******/ // define __esModule on exports 88/******/ __webpack_require__.r = function(exports) { 89/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { 90/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); 91/******/ } 92/******/ Object.defineProperty(exports, '__esModule', { value: true }); 93/******/ }; 94/******/ }(); 95/******/ 96/************************************************************************/ 97/******/ 98/******/ // startup 99/******/ // Load entry module and return exports 100/******/ // This entry module can't be inlined because the eval devtool is used. 101/******/ var __webpack_exports__ = __webpack_require__("./_src/js/index.js"); 102/******/ 103/******/ })() 104; 105//# sourceMappingURL=dist.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.