WS_OK_7.4.33
!function(e){e(document).ready(function(c){var o;(o=e("form.cfgp-currency-form")).length>0&&o.on("submit",function(c){c.preventDefault();var o=e(this),t=o.serialize();e.ajax({method:"POST",dataType:"html",data:t,cache:!1,url:("undefined"!=typeof ajaxurl?ajaxurl:CFGP_CC.ajaxurl)+"?action=cfgeo_full_currency_converter",beforeSend:function(){e(o).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(c){e(o).find("p.cfgp-currency-converted").html(c)}).fail(function(e,c,o){console.log(e),console.log(c),console.log(o)})}),function(c){c.length>0&&c.on("click",function(c){c.preventDefault();var o=e(this),t=e(o).closest("form").find("select.cfgp-currency-from option:selected").val(),n=e(o).closest("form").find("select.cfgp-currency-from option:selected").text(),r=e(o).closest("form").find("select.cfgp-currency-to option:selected").val(),l=e(o).closest("form").find("select.cfgp-currency-to option:selected").text();e("select.cfgp-currency-from option:selected").val(r).text(l),e("select.cfgp-currency-to option:selected").val(t).text(n)})}(e(".cfgp-exchange-currency"))})}(jQuery||window.jQuery||Zepto||window.Zepto);