PageSourceSearch

https://iraero.ru/local/templates/main/components/bitrix/news.list/news/script.js?17375967932448

js iraero.ru collected 2026-10-02 06:50:33 UTC 2,448 bytes, 62 lines download raw bytes

1$(document).ready(function(){
2    $('#year_select').change(function(){
3      $(this).parents('form').submit();
4    })
5    var activeImg = function(id){
6        if (id != '') {
7            $('.news .news-img .img').removeClass('active').hide();
8            $('.news .news-img .img[data-id="' + id + '"]').show();
9            setTimeout(function () {
10                $('.news .news-img .img[data-id="' + id + '"]').addClass('active');
11            }, 200);
12        }
13    };
14    //Новости - отображение картинки при наведении на новость
15
16    $('[data-entity="news"] .news-item').hover(function () {
17        var id = $(this).attr('data-name');
18        activeImg(id);
19    });
20    $('[data-entity="news"] .news-item-img-hide .img').each(function(k, el){
21        $('.news-img.import-image-block').append($(el));
22    });
23    
24    $('.news .news-img .img').eq(0).show().addClass('active');
25    
26    $(document).on('click', '#load-more-container .load-more-news', function(e){
27        e.preventDefault();
28
29        var $news = $('[data-entity="news"]').first(),          
30            url =  $(this).attr('href');    
31
32        if (url !== undefined) {
33            $.ajax({
34                type: 'GET',
35                url: url,
36                data: {'PARAMS':js_news_params.PARAMS,'TEMPLATE':js_news_params.TEMPLATE,'YEAR':js_news_params.YEAR,'CHECK':js_news_params.CHECK},
37                dataType: 'html',
38                success: function(data){
39
40                    //  Удаляем старую навигацию
41                    var elements = $(data).find('[data-entity="new"]'), 
42                        lazy = $(data).find('.load-more-news'),
43                        pagination = $(data).find('.pagination').html();
44                        elements.hover(function () {
45                            var id = $(this).attr('data-name');
46                            activeImg(id);
47                        });
48                        elements.find('.img').each(function(k, el){  
49                            $('.news-img.import-image-block').append($(el));
50                        });
51                    $news.hide().append(elements).fadeIn(400); 
52                    $("#load-more-container").html(lazy); 
53                    $(".pagination").html(pagination); 
54
55                }
56            })
57        }
58        return false;
59
60    });
61
62});

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.