PageSourceSearch

https://www.jun.co.jp/assets/js/article.js

js jun.co.jp collected 2026-09-25 23:54:12 UTC 1,400 bytes, 52 lines download raw bytes

1$(function() {
2	var textArray = [];
3	var htmlArray = [];
4	var leng = 72;
5	var timer = false;
6	$(".column.column--list li").each(function(n){
7		$('.column li:eq('+ n +') > dl > dd > dl > dd').css({opacity : 0});
8		var txt = $('.column li:eq('+ n +') > dl > dd > dl > dd').text();
9		textArray[n] = txt;
10	});
11	$(".column.column--list li").each(function(n){
12		var html = $('.column li:eq('+ n +') .list__bottom--nav').html();
13		htmlArray[n] = '<dl class="list__bottom--nav clearfix">' + html + '</div>';
14	});
15	function textReplace() {
16		$(".column.column--list li").each(function(n){
17			var txt = textArray[n];
18			$('.column li:eq('+ n +') > dl > dd > dl > dd').css({opacity : 1});
19			if(txt.length > leng){
20				txt = txt.substr(0, leng);
21				$('.column li:eq('+ n +') > dl > dd > dl > dd').text(txt + "・・・");
22				$('.column li:eq('+ n +') > dl > dd > dl > dd').append(htmlArray[n]);
23			}
24		});
25	}
26	function setTopSize() {}
27	setTopSize.prototype.top = function() {
28		var winW = $(window).width();
29		var winH = $(window).height();
30		if(winW < 820) {
31			leng = 25;
32		} else {
33			leng = 72;
34		}
35		if (timer !== false) {
36			clearTimeout(timer);
37		}
38		timer = setTimeout(function() {
39			textReplace();
40		}, 200);
41		
42	}
43	var resize = new setTopSize();
44	$(window).resize(function() {
45		resize.top();
46	});
47	resize.top();
48	setTimeout(function() {
49		$('.column.column--list li').matchHeight();
50	},500);
51	
52});

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.