PageSourceSearch

https://www.mediationoffices.com/wp-content/plugins/fusion-extensi…sion-gallery-masthead-extended.js?ver=1.0.0

js mediationoffices.com collected 2026-10-04 05:48:33 UTC 1,979 bytes, 52 lines download raw bytes

1/**
2 * scripts for fusion-extension-gallery-masthead-extended
3 */
4 
5/* Center Masthead content vertically */
6jQuery(document).ready(function(){
7	centerMastheadExtendedContent();
8	centerMastheadLinkedComponent();
9	jQuery('.fsn-gallery .masthead').on('fsnGalleryReady', function() {
10		centerMastheadExtendedContent();
11		centerMastheadLinkedComponent();
12	});
13	jQuery(window).on('resize', function(){
14		centerMastheadExtendedContent();
15		centerMastheadLinkedComponent();
16	});
17});
18
19function centerMastheadExtendedContent(){
20	var mastheads = jQuery('.masthead-container').find('.masthead');
21	mastheads.each(function(){
22		var masthead = jQuery(this);
23		var mastheadSlides = masthead.find('.slide, .masthead-placeholder-container');
24		mastheadSlides.each(function(){
25			var mastheadSlideHeight = jQuery(this).outerHeight();
26			var mastheadContent = jQuery(this).find('.masthead-item-content-wrap');
27			var mastheadContentHeight = mastheadContent.outerHeight();
28			
29			var mastheadContentOffset = (mastheadSlideHeight / 2) - (mastheadContentHeight / 2);
30			if(mastheadContentOffset > 0){
31				mastheadContent.css('bottom', mastheadContentOffset+'px');
32			}
33			mastheadContent.css('opacity', '1');
34		});	
35	});
36}
37
38function centerMastheadLinkedComponent(){
39	var linkedComponents = jQuery('.masthead-container').find('.masthead-linked-component');
40	linkedComponents.each(function(){
41		if(jQuery(this).hasClass('left') || jQuery(this).hasClass('right')){
42			var linkedComponent = jQuery(this).find('.masthead-linked-component-column');
43			var linkedComponentHeight = linkedComponent.outerHeight();
44			var mastheadContainer = jQuery(this).closest('.masthead-container');
45			var masthead = mastheadContainer.find('.masthead');
46			var mastheadHeight = masthead.height();
47			var mastheadControls = masthead.find('.flex-direction-nav a');			
48			var linkedComponentOffset = (mastheadHeight / 2) - (linkedComponentHeight / 2);
49			linkedComponent.css('bottom', linkedComponentOffset+'px');	
50		}
51	});
52}

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.