PageSourceSearch

https://keeponracing.de/wp-content/plugins/wp-gdpr-core/assets/js/jetpack_comments.js?m=1545995053

js keeponracing.de collected 2026-10-04 21:32:57 UTC 1,846 bytes, 64 lines download raw bytes

1jQuery(function ($) {
2    var url = localized_object.url;
3
4    //find checkbox
5    //on document change dissable submit button when checkbox is not checked
6    var gdpr_checkbox = $('input#gdpr');
7    var comments_submit_button = $('#comments').find(':submit');
8    //on document load disable button to add comments
9    comments_submit_button.prop('disabled', true);
10    comments_submit_button.addClass('gdpr-disabled');
11
12    var data = {
13        'action': localized_object.action,
14        'action_switch': 'toggle_gdpr_checbox',
15    };
16
17    $(gdpr_checkbox).on('change', function (e) {
18        if (gdpr_checkbox.prop('checked') === true) {
19            data.gdpr_checked = true;
20        }else{
21            data.gdpr_checked = false;
22        }
23        data.gdpr_location = window.location.href;
24
25        $.ajax({
26            type: 'POST',
27            url: url,
28            data: data,
29            dataType: 'json',
30            success: function (data) {
31            }
32        });
33
34
35    });
36
37    //on checkbox add or remove disable on submit button
38    $(gdpr_checkbox).on('click', function(){
39        //when is clicked and has class disabled
40        if(gdpr_checkbox.prop('checked')===true && comments_submit_button.hasClass('gdpr-disabled')) {
41            // if checkbox is checked..
42            comments_submit_button.removeProp('disabled');
43            comments_submit_button.removeClass('gdpr-disabled');
44        } else {
45            // if checkbox is not checked..
46            comments_submit_button.prop('disabled', true);
47            comments_submit_button.addClass('gdpr-disabled');
48
49        }
50    });
51
52    data.gdpr_checked = false;
53    data.gdpr_location = window.location.href;
54
55    $.ajax({
56        type: 'POST',
57        url: url,
58        data: data,
59        dataType: 'json',
60        success: function (data) {
61        }
62    });
63});
64

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.