PageSourceSearch

https://www.alutrim.com/wp-content/plugins/slider-hero/js/hero_custom_script.js?ver=9.1.9

js alutrim.com collected 2026-10-08 20:39:05 UTC 2,335 bytes, 79 lines download raw bytes

1/*
2* Hero background video resize
3*/
4(function ($){
5    'use strict';
6    $( document ).ready(function() {
7
8function controlHeight_custom(){
9
10	if(jQuery('.qc_hero_vid').height()<1){
11		return;
12	}
13
14	if(jQuery('.sh_bg_video').parent().height() > jQuery('.qc_hero_vid').height()){
15		jQuery('.sh_bg_video').width(parseFloat(jQuery('.sh_bg_video').width())+10);
16		controlHeight_custom();
17	}
18	
19	if((jQuery('.sh_bg_video').parent().height()+50) < jQuery('.qc_hero_vid').height()){
20		if((jQuery('.sh_bg_video').width()-2) > jQuery('.sh_bg_video').parent().width()){
21			jQuery('.sh_bg_video').width(parseFloat(jQuery('.sh_bg_video').width())-2);
22			controlHeight_custom();
23		}
24	}
25	
26	jQuery('.sh_bg_video_fluid').css('padding-top', (jQuery('.sh_bg_video').height())+'px');
27	setTimeout(function(){
28		if(jQuery('.sh_bg_video').width() < jQuery('.sh_bg_video').parent().width()){
29			jQuery('.sh_bg_video').width(jQuery('.sh_bg_video').parent().width());
30			controlHeight_custom();
31		}else{			
32			var difference = (jQuery('.sh_bg_video').width() - jQuery('.sh_bg_video').parent().width())/2;
33			jQuery('.sh_bg_video').css('left', '-'+difference+'px');			
34		}
35	}, 500)
36	
37}
38
39function controlHeight(){
40	
41	//console.log(jQuery('.sh_bg_video_fluid_y').outerHeight()+' '+jQuery('.sh_bg_video_y').parent().height());
42	//jQuery('.sh_bg_video_fluid_y').css('padding-top', (jQuery('.sh_bg_video_fluid_y').outerHeight())+'px');
43	
44	/*if(jQuery('.sh_bg_video_fluid_y').outerHeight() < jQuery('.sh_bg_video_y').parent().height()){
45		jQuery('.sh_bg_video_y').width(parseFloat(jQuery('.sh_bg_video_y').width())+2);
46		controlHeight();
47	}*/
48}
49
50jQuery(window).load(function() {
51	
52	if(jQuery(".qc_hero_vid").length > 0){
53		controlHeight_custom();
54	}
55	if(jQuery(".sh_bg_video_fluid_y").length > 0){
56		controlHeight();
57	}
58	
59})
60
61jQuery(window).resize(function() {
62	
63	jQuery('.sh_bg_video').width(parseFloat(jQuery('.sh_bg_video').parent().width())+2);
64	
65	setTimeout(function(){
66		if(jQuery(".qc_hero_vid").length > 0){
67			controlHeight_custom();
68		}
69		
70		if(jQuery(".sh_bg_video_fluid_y").length > 0){
71			if(jQuery('.sh_bg_video_y').width() < jQuery('.sh_bg_video_y').parent().width()){
72				jQuery('.sh_bg_video_y').css('width','100%');
73			}
74			controlHeight();
75		}
76	}, 700);
77});
78});
79})(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.