403Webshell
Server IP : 172.24.0.40  /  Your IP : 216.73.216.10
Web Server : Apache
System : Linux dbweb26.ust.edu.ph 4.18.0-513.5.1.el8_9.x86_64 #1 SMP Fri Sep 29 05:21:10 EDT 2023 x86_64
User : apache ( 48)
PHP Version : 8.2.18
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/tomas/public_html/wp-content/plugins/ninja-forms/lib/Legacy/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/tomas/public_html/wp-content/plugins/ninja-forms/lib/Legacy/step-processing.js
jQuery(document).ready(function($) {

	var progressbar = $( "#progressbar" ),
	progressLabel = $( ".progress-label" );

	progressbar.progressbar({
		value: false,
		change: function() {
			var value = parseInt( progressbar.progressbar( "value" ) );
			if ( value == 90 ) {
				nfProgressBar.currentLabel = 1;
			} else if ( value % 10 == 0 ) {
				nfProgressBar.changeTextLabel();
			}
			var text = nfProgressBar.getTextLabel();
			progressLabel.text( text + " " + progressbar.progressbar( "value" ) + "%" );
		},
		complete: function() {
			progressLabel.text( "Complete!" );
		}
	});

 	if ( nfProcessingAction != 'none' ) {
		var nfProgressBar = {
			labels: nf_processing.step_labels,
			currentLabel: 0,
			getTextLabel: function() {
				var label = this.labels[ this.currentLabel ];
				return label;
			},
			changeTextLabel: function() {
				var max = Object.keys( this.labels ).length;
				if ( max == 1 ) {
					max = 0;
				}
				var labelNum = Math.floor( Math.random() * ( max - 2 + 1 ) ) + 1;
				this.currentLabel = labelNum;		
			}
      	};

      	var nfProcessing = {
      		setup: function() {
      			// Figure out when we're going to change the size of the bar.
      			this.interval = Math.floor( 100 / parseInt( this.totalSteps ) );
      		},
      		process: function() {
      			
				$.post( ajaxurl, { step: this.step, total_steps: nfProcessing.totalSteps, args: this.args, action: nfProcessingAction }, function( response ) {
		      		response = $.parseJSON( response );
		      		nfProcessing.step = response.step;
		      		nfProcessing.totalSteps = response.total_steps;
		      		nfProcessing.args = response.args;
                    nfProcessing.errors = response.errors;

                    if ( nfProcessing.errors ) {

                        $( "#nf-upgrade-errors").removeClass('hidden');

                        $.each( nfProcessing.errors, function( index, error ) {
                            $(".nf-upgrade-errors-list").append('<li>ERROR: ' + error + '</li>');
                        });
                    }


		      		if ( nfProcessing.runSetup == 1 ) {
		      			nfProcessing.setup();
		      			nfProcessing.runSetup = 0;
		      		}

		      		if ( ! response.complete ) {
		      			nfProcessing.progress();
		      			nfProcessing.process();
		      		} else {
		      			progressbar.progressbar( "value", 100 );
		      			if ( typeof response.redirect != 'undefined' && response.redirect != '' ) {
		      				document.location.href = response.redirect;
		      			}
		      		}
		      	});
      		},
      		progress: function() {
				var val = progressbar.progressbar( "value" ) || 0;

				progressbar.progressbar( "value", val + this.interval );

      		},
      		step: 'loading',
      		totalSteps: 0,
      		runSetup: 1,
      		interval: 0,
      		args: nfProcessingArgs,
      	}
     	
     	nfProcessing.process();
	}
  });

Youez - 2016 - github.com/yon3zu
LinuXploit