PageSourceSearch

https://www.oldportcorporation.com/modules/custom/newsletter_popup/assets/js/newsletter_popup.js?v=1.x

js oldportcorporation.com collected 2026-10-04 02:27:34 UTC 1,092 bytes, 26 lines download raw bytes

1((Drupal, cookies, $) => {
2    Drupal.behaviors.myModule = {
3        attach: () => {
4            if(typeof cookies.get('newsletter-popup-hidden') === 'undefined') {
5                $('#newsletter-popup').removeClass('hidden');
6            }
7            $('#edit-important-message-color').spectrum({
8                showInput: true,
9                preferredFormat: 'hex'
10            });
11            $('.newsletter-popup-close').on('click', function(){
12                $(this).parents('#newsletter-popup').addClass('newsletter-popup-hidden');
13                $(this).parents('#newsletter-popup').fadeOut(200);
14                var data = {};
15                if(typeof newsletterPopupCookieDelay !== 'undefined'){
16                    if(newsletterPopupCookieDelay === -1){
17                        data.expires = 99999;
18                    } else{
19                        data.expires = newsletterPopupCookieDelay ;
20                    }
21                }
22                cookies.set('newsletter-popup-hidden', 'true', data);
23            });
24        },
25    };
26})(Drupal, window.Cookies, jQuery);

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.