PageSourceSearch

https://marketmedia.ru/local/templates/.default/js/articleJs.js?15586973491113

js marketmedia.ru collected 2026-10-02 17:28:10 UTC 1,113 bytes, 36 lines download raw bytes

1$(document).ready(function() {
2    var layerHeight = $('.m-header__info-wrapper--big').height();
3    var marginTop = 131;
4    var mainImgHeight = $('.m-header').height() - marginTop;
5    var articleLinks = $('.articleBody a');
6
7    console.log(layerHeight, mainImgHeight)
8    if (layerHeight > mainImgHeight / 100 * 50) {
9        $('.m-header__info-wrapper--big').addClass('m-header--full')
10    }
11    
12    //установка target blank
13    articleLinks.each(function() {
14        console.log($(this).attr('target'));
15
16        if(!$(this).attr('target')) {
17            $(this).attr('target', '__blank')
18        }
19    });
20
21
22    console.log($(window).height())
23
24    if ($(window).width() > 1024) {
25        $('.m-header').css('height', $(window).height() - 131 + 'px');
26    } else {
27        $('.m-header').css('height', '100%');
28    }
29    $(window).on('resize', function() {
30        if ($(window).width() > 1024) {
31            $('.m-header').css('height', $(window).height() - 131 + 'px');
32        } else {
33            $('.m-header').css('height', '100%');
34        }
35    })
36});

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.