KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache
System : Linux cs317.bluehost.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : andertr9 ( 1047)
PHP Version : 8.2.18
Disable Function : NONE
Directory :  /home1/andertr9/public_html/wp-content/themes/ssp-starter/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home1/andertr9/public_html/wp-content/themes/ssp-starter/js/jquery.scripts.js
( function( $ ) {

	var $google 		 = {};
			$google.maps = [];

	$.fn.FirstWord = function( ) {
		$( this ).each( function( Key , Title ) {
			var Words = $( Title ).html( ).trim( ).split( ' ' );
			if ( Words.length > 1 ) {
				$( Title ).html( '<span>' + Words.shift( ) + '</span> ' + Words.join( ' ' ));
			}					
		});
	};	

	$( document ).on( 'click' , 'a[href=#]' , function( ) {
		// anchor href=#
		return false;
	}).on( 'click' , '.scroll-top > a' , function( ) {
		// Scroll Top
		$.scrollTo( 0 , 1000 );
		return false;
	}).on( 'click' , '.readmore-slider .slide-button' , function( ) {

		// More Slider
		var $button = $( this );
		var $slider = $button.closest( '.readmore-slider' );
		if ( $( '.readmore-content' , $slider ).is( '.visible' )) {
			$button.html( $button.data( 'readmore' ));
			$( '.readmore-content' , $slider ).removeClass( 'visible' );
			$( '.readmore-content' , $slider ).slideUp( );
		} else {
			$button.html( $button.data( 'readless' ));
			$( '.readmore-content' , $slider ).slideDown( 400 , function( ) {
				$( '.readmore-content' , $slider ).addClass( 'visible' );
			});
		}
		return false;
	}).on( 'click' , '#sticky .contact-us > .handle' , function( ) {		
		
		$handle  	 = $( this );
		$sticky    = $handle.closest( '#sticky' );
		$contactus = $handle.closest( '.contact-us' );
		$handle.toggleClass( 'active' );
		$( '.content' , $contactus ).toggleClass( 'active' );
		$( '.social-buttons' , $sticky ).toggleClass( 'active' );
		return false;
	
	})
	.on( 'click' , '.close-btn' , function( ) {		
		
		$( '.handle' ).removeClass( 'active' );
		$( '.content' ).removeClass( 'active' );
		$( '.social-buttons' ).removeClass( 'active' );
		
	
	})
	.on( 'click' , '#nggpowertags > .nggpowertags-menu > a' , function( ) {		

		var $powertags = $( this ).closest( '#nggpowertags' );
		$powertags 		 = $( '.ngg-galleryoverview' , $powertags );
		var $menus     = $( this ).parent( );
		$("#nggpowertags .nggpowertags-menu a").removeClass("current");
		//$menus.removeClass( 'current' );
		$( this ).addClass( 'current' );
		var $selector = $( this ).data( 'filter' );
		$selector = $selector.split( '&' );
		$powertags.isotope({
			filter : $selector[0],
			animationOptions : {
				duration : 750,
				easing : 'linear',
				queue : false
			}
		});
		console.log( $selector );
		return false;

	});
	

	$( document ).ready( function( ) {
		// Empty P's
		$( 'p:empty' ).addClass( 'hidden' );
		// Mobile Menu
		if ( $( '#menu-main-menu' ).length ) {
			$( '#menu-main-menu' ).mobileMenu({
				'subMenuDash' : '',
				'defaultText' : '',
					'className' : 'mobile-menu',
			});			
		}		
		// First Word		
		if ( $( '.first-word' ).length ) {
			$( '.first-word' ).each( function( index , title ) {
				if ( ! $( 'span' , title ).length  ) {
					$( title ).FirstWord( );
				}
			});
		}
		if ( $( '.vc_separator > h4' ).length ) {
			$( '.vc_separator > h4' ).each( function( index , title ) {
				if ( ! $( 'span' , title ).length  ) {
					$( title ).FirstWord( );
				}
			});
		}
		// Flips
		if ( $( '.flip' ).length ) {
			$( '.flip' ).each( function( index , flip ) {
				$flip = $( flip );
				$flip.flip({
					'axis' 		: $flip.data( 'axis' ) ? $flip.data( 'axis' ) : 'y',
					'speed' 	: $flip.data( 'speed' ) ? $flip.data( 'speed' ) : 500,
					'trigger' : $flip.data( 'trigger' ) ? $flip.data( 'trigger' ) : 'click',
					'reverse' : $flip.data( 'reverse' ) ? $flip.data( 'reverse' ) : false,
					'forceHeight' : true,
					//'data-trigger' :'hover'
				});
			});
		}
		// Google Maps
		if ( $( '.ssp-google-map' ).length ) {
			$( '.ssp-google-map' ).each( function( index , map ) {

				var $map 		 = $( map );
  			var $center  = new google.maps.LatLng( $map.data( 'lat' ) , $map.data( 'lon' ));
				var $content = $map.html( );

				$google.maps[ index ] = new google.maps.Map( document.getElementById( $map.prop( 'id' )) , {
					scrollwheel : $map.data( 'scroll' ),
							 center : $center,
								 zoom : $map.data( 'zoom' ),
				});
				
				var $infowindow = new google.maps.InfoWindow({
					content : $content
				});

				var $marker = new google.maps.Marker({
					position : $center,
							 map : $google.maps[ index ],
				});

				$marker.addListener( 'click' , function( ) {
					$infowindow.open( $google.maps[ index ] , $marker );
				});

				$map.css({ height : $map.data( 'height' )});
			});
		}

		// Power Tags
		if ( $( '#nggpowertags' ).length ) {
			var $powertags = $( '#nggpowertags > .ngg-galleryoverview' );
			$powertags.isotope({
				filter : '*',
				animationOptions : {
					duration : 750,
					easing : 'linear',
					queue : false
				}
			});
		}		
	});
	
	$( window ).scroll( function( ) {
		var $header 		= $( '.site-header .widgets.columns-none' );
		var $wpadminbar = $( '#wpadminbar' );
		var $frontpage  = $( '.front-page' );
		$top						= $( window ).scrollTop( );
		$sticky    			= $( '#sticky' );
		if ( $( document ).width( ) >= 1024 ) {
			if ( $( window ).scrollTop( ) > 0 ) {
				$header.addClass( 'fixed' );
				if ( $wpadminbar.length ) {
					$header.css({ top : '32px' });
				} else {
					$header.css({ top : '0px' });
				}
				if ( $frontpage.length && $sticky.length && ! $sticky.is( '.scroll' )) {
					$sticky.toggleClass( 'scroll' );
				}
			} else {
				$header.removeClass( 'fixed' );
				$header.css({ top : 'auto' });
				if ( $frontpage.length && $sticky.length && $sticky.is( '.scroll' )) {
					$sticky.toggleClass( 'scroll' );
				}				
			}
		}
	});
	
	
	

	// WOW Animation
	WOWAnimation = new WOW({ mobile : false });
	WOWAnimation.init( );		
	
})( jQuery );

Anon7 - 2021