HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux vm8 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: afleverb (1000)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //var/www/wintergenomics_site/wp-content/plugins/rife-elementor-extensions/assets/js/frontend.js
jQuery.noConflict();

(function($, window, document){
	var ElementorIsReadyFired = false;
	$( window ).on( 'elementor/frontend/init', () => {
		//it is already ready to fire
		ElementorIsReadyFired = true;
	});

	var onReady = function(){
		var typedJS = function($scope){
			$scope = typeof $scope === 'undefined'? $(document.body) : $scope;

			var typed_texts = $scope.find('.a13ree-written-headline');

			if(typed_texts.length){
				var start_typing = function(heading){
					var block         = $(heading),
						writing_area  = block.find('.written-lines'),
						block_strings = writing_area.text().split('\n'),
						is_loop       = block.data('loop') == 1,
						speed         = block.data('speed');

					//skip if it was initialized already
					if(writing_area.data('typed')){
						return;
					}

					writing_area
						.removeClass('elementor-screen-only')
						.empty()
						.typed({
						strings: block_strings,
						startDelay: 500,
						typeSpeed: parseInt(speed, 10),
						loop: is_loop
					});

					};

				typed_texts.each( function(){
					var _this = this;
					//native version
					if(typeof Waypoint === 'function'){
						//noinspection JSUnusedGlobalSymbols
						new Waypoint({
							element: _this,
							handler: function(){
								start_typing(this.element);
								//fire only once
								this.destroy();
							},
							offset: 'bottom-in-view'
						});
					}
					//jQuery version
					else if(typeof jQuery.waypoints === 'function'){
						$(this).waypoint( $.proxy(start_typing, this, this, 0),{ offset: 'bottom-in-view', triggerOnce:true } );
					}
					//no waypoints script available
					else{
						start_typing();
					}
				} );
			}
		};

		typedJS();

		var ElementorInitCallback = function(){
			if(typeof elementorFrontend !== 'undefined' && typeof elementorFrontend.hooks !== 'undefined'){
				elementorFrontend.hooks.addAction( 'frontend/element_ready/writing-effect-headline.default', function( $scope ) {
					typedJS($scope);
				} );
			}
		};

		//if event didn't fire yet
		$( window ).on( 'elementor/frontend/init', () => {
			ElementorInitCallback();
		} );

		//if event occured before the ready event, lets fire
		if(ElementorIsReadyFired === true){
			ElementorInitCallback();
		}

	};

	$(document).ready(onReady);
})(jQuery, window, document);