/* =========================================================== -- DO NOT EDIT!!!---------------------------------------- -- THIS IS A GENERATED FILE. CHANGES WILL BE OVERWRITTEN -- =========================================================== */ /* * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development"). * This devtool is neither made for production nor for readable output files. * It uses "eval()" calls to create a separate source file in the browser devtools. * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/) * or disable the default devtool with "devtool: false". * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/). */ /******/ (() => { // webpackBootstrap /******/ "use strict"; /******/ var __webpack_modules__ = ({ /***/ "./src/scripts/sections/promobar.js": /*!******************************************!*\ !*** ./src/scripts/sections/promobar.js ***! \******************************************/ /***/ (() => { eval("\n\nfunction promobar() {\n var promobarBlocks = document.querySelectorAll('[data-promobar-block]');\n\n if (!promobarBlocks.length) {\n return;\n }\n\n setInterval(function () {\n promobarBlocks.forEach(function (promobarBlock) {\n promobarBlock.classList.toggle('hide');\n });\n }, 7000);\n}\n\ndocument.addEventListener('DOMContentLoaded', function () {\n promobar();\n});\ndocument.addEventListener('shopify:section:load', function () {\n promobar();\n});\n\n//# sourceURL=webpack://starter-theme/./src/scripts/sections/promobar.js?"); /***/ }) /******/ }); /************************************************************************/ /******/ /******/ // startup /******/ // Load entry module and return exports /******/ // This entry module can't be inlined because the eval devtool is used. /******/ var __webpack_exports__ = {}; /******/ __webpack_modules__["./src/scripts/sections/promobar.js"](); /******/ /******/ })() ;