PageSourceSearch

https://coeliac.ie/wp-content/plugins/learndash-course-grid//assets/js/elementor.js?ver=2.0.7

js coeliac.ie collected 2026-09-24 11:26:13 UTC 1,372 bytes, 38 lines download raw bytes

1/**
2 * Elementor compatibility script
3 */
4
5( function() {
6    let gridFound, masonryFound;
7    const gridObserver = new MutationObserver( function( mutations ) {
8        mutations.forEach( function( mutationRecord ) {
9            const grid = mutationRecord.target.querySelector( '.learndash-course-grid' ),
10                skin = grid.dataset.skin,
11                display = mutationRecord.target.style.display;
12
13            if ( 'none' !== display ) {
14                if ( 'grid' === skin ) {
15                    gridFound = true;
16                } else if ( 'masonry' === skin ) {
17                    masonryFound = true;
18                }
19            }
20        } );
21
22        if ( gridFound && 'function' === typeof learndash_course_grid_init_grid_responsive_design ) {
23            learndash_course_grid_init_grid_responsive_design();
24        }
25
26        if ( masonryFound && 'function' === typeof learndash_course_grid_init_masonry_responsive_design ) {
27            learndash_course_grid_init_masonry_responsive_design();
28        }
29    } );
30    
31    const grids = document.querySelectorAll( '.learndash-course-grid' );
32    grids.forEach( function( grid ) {
33        const target = grid.closest( '.elementor-tab-content' );
34        if ( target ) {
35            gridObserver.observe( target, { attributes : true, attributeFilter : [ 'style' ] } );
36        }
37    } );
38} )();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.