Server : LiteSpeed
System : Linux server51.dnsbootclub.com 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
User : nandedex ( 1060)
PHP Version : 8.1.33
Disable Function : NONE
Directory :  /home/nandedex/public_html/wp-content/plugins12/better-adsmanager/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]


Current File : /home/nandedex/public_html/wp-content/plugins12/better-adsmanager/js/bam.js
var Better_Ads_Manager = (function ($) {
    "use strict";

    return {

        init: function () {

            if (Better_Ads_Manager.ads_state() == false)
                Better_Ads_Manager.blocked_ads_fallback();

        },

        // Get ad state, used to detect ad blocker state
        ads_state: function () {

            // If this is not defined, it means ad blocker disabled it!
            return typeof window.better_ads_adblock != "undefined";

        },


        // Retrieves ads fallback
        blocked_ads_fallback: function () {

            var blocked_ads = [];

            // Collect all ads
            $('.bsac-container').each(function () {

                // Blockers can't detect our image ad code ;)
                if ($(this).data('type') == 'image')
                    return 0;

                blocked_ads.push({
                    'element_id': $(this).attr('id'),
                    'ad_id': $(this).data('adid')
                });

            });

            if (blocked_ads.length < 1)
                return;

            jQuery.ajax({
                url: Better_Ads_Manager_Ajax_URL,
                type: "POST",
                data: {
                    action: 'better_ads_manager_blocked_fallback',
                    ads: blocked_ads
                },
                success: function (data) {

                    var result = JSON.parse(data);

                    $.each(result.ads, function (index, value) {
                        $('#' + value.element_id).html(value.code);
                    });

                }
            });

        }

    };// /return
})(jQuery);

// Load when ready
jQuery(document).ready(function () {

    Better_Ads_Manager.init();

});

F1le Man4ger