PageSourceSearch

https://www.kinokuniya.co.jp/js/common/setCommentHight.js

js kinokuniya.co.jp collected 2026-10-01 08:57:02 UTC 1,547 bytes, 68 lines download raw bytes

1$(function(){
2
3	$(window).bind('load',function(){
4	 var n = $(".book_list").size();
5	 var m = $(".book_list2").size();
6
7	 if(n!=0){
8  	 var allCom = $('.book_list').find('.comment');
9  	 //getCommentH(allCom)
10	 }else{
11  	 //getGourp();
12	 };
13
14	 getGourp();
15	});
16
17	function getCommentH(allCom){
18	 var hList = new Array();
19	 allCom.each(function(i){
20  	 hList[i] = $(this).height();
21	 })
22
23	 var maxH = Math.max.apply(null,hList);
24	 $('.comment').css({height:maxH+'px'});
25	};
26
27	function getCommentH_SMT(){
28
29	 var hList_U = new Array();
30	 var hList_D = new Array();
31	 var allCom_U = $('.upper').find('.comment');
32	 var allCom_D = $('.lower').find('.comment');
33
34	 allCom_U.each(function(i){
35  	 hList_U[i] = $(this).height();
36	 })
37
38	 allCom_D.each(function(d){
39  	 hList_D[d] = $(this).height();
40	 })
41
42	 var maxH_U = Math.max.apply(null,hList_U);
43	 var maxH_D = Math.max.apply(null,hList_D);
44	 //$('.upper').find('.comment').css({height:maxH_U+'px'});
45	 //$('.lower').find('.comment').css({height:maxH_D+'px'});
46	};
47
48	function getGourp(){
49	 var allGourp = $('.group');
50	 allGourp.each(function(){
51	   var hList = new Array();
52  	 var gourpCommnet = $(this).find('.comment');
53  	 gourpCommnet.each(function(e){
54  	   hList[e] = $(this).height();
55  	 });
56  	 var maxH = Math.max.apply(null,hList);
57  	 setGroup(gourpCommnet,maxH);
58	 });
59	};
60
61	function setGroup(gourpCommnet,maxH){
62    gourpCommnet.each(function(){
63      $(this).css({height:maxH+'px'});
64    });
65	};
66
67  return false;
68});

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.