PageSourceSearch

https://www.gerold-klarinetten.at/assets/scripts/equal-height.js?1765310991

js gerold-klarinetten.at collected 2026-10-03 00:01:49 UTC 1,260 bytes, 50 lines download raw bytes

1/*!
2 * Simple jQuery Equal Heights
3 *
4 * Copyright (c) 2013 Matt Banks
5 * Dual licensed under the MIT and GPL licenses.
6 * Uses the same license as jQuery, see:
7 * http://docs.jquery.com/License
8 *
9 * @version 1.5.1
10 */
11(function ($) {
12    $.fn.equalHeights = function () {
13		var equalWidth = $(".equal-height").outerWidth();
14		var containerWidth = $(".container").width();
15		if(equalWidth <= containerWidth) {
16			var maxHeight = 0,
17				$this = $(this);
18
19			$this.each(function () {
20				var height = $(this).outerHeight();
21
22				if (height > maxHeight) {
23					maxHeight = height;
24				}
25			});
26
27			return $this.css('height', maxHeight);
28		}
29    };
30
31    // auto-initialize plugin
32    $('[data-equal]').each(function () {
33        var $this = $(this),
34            target = $this.data('equal');
35        $this.find(target).equalHeights();
36    });
37})(jQuery);
38
39$(window).load(function () {
40    $('.equal-height').css("height", "auto");
41    $('.equal-height').each(function(index, el){
42        $(el).parents('.row').find('.equal-height').equalHeights();
43    });
44});
45$(window).resize(function(){
46    $('.equal-height').css("height", "auto");
47    $('.equal-height').each(function(index, el){
48        $(el).parents('.row').find('.equal-height').equalHeights();
49    });
50});

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.