HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //proc/self/cwd/wp-content/plugins/wpforms-lite/assets/js/frontend/wpforms-confirmation.js
// Clear URL - remove wpforms_form_id
( function() {
	var loc = window.location,
		query = loc.search;

	if ( query.indexOf( 'wpforms_form_id=' ) !== -1 ) {
		query = query.replace( /([&?]wpforms_form_id=[0-9]*$|wpforms_form_id=[0-9]*&|[?&]wpforms_form_id=[0-9]*(?=#))/, '' );
		history.replaceState( {}, null, loc.origin + loc.pathname + query );
	}
}() );

( function( $ ) {
	$( function() {
		if ( $( 'div.wpforms-confirmation-scroll' ).length ) {
			$( 'html,body' ).animate(
				{ scrollTop: ( $( 'div.wpforms-confirmation-scroll' ).offset().top ) - 100 },
				1000
			);
		}
	} );
}( jQuery ) );