PageSourceSearch

https://www.ftsafe.com/themes/default/js/sameheight_publish.js

js ftsafe.com collected 2026-09-24 09:12:09 UTC 1,503 bytes, 41 lines download raw bytes

1function sameHeight(elemClass) {
2  var heights = []; // Make a height array
3  $(elemClass).each(function() {
4    $(this).css('height','auto');
5    var hti = parseInt($(this).css('height'));
6    var ptop = parseInt($(this).css('padding-top'));
7    var pbot = parseInt($(this).css('padding-bottom'));
8    var ht = hti - ptop - pbot;
9    heights.push(ht); // Copy height of each element to the array
10  });
11  heights.sort(function(a, b){return b - a}); // Sort the array high to low
12  var minh = parseInt(heights[0], 10); // Target first (highest) number
13  $(elemClass).css('height','').height(minh); // Apply height to each element
14}
15$(window).on('resize', function() {
16  var tck = false;
17  function resizeHt() {
18    $('.samehtwrapper .sameht').each(function() {
19      var mythis = $(this);
20      $(this).removeClass('done');
21      var eClass = '.' + $('.samehtwrapper .sameht').not('.samehtwrapper .sameht.done').attr('data-eclass');
22      sameHeight(eClass);
23      $.when(sameHeight).done(function() {
24        mythis.addClass('done');
25      });  
26    });
27  }
28  if (tck !== false) {clearTimeout(tck)}
29  tck = setTimeout(resizeHt, 400);  
30});
31$(window).on('load', function() {
32  $('.samehtwrapper .sameht').each(function() {
33    var mythis = $(this);
34    $(this).removeClass('done');
35    var eClass = '.' + $('.samehtwrapper .sameht').not('.samehtwrapper .sameht.done').attr('data-eclass');
36    sameHeight(eClass);
37    $.when(sameHeight).done(function() {
38      mythis.addClass('done');
39    });  
40  });
41});

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.