PageSourceSearch

https://viretec.com/wp-content/plugins/ghostpool-core/elementor/assets/js/featured-item.js?ver=2.26

js viretec.com collected 2026-10-03 18:39:31 UTC 1,751 bytes, 85 lines download raw bytes

1function gpStretchImage( $ ) {
2				
3	$( '.gp-element-featured-item.gp-stretch-image-size' ).find( '.gp-featured-item-outer' ).each( function() {
4	
5		imageContainer = $( this );
6			
7		imageContainer.closest( '.elementor-element' ).height( '100%' );
8		imageContainer.closest( '.elementor-widget-container' ).height( '100%' );
9		imageContainer.closest( '.gp-element-featured-item' ).height( '100%' );
10		imageContainer.closest( '.gp-gallery-slider-item' ).height( '100%' );
11		imageContainer.closest( '.slides' ).height( '100%' );
12		imageContainer.height( '100%' );		
13		
14	});	
15	
16}
17
18function gpGallerySlider( $ ) {
19				
20	$( '.gp-gallery-slider-item' ).flexslider( {
21		animation: 'fade',
22		slideshowSpeed: 9999999,
23		animationSpeed: 600,
24		directionNav: true,			
25		controlNav: false,			
26		pauseOnAction: true, 
27		pauseOnHover: false,
28		prevText: '',
29		nextText: '',
30		smoothHeight: false
31	});
32	
33}
34
35function gpHideSliderNav( $ ) {
36
37	$( '.gp-slider' ).each( function( index, value ) {
38		
39		var slider = $( this );
40		
41		if ( slider.width() < 120 ) {
42			slider.find( '.flex-direction-nav' ).removeClass( 'gp-active' );
43		} else {
44			slider.find( '.flex-direction-nav' ).addClass( 'gp-active' );
45		}
46		
47	});
48	
49}
50
51function gpHideAudioPlayer( $ ) {
52
53	$( '.gp-audio-item' ).each( function( index, value ) {
54		
55		var audioPlayer = $( this );
56		
57		if ( audioPlayer.width() < 230 ) {
58			audioPlayer.hide();
59		} else {
60			audioPlayer.show();
61		}
62		
63	});
64	
65}
66	
67jQuery( function( $ ) {
68
69	'use strict';
70
71	gpGallerySlider( $ );
72	gpStretchImage( $ );
73		
74	$( window ).on( 'load', function() {
75		gpHideSliderNav( $ );
76		gpHideAudioPlayer( $ );
77	});
78	
79	$( window ).on( 'resize', function() {
80		gpHideSliderNav( $ );		
81		gpHideAudioPlayer( $ );
82		gpStretchImage( $ );
83	});
84		
85});

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.