/* document.write(''); */ if (!document.getElementById('embed_cart_area')) { document.write('
'); document.write(''); } else { document.getElementById('embed_cart_area').innerHTML = ''; } if (window.jQuery) { load_embed_cart(); } else { var script = document.createElement('script'); script.onload = function () { load_embed_cart(); }; script.src = '//code.jquery.com/jquery-1.12.4.min.js'; document.head.appendChild(script); //or something of the likes } //var $ec = ''; function load_embed_cart() { // $ec = jQuery; $.ajaxSetup({ xhrFields: { withCredentials: true }, crossDomain: true, }); var ec_host = '', ec_get_host = ''; if ($('#embed_cart_script').size()) { var ec_url = new URL($('#embed_cart_script').attr('src')); ec_get_host = ec_url.searchParams.get("host"); if (ec_get_host) ec_host = 'https://'+ec_get_host; } host = 'https://ec.com'; var add_href = ''; if (window.location.href.indexOf('#!') > -1) { var tmp = window.location.href.split('#'), tmp = tmp[1].split('!'); add_href = tmp[1]; } $('.embed-cart-area').html('