PluginProbe
Blockenberg — 600+ Advanced Gutenberg Blocks & AI Agent for WordPress Block Editor / 2.0.8
Blockenberg — 600+ Advanced Gutenberg Blocks & AI Agent for WordPress Block Editor v2.0.8
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 / column / frontend.js

frontend.js in Blockenberg — 600+ Advanced Gutenberg Blocks & AI Agent for WordPress Block Editor 2.0.8, at blocks/column/frontend.js

27 lines 703 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /**
2 * Column Block Frontend
3 * Handles responsive behavior for columns
4 */
5 (function() {
6 'use strict';
7
8 // Column blocks are primarily CSS-based on the frontend
9 // CSS variables handle responsive widths via media queries
10
11 function initColumns() {
12 var columns = document.querySelectorAll('.bkbg-column');
13
14 columns.forEach(function(column) {
15 // Add initialized class
16 column.classList.add('bkbg-column--initialized');
17 });
18 }
19
20 // Initialize on DOM ready
21 if (document.readyState === 'loading') {
22 document.addEventListener('DOMContentLoaded', initColumns);
23 } else {
24 initColumns();
25 }
26 })();
27