PageSourceSearch

https://bppt.pl/wp-content/themes/bppt/js/equalheight.js

js bppt.pl collected 2026-09-26 15:01:51 UTC 1,758 bytes, 62 lines download raw bytes

1// Generated by CoffeeScript 1.4.0
2
3/*
4eqHeight.coffee v1.2.3
5http://jsliang.github.com/eqHeight.coffee
6
7Copyright (c) 2013, Jui-Shan Liang <[email protected]>
8All rights reserved.
9Licensed under GPL v2.
10*/
11
12
13(function() {
14  var $;
15
16  $ = jQuery;
17
18  $.fn.extend({
19    eqHeight: function(column_selector) {
20      return this.each(function() {
21        var columns, equalizer, _equalize_marked_columns;
22        columns = $(this).find(column_selector);
23        if (columns.length === 0) {
24          columns = $(this).children(column_selector);
25        }
26        if (columns.length === 0) {
27          return;
28        }
29        _equalize_marked_columns = function() {
30          var marked_columns, max_col_height;
31          marked_columns = $(".eqHeight_row");
32          max_col_height = 0;
33          marked_columns.each(function() {
34            if ($(this).height() > max_col_height) {
35              return max_col_height = $(this).height();
36            }
37          });
38          marked_columns.height(max_col_height);
39          return $(".eqHeight_row").removeClass("eqHeight_row");
40        };
41        equalizer = function() {
42          var row_top_value;
43          columns.height("auto");
44          row_top_value = columns.first().position().top;
45          columns.each(function() {
46            var current_top;
47            current_top = $(this).position().top;
48            if (current_top !== row_top_value) {
49              _equalize_marked_columns();
50              row_top_value = $(this).position().top;
51            }
52            return $(this).addClass("eqHeight_row");
53          });
54          return _equalize_marked_columns();
55        };
56        $(window).load(equalizer);
57        return $(window).resize(equalizer);
58      });
59    }
60  });
61
62}).call(this);

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.