var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; }; if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } } { let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opener = _____WB$wombat$assign$function_____("opener"); /** * Flatten height same as the highest element for each row. * * Copyright (c) 2011 Hayato Takenaka * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html * @author: Hayato Takenaka (http://urin.take-uma.net) * @version: 0.0.2 **/ ;(function($) { $.fn.tile = function(columns) { var tiles, max, c, h, last = this.length - 1, s; if(!columns) columns = this.length; this.each(function() { s = this.style; if(s.removeProperty) s.removeProperty("height"); if(s.removeAttribute) s.removeAttribute("height"); }); return this.each(function(i) { c = i % columns; if(c == 0) tiles = []; tiles[c] = $(this); h = tiles[c].height(); if(c == 0 || h > max) max = h; if(i == last || c == columns - 1) $.each(tiles, function() { this.height(max); }); }); }; })(jQuery); }