PageSourceSearch

https://blog.salespanel.io/wp-content/themes/hestia-child/assets/js/scripts.js?ver=2.1.0

js salespanel.io collected 2026-09-24 09:03:10 UTC 2,564 bytes, 49 lines download raw bytes

1jQuery(document).ready(function($) {
2    $(document).on('click', 'a[href^="#"]', function (event) {
3        event.preventDefault();
4
5        $('html, body').animate({
6            scrollTop: $($.attr(this, 'href')).offset().top - 95
7        }, 1000);
8    }).on('click', '.mc-signup-form-modal-trigger', function (event) {
9        event.preventDefault();
10        $('#mc-signup-form-modal').modal('show');
11    }).on('submit', '#mc-embedded-subscribe-form', function(event) {
12        /* Act on the event */
13        sp.ga('event', 'form-submitted', 'mailchimp-subscriber-form' );
14        $salespanel.push(["set", "activity:customActivity", "blog", "form submitted", "Mailchimp Subscriber Form", sp.meta_payload]);
15        $('#mc-signup-form-modal').modal('hide');
16        Cookies.set('mc_subscribed', 1, { expires : 365 });
17    }).on('click', '.ebook-zero-comm-alignment-popup-close', function (event) {
18        event.preventDefault();
19        $('#ebook-zero-comm-alignment-popup').addClass('hide hidden');
20        $salespanel.push(["set", "activity:customActivity", "blog", "popup hidden", "Zero Communication Alignment Promotion Popup", sp.meta_payload]);
21        Cookies.set('ebook_promotion_hidden', 1);
22    }).on('click', '.ebook-zero-comm-alignment-popup-footer-cta', function (event) {
23        $('#ebook-zero-comm-alignment-popup').addClass('hide hidden');
24        $salespanel.push(["set", "activity:customActivity", "blog", "popup converted", "Zero Communication Alignment Promotion Popup", sp.meta_payload]);
25        Cookies.set('ebook_promotion_hidden', 1);
26    });
27
28    var $scroll = $(window).scrollTop();
29    var $half_page = $(document).height() / 3;
30    var $modal_hidden = false;
31    
32    $(window).scroll(function() {
33        $scroll = $(window).scrollTop();
34        if ($scroll > $half_page && $('body').hasClass('single-post') && ! $modal_hidden) {
35            if ( $('#mc-signup-form-modal').length ) {
36                $('#mc-signup-form-modal').modal('show');
37            }
38        }
39    });
40
41    $('#mc-signup-form-modal').on('shown.bs.modal', function (e) {
42        sp.ga('event', 'modal-shown', 'mailchimp-subscriber-form' );
43        $salespanel.push(["set", "activity:customActivity", "blog", "modal shown", "Mailchimp Subscriber Form", sp.meta_payload]);
44    }).on('hidden.bs.modal', function (e) {
45        $modal_hidden = true;
46        sp.ga('event', 'modal-hidden', 'mailchimp-subscriber-form' );
47        $salespanel.push(["set", "activity:customActivity", "blog", "modal hidden", "Mailchimp Subscriber Form", sp.meta_payload]);
48    });
49});

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.