Updated build process of ACF Block.

Added initBlock function.
This commit is contained in:
2022-12-08 04:56:45 +02:00
parent 0d3ae8f03e
commit a61510f136
3 changed files with 37 additions and 38 deletions
+5
View File
@@ -1,5 +1,10 @@
'use strict';
// Blocks Initialization.
function initBlock(blockName = '', selector = '', cb) {
document.querySelectorAll(selector).forEach((el) => cb(el));
}
// Scrollbars / Frame resizes notifications.
(function () {
let height;