PageSourceSearch

https://parchment.eu/wp-content/themes/wp-parchment/blocks/accordion/accordion.js?ver=6.8.0.1

js parchment.eu collected 2026-09-29 15:48:49 UTC 954 bytes, 36 lines download raw bytes

1jQuery(document).ready(function($){
2
3	$('.ACCORDION .toggle').click(function(){
4		var rows = $(this).parents('.rows');
5		var row = $(this).parents('.row');
6		var container = $(this).parents('.row').find('.container')[0];
7
8		if(rows.hasClass('alt-singular')){
9			rows.find('.row').removeClass('alt-active');
10			rows.find('.container').css({maxHeight: ''});
11		}
12
13		row.toggleClass('alt-active');
14
15		if(container.style.maxHeight){
16			container.style.maxHeight = null;
17			$(this).text('Expand');
18		}else{
19			container.style.maxHeight = container.scrollHeight + 'px';
20			$(this).text('Collapse');
21		}
22	});
23
24
25
26	$(window).resize(function(){
27		$('.ACCORDION .row.alt-active .container').each(function(){
28			$(this).css({maxHeight: 'none'});
29			$(this).css({maxHeight: $(this).outerHeight() + 'px'});
30		});
31
32		$('.ACCORDION[data-style="image"]').each(function(){
33			$(this).find('.rows').css({minHeight: $(this).find('.image').height()});
34		});
35	}).resize();
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.