Skip to content

Commit

Permalink
Merge pull request #55 from wtey-webmd/feature/AP-703
Browse files Browse the repository at this point in the history
AP-703: update build
  • Loading branch information
nedSaf authored Jun 5, 2024
2 parents 4036dc0 + 73d3fbd commit 68fbc11
Show file tree
Hide file tree
Showing 3 changed files with 210 additions and 221 deletions.
43 changes: 16 additions & 27 deletions build/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ return /******/ (function(modules) { // webpackBootstrap
/*! no static exports found */
/***/ (function(module, exports) {

eval("/**\n * Frontend script\n */\nconst gallery = document.getElementsByClassName('wp-block-coliquio-image-gallery');\nconst iFrame = document.getElementsByClassName('wp-block-coliquio-iframe');\n/**\n * Gallery Block\n */\n\nfunction onOpenGallery() {\n gallery[0].getElementsByClassName('image-gallery-overlay')[0].style.display = 'block';\n document.querySelectorAll('.btn-close-gallery').forEach(node => node.addEventListener('click', onCloseGallery));\n}\n\nfunction onCloseGallery() {\n gallery[0].getElementsByClassName('image-gallery-overlay')[0].style.display = 'none';\n document.querySelectorAll('.btn-close-gallery').forEach(node => node.removeEventListener('click', onCloseGallery));\n}\n\nif (gallery.length > 0) {\n gallery[0].getElementsByClassName('btn-open-gallery')[0].addEventListener('click', onOpenGallery);\n}\n/**\n * iFrame Block\n */\n\n\nif (iFrame.length > 0) {\n const iFrameNode = iFrame[0]; // Only run script if set to 'dynamic'\n\n if (iFrameNode.height === 0) {\n window.addEventListener('message', function (e) {\n const eventName = e.data[0];\n const height = e.data[1];\n\n switch (eventName) {\n case 'setHeight':\n // +2 to compensate for the border\n iFrameNode.height = height + 2;\n break;\n }\n }, false);\n }\n}\n\n//# sourceURL=webpack:///./src/scripts.js?");
eval("/**\n * Frontend script\n */\n\nconst gallery = document.getElementsByClassName('wp-block-coliquio-image-gallery');\nconst iFrame = document.getElementsByClassName('wp-block-coliquio-iframe');\n\n/**\n * Gallery Block\n */\nfunction onOpenGallery() {\n gallery[0].getElementsByClassName('image-gallery-overlay')[0].style.display = 'block';\n document.querySelectorAll('.btn-close-gallery').forEach(node => node.addEventListener('click', onCloseGallery));\n}\nfunction onCloseGallery() {\n gallery[0].getElementsByClassName('image-gallery-overlay')[0].style.display = 'none';\n document.querySelectorAll('.btn-close-gallery').forEach(node => node.removeEventListener('click', onCloseGallery));\n}\nif (gallery.length > 0) {\n gallery[0].getElementsByClassName('btn-open-gallery')[0].addEventListener('click', onOpenGallery);\n}\n\n/**\n * iFrame Block\n */\nif (iFrame.length > 0) {\n const iFrameNode = iFrame[0];\n\n // Only run script if set to 'dynamic'\n if (iFrameNode.height === 0) {\n window.addEventListener('message', function (e) {\n const eventName = e.data[0];\n const height = e.data[1];\n switch (eventName) {\n case 'setHeight':\n // +2 to compensate for the border\n iFrameNode.height = height + 2;\n break;\n }\n }, false);\n }\n}\n\n//# sourceURL=webpack:///./src/scripts.js?");

/***/ })

Expand Down
Loading

0 comments on commit 68fbc11

Please sign in to comment.