PageSourceSearch

https://www.leipold.com/typo3conf/ext/t3sbootstrap/Resources/Public/Scripts/bgImageSize.js?1600260859

js leipold.com collected 2026-10-08 07:22:17 UTC 2,776 bytes, 63 lines download raw bytes

1/* parallax*/
2(function($){var ua=$.browser;var $window=$(window);var windowHeight=$window.height();$window.resize(function(){windowHeight=$window.height();});
3$.fn.parallax=function(xpos,speedFactor,outerHeight){var $this=$(this);var getHeight;var firstTop;var paddingTop=0;$this.each(function(){firstTop=$this.offset().top;});if(outerHeight){getHeight=function(jqo){return jqo.outerHeight(true);};}else{getHeight=function(jqo){return jqo.height();};}
4if(arguments.length<1||xpos===null)xpos="50%";if(arguments.length<2||speedFactor===null)speedFactor=0.1;if(arguments.length<3||outerHeight===null)outerHeight=true;var pattern=/Android|webOS|iPhone|iPad|iPod|BlackBerry/i;function update(){if(/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent)){$this.each(function(){$this.css('backgroundPosition',"top left");$this.css('backgroundAttachment',"scroll");});return;}
5var pos=$window.scrollTop();$this.each(function(){var $element=$(this);var top=$element.offset().top;var height=getHeight($element);if(top+height<pos||top>pos+windowHeight){return;}
6$this.css('backgroundPosition',xpos+" "+Math.round((firstTop-pos)*speedFactor)+"px");});}
7$window.bind('scroll',update).resize(update);update();};
8})(jQuery);
9
10var mobile = false;
11if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) {
12	mobile = true;
13}
14
15jQuery(function($){
16	function addHeight(objKey) {
17		var overlay = $('#'+objKey).next('.card-img-overlay');
18		if (overlay.length) {
19			var totalHeight = 0;
20			var addHeight = 0;
21			var outerHeight = 0;
22			$.each( TYPO3.settings.ADDHEIGHT, function( addKey, addValue ) {
23				if (objKey == 'bg-img-'+addKey) {
24					addHeight = parseInt(addValue);
25				}
26			});
27			$.each( overlay, function( objKeyOverlay, objValueOverlay ) {
28				$(objValueOverlay).children().each(function(){
29					if ($(this).hasClass('container')) {
30						var container = $(this);
31						container.children().each(function(){
32							outerHeight = parseInt($(this).outerHeight(true));
33							totalHeight = totalHeight + outerHeight;
34						});
35					} else {
36						outerHeight = parseInt($(this).outerHeight(true));
37						totalHeight = totalHeight + outerHeight;
38					}
39				});
40			});
41			totalHeight = totalHeight + addHeight;
42			$('#'+objKey).css('min-height', totalHeight+'px');
43		}
44	}
45
46	$('.parallax, .multiple-parallax').each(function(){
47		var speed='0.1';
48		if(typeof $(this).attr('data-speed')!='undefined' && $(this).attr('data-speed')!=''){
49			speed=$(this).attr('data-speed');
50		}
51		$(this).parallax('50%',speed);
52	});
53
54	if ($(".enableAutoheight").length) {
55		$.each( $(".enableAutoheight"), function( key, value ) {
56			addHeight($(this).attr('id'));
57		});
58	}
59
60	if (mobile){
61		$('.background-image').removeClass('background-fixed');
62	}
63});

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.