PageSourceSearch

https://www.eskerhouse.ie/wp-content/themes/eskerhouse-2024/assets/js/custom.js?ver=20261005015227

js eskerhouse.ie collected 2026-10-05 01:53:48 UTC 5,215 bytes, 191 lines download raw bytes

1jQuery('.coleql_height').matchHeight();
2
3jQuery(".custom-accordion").accordionjs();
4
5jQuery(document).ready(function($) {
6jQuery('.stellarnav').stellarNav({
7theme: 'light',
8breakpoint: 768,
9position: 'right',
10});
11});
12
13jQuery(window).scroll(function() {
14if ($(".header").offset().top > 0) {
15jQuery(".header").addClass("fixed-header");
16} else {
17jQuery(".header").removeClass("fixed-header");
18}
19});
20
21
22jQuery('.bannerSlider').slick({
23dots: true,
24arrows: false,
25infinite: true,
26autoplay: true,
27speed: 500,
28fade: false,
29cssEase: 'linear'
30});
31
32
33jQuery('.ServiceSlider').owlCarousel({
34loop:true,
35margin:30,
36responsiveClass:true,
37dots:false,
38nav:true,
39loop:false,
40autoplay: false,
41responsive:{
420:{items:5},
43600:{items:5},
44768:{items:5},
45992:{items:5},
461200:{items:5},
471400:{items:5}
48}
49});
50
51
52jQuery('.NewsSlider').owlCarousel({
53loop:true,
54margin:30,
55responsiveClass:true,
56dots:false,
57nav:true,
58loop:false,
59autoplay: false,
60responsive:{
610:{items:3},
62600:{items:3},
63768:{items:3},
64992:{items:3},
651200:{items:3},
661400:{items:3}
67}
68});
69
70//PhotoSwipe to Masonary Media Grid
71jQuery(document).ready(function () {
72    prepare_photoswipt('.blocks-gallery-grid .blocks-gallery-item figure > a, .gc_open_popup a');
73    prepare_photoswipt('.mi_gallery_block .gallery-item figure > a');
74    prepare_photoswipt('.mi_carousel_block .carousel-item > a');
75    prepare_photoswipt('a.photoswipt');
76});
77function prepare_photoswipt( $selector ){
78
79    // Set Width and Height to images for PhotoSwipe
80    jQuery.each( jQuery( $selector ) , function(){
81        var $jq_a_obj = jQuery(this);
82        
83        var img_obj = new Image();
84        img_obj.onload = function() {
85            $jq_a_obj.attr('data-w',this.width);
86            $jq_a_obj.attr('data-h',this.height);
87        };
88        img_obj.src = $jq_a_obj.attr('href');
89
90        jQuery(this).unbind('click');
91    });
92    
93    jQuery( $selector ).click(function(){
94        open_PhotoSwipe(this, $selector);
95        return false;
96    });
97    
98}
99function open_PhotoSwipe($this,  $selector){
100    var pswpElement = document.querySelectorAll('.pswp')[0];
101    var items = [];
102    var current_item_index = 0;
103    jQuery.each( jQuery($selector) , function(){
104        if( $this == this ){ current_item_index = items.length; }
105        items[items.length] = {
106            src: jQuery(this).attr('href'),
107            w: jQuery(this).attr('data-w'),
108            h: jQuery(this).attr('data-h'),
109            title: jQuery(this).attr('title')
110        };
111    });
112    var options = {
113        index: current_item_index
114    };
115    var gallery = new PhotoSwipe( pswpElement, PhotoSwipeUI_Default, items, options);
116    gallery.init();
117    return false;
118}
119
120
121// DCI Accordions
122jQuery(document).ready(function(){
123
124    jQuery('.ehd-accordions .accordion-heading a').click(function(e){
125        
126
127        var $accordion_item = jQuery(this).parent('.accordion-heading').parent('.accordion-item');
128        
129        // console.log( $accordion_item.find('> .accordion-heading').text() );
130        
131        var $accordion_wrap = $accordion_item.parent('.ehd-accordions');
132
133        var $curr_status = 0;
134        if( !$accordion_item.hasClass('accordion-active') ){
135            $curr_status = 1;
136        }
137        
138        $accordion_wrap.find('.accordion-active .accordion-content').slideUp('fast');
139        $accordion_wrap.find('.accordion-active').removeClass('accordion-active');
140        if( $curr_status ){
141            $accordion_item.find('>.accordion-content').slideDown('fast');
142            $accordion_item.addClass('accordion-active');
143        }
144        
145        return false;
146        
147    });
148
149    var $hash_url = window.location.hash;
150    var $acc_item = jQuery($hash_url).closest('.accordion-item').addClass('accordion-active');
151    $acc_item.find('>.accordion-content').slideDown('fast');
152    // e.preventDefault();
153});
154
155
156// NewsLetter Form Submition (MailChimp)
157jQuery(document).ready(function(){
158    
159    jQuery("form.newsletter-form").submit(function(){
160        
161        var $email = jQuery(this).find('input[name="your-email"]').val();
162
163        jQuery(this).find("[type=submit]").val('Loading...');
164    
165        jQuery("#mc_signup_form #mc_mv_EMAIL").val($email);        
166        jQuery("#mc_signup_form #mc_signup_submit").submit();
167        
168        return false;
169        
170    });
171
172});
173
174// Alert on MailChimp Submit
175jQuery(document).ready(function () {
176
177    jQuery('#mc_signup_form #mc_message').bind('DOMNodeInserted', function() {
178        var $message = jQuery('#mc_signup_form #mc_message').text();
179        alert( $message );
180        jQuery("form.newsletter-form").each(function(){
181            this.reset();
182            var $data_val = jQuery(this).find("[type=submit]").attr('data-value');
183            jQuery(this).find("[type=submit]").val( $data_val );
184            //jQuery(this).find("[type=submit]").text($data_val);
185        });
186        if(jQuery('#mc_signup_form #mc_message .mc_success_msg').length > 0){
187            window.location.replace(HOME_URL+"/newsletter-subscription-thanks/");
188        }
189    });
190
191});

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.