PageSourceSearch

https://bodyfatgenius.com/wp-content/plugins/wp-meta-data-filter-a…//js/posts_messenger.js?ver=6.1.14

js bodyfatgenius.com collected 2026-10-04 02:16:41 UTC 2,404 bytes, 81 lines download raw bytes

1"use strict";
2
3function mdf_init_posts_messenger() {
4
5    jQuery('#mdf_add_subscr').attr('data-href', location.href);
6    jQuery('#mdf_add_subscr').on('click', function () {
7        var data = {
8            action: "mdf_posts_messenger_add_subscr",
9            user_id: jQuery(this).attr('data-user'),
10            attr: jQuery(".hidden_page_mdf_for_ajax").val(),
11            curr_link: window.location.href,
12            nonce: mdf_posts_messenger_data.nonce
13        };
14        jQuery.post(ajaxurl, data, function (content) {
15            if (content) {
16                var req = content;
17                mdf_redraw_subscr(req);
18            }
19        });
20
21        return false;
22    });
23
24    function mdf_redraw_subscr(data) {
25        jQuery('.mdf_subscr_list ul').append(data);
26        mdf_check_count_subscr();
27        mdf_init_remove_btn();
28    }
29    mdf_init_remove_btn();
30    mdf_check_request_attr();
31
32
33}
34mdf_init_posts_messenger();
35
36function mdf_init_remove_btn() {
37    jQuery('.mdf_remove_subscr').on('click', function () {
38        if (!confirm(mdf_posts_messenger_data.mdf_confirm_lang)) {
39            return false;
40        }
41        var data = {
42            action: "mdf_posts_messenger_remove_subscr",
43            user_id: jQuery(this).attr('data-user'),
44            key: jQuery(this).attr('data-key'),
45            nonce: mdf_posts_messenger_data.nonce
46        };
47
48        jQuery.post(ajaxurl, data, function (content) {
49            var req = JSON.parse(content);
50            jQuery('.mdf_subscr_item_' + req.key).remove();
51            mdf_check_count_subscr();
52
53        });
54
55        return false;
56    });
57
58}
59
60function mdf_check_request_attr() {
61    if (jQuery(".hidden_page_mdf_for_ajax").val() == undefined || jQuery(".hidden_page_mdf_for_ajax").val().length < 1) {
62        jQuery('.mdf_add_subscr_cont').hide();
63    } else {
64        mdf_check_count_subscr();
65    }
66
67}
68
69function mdf_check_count_subscr() {
70    var count_li = jQuery('.mdf_subscr_list ul').first().find('li').length;
71    var max_count = jQuery('.mdf_add_subscr_cont input').attr('data-count');
72
73    if (count_li >= max_count) {
74        jQuery('.mdf_add_subscr_cont').hide();
75    } else {
76        jQuery('.mdf_add_subscr_cont').show();
77        if (jQuery(".hidden_page_mdf_for_ajax").val().length < 1 || jQuery(".hidden_page_mdf_for_ajax").val() == undefined) {
78            jQuery('.mdf_add_subscr_cont').hide();
79        }
80    }
81}

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.