PageSourceSearch

https://bnldata.com.br/wp-content/plugins/sync-ads/assets/js/sync.js?ver=648646832

js bnldata.com.br collected 2026-10-01 11:34:18 UTC 2,101 bytes, 70 lines download raw bytes

1jQuery(document).ready(function($){
2    // $('.syncad:not(.is-code)').each(function(index, el) {
3    //     const $wrap = $(el);
4    //     const id = $wrap.data('id');
5    //     const pageType = $wrap.data('page-type');
6    //     const objectId = $wrap.data('object-id');
7    //     const responsivo = $(window).width() < 768 ? 'mobile' : 'desktop';
8
9    //     if (!id) return;
10
11    //     const data = {
12    //         action: 'load_ajax_syncad',
13    //         'place': id,
14    //         'page-type': pageType,
15    //         'object-id': objectId,
16    //         'responsivo': responsivo
17    //     };
18
19        
20    //     $.post(ajaxSyncUrl, data, function(response) {
21    //         $wrap.html(response).hide().fadeIn();
22    //     });
23    // });
24
25    function resizeIframe(iframe) {
26        try {
27            const innerDoc = iframe.contentWindow.document;
28            const contentHeight = innerDoc.body.scrollHeight;
29            iframe.style.height = contentHeight + 'px';
30        } catch (e) {
31            console.warn('Não foi possível redimensionar o iframe (possivelmente domínio diferente).');
32        }
33    }
34
35    // // Quando o iframe terminar de carregar
36    // $('.syncad iframe').on('load', function () {
37    //     resizeIframe(this);
38    // });
39
40    // $(window).on('load resize', function(){
41    //     $('.syncad iframe').each(function(index, el){
42    //         resizeIframe(el);
43    //     });
44    // });
45
46    function countClickAd($el){
47        const id = $el.data('id');
48        const responsivo = $(window).width() > 768 ? 'desktop' : 'mobile';
49        
50        const data = {
51            'action': 'sync_ajax_click',
52            'ad': id,
53            'responsivo': responsivo
54            // 'wpnonce': wpnonce
55        };
56        
57        $.post(ajaxSyncUrl, data, function(response) { 
58            console.log(response);
59        });
60    }
61
62    $('body').on('click', '.syncad:not(.is-code)', function(){
63        countClickAd($(this));
64    });
65
66    // $('body').on('focusin pointerdown', '.syncad iframe', function(){
67    //     countClickAd($(this));
68    // });
69
70});

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.