PageSourceSearch

https://www.fukuchigumi.co.jp/wp-content/themes/fukuchi-wp_by-settenlab_3/js/equal-height.js

js fukuchigumi.co.jp collected 2026-10-05 04:06:21 UTC 1,320 bytes, 54 lines download raw bytes

1$(function(){
2
3	function equalBoxHeight(elm, pm, num) {
4		var elm = $(elm);
5
6		elm.each(function (i) {
7			var height;
8			var $this = $(this);
9
10			if (i === 0 || i % num === 0) {
11				if (pm == 'padding') {
12					height = $this.innerHeight();
13
14					for (var n = i + 1; n <= i + num - 1; n++) {
15						if (height < elm.eq(n).innerHeight()) {
16							height = elm.eq(n).innerHeight();
17						}
18					}
19				} else {
20					height = $this.height();
21
22					for (var n = i + 1; n <= i + num - 1; n++) {
23						if (height < elm.eq(n).height()) {
24							height = elm.eq(n).height();
25						}
26					}
27				}
28
29				for (var n = i; n <= i + num - 1; n++) {
30					elm.eq(n).css("height", height + "px");
31				}
32			}
33		});
34	};
35
36	$(window).on('load resize', function(){
37		eq();
38	});
39
40	function eq() {
41		var w = $(window).width();
42
43		if ( w >= 767 ) {
44			$('.post__block-list .post__block-list__ttl').css('height','auto');
45			equalBoxHeight('.post__block-list.life-style .post__block-list__ttl','', 4);
46			equalBoxHeight('.post__block-list.work .post__block-list__ttl','', 4);
47			equalBoxHeight('.post__block-list.culture .post__block-list__ttl','', 4);
48			equalBoxHeight('.post__block-list.play .post__block-list__ttl','', 4);
49			$('.between-post-list__body h3').css('height','auto');
50			equalBoxHeight('.between-post-list__body h3','',4);
51		}
52	}
53
54});

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.