PageSourceSearch

https://www.skola-auto.cz/wp-content/themes/TESSERACT/js/helpers-beaver.js

js skola-auto.cz collected 2026-10-05 07:41:40 UTC 1,433 bytes, 60 lines download raw bytes

1(function($) {
2
3	function beaverVidbg() {
4
5		$('.fl-bg-video > video').each(function() {
6			
7			var vow = $(this).attr('data-width'),
8			voh = $(this).attr('data-height'),
9			vratio = parseInt( vow ) / parseInt( voh ), //.5625
10			pratio = parseInt( $(this).parent().width() )/ parseInt( $(this).parent().height() ); //.3248
11			
12			var tc = $(this).closest('.fl-row-content-wrap'),
13			pc = $(this).parent();							
14				
15			$( this ).removeAttr('style');				
16				
17			var tcw = $(tc).width(),
18			tch = $(tc).height(),
19			pcw = $(pc).width(),
20			pch = $(pc).height();
21			
22			//If top parent is narrower than the original video width
23			if( tcw < vow ) {
24				
25				var nh = tch,
26				nw = nh * vratio;
27				
28				//Special case: if the new video is narrower than the screen width!!!
29				if ( nw < $(window).width() ) {
30					var nh = tch * vratio,
31					nw = nh * vratio;						
32				}
33				
34			//If top parent is wider or equal to the original video width	
35			} else {
36				var nh = tcw/vratio,
37				nw = $(window).width();				
38			}
39			
40			$(tc).css({overflow: 'hidden', position: 'relative'});
41			$(pc).attr('style', 'height: ' + nh + 'px; left: 50%!important; width: ' + nw + 'px!important; margin-left: -' + nw/2 + 'px;');
42			$(this).attr('style', 'height: ' + nh + 'px!important;');				
43
44		})
45		
46	}
47			
48	$(window).load(function() {								
49		
50		beaverVidbg();
51		
52	});
53			
54	$(window).resize(function(){
55		
56		beaverVidbg();
57		
58	});	
59
60})(jQuery);

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.