PageSourceSearch

https://www.tenfour.co.jp/js/jquery.tile.js

js tenfour.co.jp collected 2026-10-04 06:56:48 UTC 1,510 bytes, 55 lines download raw bytes

1/**
2 * Flatten height same as the highest element for each row.
3 *
4 * Copyright (c) 2011 Hayato Takenaka
5 * Dual licensed under the MIT and GPL licenses:
6 * http://www.opensource.org/licenses/mit-license.php
7 * http://www.gnu.org/licenses/gpl.html
8 * @author: Hayato Takenaka (https://github.com/urin/jquery.tile.js)
9 * @version: 0.0.3
10**/
11
12;(function($) {
13	$.fn.tile = function(columns) {
14		var tiles, max, c, h, last = this.length - 1, s;
15		if(!columns) columns = this.length;
16		this.each(function() {
17			s = this.style;
18			if(s.removeProperty) s.removeProperty("height");
19			else if(s.removeAttribute) s.removeAttribute("height");
20		});
21		return this.each(function(i) {
22			c = i % columns;
23			if(c == 0) tiles = [];
24			tiles[c] = $(this);
25			h = tiles[c].height();
26			if(c == 0 || h > max) max = h;
27			if(i == last || c == columns - 1)
28				$.each(tiles, function() { this.height(max); });
29		});
30	};
31})(jQuery);
32
33//gyakutile add
34(function($) {
35	
36	$.fn.mintile = function(columns) {
37		var tiles, min, c, h, last = this.length - 1, s;
38		if(!columns) columns = this.length;
39		this.each(function() {
40			s = this.style;
41			if(s.removeProperty) s.removeProperty("height");
42			else if(s.removeAttribute) s.removeAttribute("height");
43		});
44		return this.each(function(i) {
45			c = i % columns;
46			if(c == 0) tiles = [];
47			tiles[c] = $(this);
48			h = tiles[c].height();
49			if(c == 0 || h < min) min = h;
50			if(i == last || c == columns - 1)
51				$.each(tiles, function() { this.height(min); });
52		});
53		
54	};
55})(jQuery);

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.