WS_OK_7.4.33 HEX
HEX
Server: nginx/1.21.4
System: Linux v12674 6.8.0-85-generic #85-Ubuntu SMP PREEMPT_DYNAMIC Thu Sep 18 15:26:59 UTC 2025 x86_64
User: endtheignorance (1014)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source
Upload Files
File: /storage/v12674/lcacorpold/public_html/wp-content/plugins/cf-geoplugin/assets/js/script-cc.js
(function (jCFGP) {jCFGP(document).ready(function($){
	
	/**
     * Ajax for conversion
     */
	(function(sc){
		if(sc.length > 0)
		{
			sc.on( 'submit', function( e ) {
				e.preventDefault();
				var $this = jCFGP( this );

				var formData = $this.serialize();

				jCFGP.ajax({
					method : 'POST',
					dataType: 'html',
					data : formData,
					cache  : false,
					url : (typeof ajaxurl !== 'undefined' ? ajaxurl : CFGP_CC.ajaxurl) + '?action=cfgeo_full_currency_converter',
					beforeSend: function()
					{
						jCFGP( $this )
							.find( 'p.cfgp-currency-converted' )
								.html( '<div class="cfgp-card"><div class="cfgp-card-body"><img src="' + CFGP_CC.loading_gif + '" class="cfgp-loader" /></div></div>' );
					} 
				}).done( function( d ) {
					jCFGP( $this ).find( 'p.cfgp-currency-converted' ).html( d );
				}).fail( function( jqXHR, error, textStatus ) {
					console.log( jqXHR );
					console.log( error );
					console.log( textStatus );
				});
			});
		}
	}( jCFGP( 'form.cfgp-currency-form' ) ));
	
	/**
     * Exchange currencies
     */
	(function(sc){
		if(sc.length > 0)
		{
			sc.on( 'click', function( e ) {
				e.preventDefault();
				var $this = jCFGP( this );

				var fromVal = jCFGP( $this ).closest( 'form' ).find( 'select.cfgp-currency-from option:selected' ).val();
				var fromText = jCFGP( $this ).closest( 'form' ).find( 'select.cfgp-currency-from option:selected' ).text();

				var toVal = jCFGP( $this ).closest( 'form' ).find( 'select.cfgp-currency-to option:selected' ).val();
				var toText = jCFGP( $this ).closest( 'form' ).find( 'select.cfgp-currency-to option:selected' ).text();

				jCFGP( 'select.cfgp-currency-from option:selected' ).val( toVal ).text( toText );
				jCFGP( 'select.cfgp-currency-to option:selected' ).val( fromVal ).text( fromText );
			});
		}
	}( jCFGP( '.cfgp-exchange-currency' ) ));
	
});})(jQuery || window.jQuery || Zepto || window.Zepto);