PageSourceSearch

https://www.iecaonline.com/wp-content/themes/yoko-ieca-child/assets/js/main.js?ver=1784920160

js iecaonline.com collected 2026-10-03 22:14:24 UTC 2,015 bytes, 74 lines download raw bytes

1// Auto scrolling to top of post module when FacetWP pagination is used
2
3jQuery(document).ready(function($){
4    var firstFacetsLoaded = false;
5	$(document).on('facetwp-loaded', function() {
6		// Scroll to results
7		var verticalOffset = 150,
8			speed = 1000;
9	
10		// Prevent the first scroll
11		if ( firstFacetsLoaded ) {
12			var facetEl = $(".facetwp-bb-module.facetwp-template:visible");
13			if (facetEl.length && !facetEl.hasClass('no-scroll')) {
14				$('html, body').animate({
15					scrollTop: facetEl.offset().top - verticalOffset
16				}, speed);
17			}
18			facetEl.removeClass('no-scroll');
19		} else {
20			firstFacetsLoaded = true;
21			// Code runs only on the first FWP load
22		}
23
24		$('.facetwp-load-more').on('click', function() {
25			var facetEl = $(".facetwp-bb-module.facetwp-template:visible");
26			if (facetEl.length) {
27				facetEl.addClass('no-scroll');
28			}
29		});
30	});
31});
32
33// Making Grid Card Columns Clickable
34/**
35 * Makes a BB Column clickable.
36 * Pre-requisite: There must be an A Tag contained within the column element.
37 */
38jQuery(document).ready(function($){
39    // Exit if BB layout is in edit mode.
40    if ( 'undefined' != typeof window.FLBuilderConfig ) {
41        return;
42    }
43    
44    $('.hover-cards').css('cursor', 'pointer');
45    $('.hover-cards .fl-col').on('click', function(event){
46        $(this).find('a')[0].click();
47    });
48
49    $('.hover-card a').on('click', function(event){
50        event.stopPropagation();
51    });
52});
53
54// Making List Module Items Clickable
55
56/**
57 * Makes a BB list module item clickable.
58 * Pre-requisite: There must be an A Tag contained within the list item.
59 */
60jQuery(document).ready(function($){
61    // Exit if BB layout is in edit mode.
62    if ( 'undefined' != typeof window.FLBuilderConfig ) {
63        return;
64    }
65    
66    $('.fl-list-item').css('cursor', 'pointer');
67    $('.fl-list-item').on('click', function(event){
68        $(this).find('a')[0].click();
69    });
70
71    $('.fl-list-item a').on('click', function(event){
72        event.stopPropagation();
73    });
74})

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.