PluginProbe
Blockenberg — 600+ Advanced Gutenberg Blocks & AI Agent for WordPress Block Editor / 2.0.7
Blockenberg — 600+ Advanced Gutenberg Blocks & AI Agent for WordPress Block Editor v2.0.7
2.0.13 2.0.12 2.0.11 2.0.10 2.0.9 trunk 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8
blockenberg / blocks / text-stroke / frontend.js

frontend.js in Blockenberg — 600+ Advanced Gutenberg Blocks & AI Agent for WordPress Block Editor 2.0.7, at blocks/text-stroke/frontend.js

23 lines 610 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 (function () {
2 'use strict';
3
4 function initTextStroke(wrap) {
5 var hoverFill = wrap.dataset.hoverFill;
6 var hoverStroke = wrap.dataset.hoverStroke;
7
8 if (hoverFill) wrap.style.setProperty('--bkts-hover-fill', hoverFill);
9 if (hoverStroke) wrap.style.setProperty('--bkts-hover-stroke', hoverStroke);
10 }
11
12 function init() {
13 document.querySelectorAll('.bkts-wrap[data-hover]').forEach(initTextStroke);
14 }
15
16 if (document.readyState === 'loading') {
17 document.addEventListener('DOMContentLoaded', init);
18 } else {
19 init();
20 }
21
22 }());
23