| 1 |
/** |
| 2 |
* Row Block Frontend |
| 3 |
* Handles responsive behavior for rows |
| 4 |
*/ |
| 5 |
(function() { |
| 6 |
'use strict'; |
| 7 |
|
| 8 |
// Row blocks are primarily CSS-based on the frontend |
| 9 |
// This file can be extended for future features like: |
| 10 |
// - Dynamic reordering |
| 11 |
// - Animation on scroll |
| 12 |
// - Lazy loading content |
| 13 |
|
| 14 |
function initRows() { |
| 15 |
var rows = document.querySelectorAll('.bkbg-row'); |
| 16 |
|
| 17 |
rows.forEach(function(row) { |
| 18 |
// Add any runtime initialization here |
| 19 |
row.classList.add('bkbg-row--initialized'); |
| 20 |
}); |
| 21 |
} |
| 22 |
|
| 23 |
// Initialize on DOM ready |
| 24 |
if (document.readyState === 'loading') { |
| 25 |
document.addEventListener('DOMContentLoaded', initRows); |
| 26 |
} else { |
| 27 |
initRows(); |
| 28 |
} |
| 29 |
})(); |
| 30 |
|