You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
5.9 KiB
32 lines
5.9 KiB
/* |
|
* ATTENTION: An "eval-source-map" devtool has been used. |
|
* This devtool is neither made for production nor for readable output files. |
|
* It uses "eval()" calls to create a separate source file with attached SourceMaps 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/). |
|
*/ |
|
/******/ (function() { // webpackBootstrap |
|
/******/ var __webpack_modules__ = ({ |
|
|
|
/***/ "./assets/scripts/customizer-toggle.js": |
|
/*!*********************************************!*\ |
|
!*** ./assets/scripts/customizer-toggle.js ***! |
|
\*********************************************/ |
|
/***/ (function() { |
|
|
|
eval("document.addEventListener('DOMContentLoaded', function () {\n var checkbox = document.getElementById('_customize-input-pb_network_contact_form');\n var email = document.getElementById('customize-control-pb_network_contact_email');\n var link = document.getElementById('customize-control-pb_network_contact_link');\n var title = document.getElementById('customize-control-pb_network_contact_form_title');\n checkbox.addEventListener('click', toggleReadOnly);\n /**\n *\n */\n\n function toggleReadOnly() {\n if (checkbox.checked === false) {\n email.classList.add('hidden');\n email.style.cssText = null;\n title.classList.add('hidden');\n title.style.cssText = null;\n link.classList.remove('hidden');\n link.style.cssText = 'display: list-item;';\n } else {\n email.classList.remove('hidden');\n email.style.cssText = 'display: list-item;';\n title.classList.remove('hidden');\n title.style.cssText = 'display: list-item;';\n link.classList.add('hidden');\n link.style.cssText = null;\n }\n }\n\n toggleReadOnly();\n});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AcHJlc3Nib29rcy9wcmVzc2Jvb2tzLWFsZGluZS8uL2Fzc2V0cy9zY3JpcHRzL2N1c3RvbWl6ZXItdG9nZ2xlLmpzP2U0Y2IiXSwibm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x0dG9nZ2xlUmVhZE9ubHkoKTtcblxufSApO1xuIl0sImZpbGUiOiIuL2Fzc2V0cy9zY3JpcHRzL2N1c3RvbWl6ZXItdG9nZ2xlLmpzLmpzIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./assets/scripts/customizer-toggle.js\n"); |
|
|
|
/***/ }) |
|
|
|
/******/ }); |
|
/************************************************************************/ |
|
/******/ |
|
/******/ // startup |
|
/******/ // Load entry module and return exports |
|
/******/ // This entry module can't be inlined because the eval-source-map devtool is used. |
|
/******/ var __webpack_exports__ = {}; |
|
/******/ __webpack_modules__["./assets/scripts/customizer-toggle.js"](); |
|
/******/ |
|
/******/ })() |
|
; |