PageSourceSearch

https://udl.cat/export/system/modules/com.saga.sagasuite.theme.lle…/resources/js/equalheight-dynamic.js

js udl.cat collected 2026-10-01 10:20:20 UTC 1,448 bytes, 42 lines download raw bytes

1// funcion para igualar el alto de cajas con la misma clase, igualando al alto mayor
2(function () {
3    jQuery.fn.equalHeightsDynamic = function () {
4        var maxHeight = 0;
5        // get the maximum height
6        this.each(function () {
7            var $this = jQuery(this);
8            if ($this.height() > maxHeight) {
9                maxHeight = $this.height();
10            }
11        });
12        // set the elements height
13        this.each(function () {
14            var $this = jQuery(this);
15            $this.height(maxHeight);
16        });
17    };
18
19    jQuery(window).load(function () {
20        //var classes = ["equalheight","equalheight-two","equalheight-three","equalheight-four","equalheight-five","equalheight-six","equalheight-seven","equalheight-eight","equalheight-nine","equalheight-ten"];
21        var classes = getDynamicEqualheightClasses();
22        for (var i = 0, j = classes.length; i < j; i++) {
23            jQuery('.' + classes[i]).equalHeightsDynamic();
24        }
25    });
26})();
27
28function getDynamicEqualheightClasses(){
29    var classes = [];
30    jQuery('[class*="equalheight"]').each(function (index) {
31        var $arrayClasses = $($(this).attr('class').split(" "));
32        //console.log($arrayClasses );
33        $arrayClasses.each(function(){
34            //console.log(this);
35            if (this.indexOf('equalheight') == 0){
36                classes.push(this);
37            }
38        })
39    })
40    return classes;
41}
42

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.