PageSourceSearch

https://www.diabetologie-berlin24.de/wp-content/themes/hpp/assets/js/custom.js?ver=1.6.4.1

js diabetologie-berlin24.de collected 2026-09-26 21:35:40 UTC 1,628 bytes, 50 lines download raw bytes

1// Avoid conflicts with other libraries than jQuery
2var $ = jQuery;
3
4$(function(){
5
6  /* jQuery matchHeight */
7  $('.match-height').matchHeight({
8    byRow: true,
9    property: 'height'
10  });
11});
12
13$(document).ready(function() {
14
15  /* support for constant ratio of images in beaver slider */
16  var img = new Image;
17  if (0 < $('.save-img-ratio .fl-slide-bg-photo').length) {
18    var bgImgUrl = $('.save-img-ratio .fl-slide-bg-photo').css('background-image');
19    bgImgUrl = /^url\((['"]?)(.*)\1\)$/.exec(bgImgUrl);
20    img.src = bgImgUrl ? bgImgUrl[2] : "";
21  }
22
23  var bgImgWidth = img.width;
24  var bgImgHeight = img.height;
25  var bgImgRatio = (bgImgWidth/bgImgHeight).toFixed(5);
26
27  if (0 < $('.save-img-ratio .fl-slide').length) {
28
29    var divWidth = $('.save-img-ratio .fl-slide').width();
30    var divHeight = Math.round(divWidth/bgImgRatio);
31
32    $('.save-img-ratio .bx-viewport').css('height', divHeight + 'px');
33    $('.save-img-ratio .fl-content-slider').css('min-height', divHeight + 'px');
34    $('.save-img-ratio .fl-slide').css('min-height', divHeight + 'px');
35
36    $('.save-img-ratio .fl-slide-bg-photo').load(function () {
37      var divWidth = $('.save-img-ratio .fl-slide').width();
38      var divHeight = Math.round(divWidth/bgImgRatio);
39
40      $('.save-img-ratio .bx-viewport').css('height', divHeight + 'px');
41      $('.save-img-ratio .fl-content-slider').css('min-height', divHeight + 'px');
42      $('.save-img-ratio .fl-slide').css('min-height', divHeight + 'px');
43    });
44
45    $(window).on('resize', function () {
46      $(".save-img-ratio .fl-slide-bg-photo").trigger('load')
47    }).trigger('resize');
48  }
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.