PageSourceSearch

https://www.wildhive.com/wp-content/plugins/newfangled-privacy/js/control_popup.js?v=1.1.8&ver=7.0.5

js wildhive.com collected 2026-10-07 16:05:02 UTC 2,725 bytes, 110 lines download raw bytes

1var activeFormId;
2var noticeRead;
3
4
5jQuery('body').on('click', '.js--nfprivacypopup a', function(e){
6
7    openNFPrivacyModal(e, this);
8});
9
10jQuery('body').on('click', '.ginput_container_nfprivacy [data-forceread="true"]', function(e){
11    if (!noticeRead) {
12        openNFPrivacyModal(e, this);
13    }
14});
15
16jQuery('body').on('keyup', '.nfprivacy-modal-open', function(e) {
17    if (e.keyCode === 27) {
18
19        if (jQuery('body').hasClass('nfprivacy-modal-mustread')) {
20            return;
21        }
22
23        closeNFPrivacyModal(e);
24    }
25});
26
27jQuery('body').on('click', '#nfprivacy-modal-dimm', function(e) {
28
29    if (jQuery('body').hasClass('nfprivacy-modal-mustread')) {
30        return;
31    }
32
33    closeNFPrivacyModal(e);
34});
35
36jQuery('body').on('click', '.nfprivacy-modal-confirm', function(e) {
37
38    if (activeFormId) {
39        jQuery('form[id="' + activeFormId + '"] .nfprivacy-notice-checkbox').prop('checked', true );
40        noticeRead = true;
41    }
42
43    closeNFPrivacyModal(e);
44});
45
46
47jQuery('body').on('click', '.nfprivacy-modal-close-bottom', function(e) {
48
49    if (activeFormId) {
50        noticeRead = true;
51    }
52
53    closeNFPrivacyModal(e);
54});
55
56
57jQuery('body').on('click', '.js--nfprivacy-modal-close', closeNFPrivacyModal );
58
59jQuery('#nfprivacy-modal').scroll( function() {
60    jQuery('#nfprivacy-modal .nfprivacy-modal-scrollmessage').fadeOut();
61});
62
63function closeNFPrivacyModal( event ) {
64    event.preventDefault();
65    event.stopPropagation();
66    jQuery('body').removeClass('nfprivacy-modal-open');
67    jQuery('body').removeClass('nfprivacy-modal-mustread');
68}
69
70function openNFPrivacyModal( event, trigger ) {
71
72    event.preventDefault();
73    event.stopPropagation();
74    
75    var _$this = jQuery(trigger);
76    var _href;
77
78    if ( _$this.attr('href') ) {
79        _href = _$this.attr('href')
80    } 
81
82    else if ( _$this.attr('data-noticeurl') ) {
83        _href = _$this.attr('data-noticeurl');  
84        jQuery('body').addClass('nfprivacy-modal-mustread');      
85    }
86
87    if (_$this.closest('form').attr('id')) {
88        activeFormId = _$this.closest('form').attr('id');
89    }
90
91    jQuery('body').addClass('nfprivacy-modal-open');
92    jQuery("#nfprivacy-modal > *").hide();
93    jQuery('#nfprivacy-modal').addClass('modal-loading');
94
95    jQuery.ajax({
96        type: "POST",
97        url: nfprivacy_ajax_object.ajax_url,
98        data: {
99            action: 'nfprivacy_load_ajax_content',
100            popup_url: _href,
101        },
102        cache: false,
103        success: function(html){
104            jQuery("#nfprivacy-modal .nfprivacy-modal-body-inner").html( html );
105            jQuery("#nfprivacy-modal > *").show();
106            jQuery('#nfprivacy-modal').removeClass('modal-loading');
107        }
108    });
109
110}

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.