PageSourceSearch

https://tt25.ru/bitrix/templates/aspro_optimus/components/bitrix/news.list/catalog-sections-1/script.js

js tt25.ru collected 2026-09-26 10:30:19 UTC 1,194 bytes, 34 lines download raw bytes

1$(document).ready(function(){
2	$('.articles-list.lists_block.sections .item .button_opener').on('click', function(e){
3	
4        const btnOpen = $(this);
5        const btnOpenTitle = btnOpen.find('.opener');
6        const slideBlock = btnOpen.closest('.item').find('.text.childs');
7        const bOpen = slideBlock.is(':visible');
8        const dur = bOpen ? 200 : 400;
9        const func = (bOpen ? 'slideUp' : 'slideDown');
10        const openText = (typeof(btnOpen.data('open_text')) !== 'undefined' ? btnOpen.data('open_text') : '');
11        const closeText = (typeof(btnOpen.data('close_text')) !== 'undefined' ? btnOpen.data('close_text') : '');
12
13		if(slideBlock.length){
14            slideBlock.velocity(func, {
15                duration: dur, 
16                easing: 'easeOutQuart'
17            });
18            slideBlock.toggleClass('opened');
19			
20			if(slideBlock.hasClass('opened')){
21                btnOpen.addClass('active');
22
23				if(openText.length)
24                    btnOpenTitle.text(openText);
25
26			}else if(!slideBlock.hasClass('opened')){
27                btnOpen.removeClass('active');
28
29				if(closeText.length)
30                    btnOpenTitle.text(closeText);
31			}
32		}
33	})
34});

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.