PageSourceSearch

https://armeniaonline.ru/local/templates/armeniaonline/js/watch_banner.js?16710927351387

js armeniaonline.ru collected 2026-10-02 17:06:40 UTC 1,387 bytes, 43 lines download raw bytes

1$(function (){
2    $('body').on('click', '[data-banner-link]', function (e){
3        e.preventDefault();
4        let self = $(this), banner_id = self.data('banner-id'), link = self.data('banner-link');
5        if(!banner_id) console.error('banner not found');
6        if(!link) console.error('link no found');
7        if(!banner_id || !link){
8            return false;
9        }
10
11        $.post('/_ajax/watch_banner_click.php', {
12            BANNER_ID : banner_id,
13            ACTION : 'CLICK',
14        }, function (response){
15            if(response.STATUS == 'Y'){
16                window.location = link;
17            }else{
18                console.error(response.ERRORS);
19            }
20        })
21    });
22    if($('[data-banner-id]')){
23        $('[data-banner-id]').each(function (){
24            let self = $(this), banner_id = self.data('banner-id');
25
26            if(!banner_id){
27                console.error('banner not found');
28                return false;
29            }
30
31            $.post('/_ajax/watch_banner_click.php', {
32                BANNER_ID : banner_id,
33                ACTION : 'SHOW',
34            }, function (response){
35                if(response.STATUS == 'Y'){
36                    console.info('set count show banner-id '+banner_id);
37                }else{
38                    console.error(response.ERRORS);
39                }
40            })
41        });
42    }
43});

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.