# blockenberg/2.0.7/blocks/job-listing/frontend.js

Blockenberg — 600+ Advanced Gutenberg Blocks &amp; AI Agent for WordPress Block Editor, version 2.0.7. 40 lines.

- Page: https://pluginprobe.com/plugins/blockenberg/2.0.7/code/blocks/job-listing/frontend.js
- Raw: https://pluginprobe.com/plugins/blockenberg/2.0.7/raw/blocks/job-listing/frontend.js
- Modified: 2026-03-06T12:32:40+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/blockenberg/2.0.7/code/blocks/job-listing/frontend.js#L10-L20`.

```javascript
/* Job Listing — frontend */
(function () {
    'use strict';

    function init() {
        document.querySelectorAll('.bkjl-wrap').forEach(function (wrap) {
            if (wrap._bkjlInit) { return; }
            wrap._bkjlInit = true;

            /* Secondary button hover — mirror primary button colour */
            var applyBtn = wrap.querySelector('.bkjl-btn-apply');
            var secBtn   = wrap.querySelector('.bkjl-btn-secondary');

            if (applyBtn && secBtn) {
                var primaryBg   = applyBtn.style.background || applyBtn.style.backgroundColor || '#6c3fb5';
                var primaryText = applyBtn.style.color || '#ffffff';

                var origBg    = secBtn.style.background || secBtn.style.backgroundColor || '';
                var origColor = secBtn.style.color || '';

                secBtn.addEventListener('mouseenter', function () {
                    secBtn.style.background = primaryBg;
                    secBtn.style.color      = primaryText;
                });

                secBtn.addEventListener('mouseleave', function () {
                    secBtn.style.background = origBg;
                    secBtn.style.color      = origColor;
                });
            }
        });
    }

    if (document.readyState === 'loading') {
        document.addEventListener('DOMContentLoaded', init);
    } else {
        init();
    }
}());

```
