搜索结果 v2

<脚本> var isp_search_results_base_page_load_time = Date.now(); 如果(typeof _isp_host_prefix === '未定义'){ var _isp_host_prefix = null; var _isp_api_prefix = null; 尝试 { _isp_host_prefix = localStorage.getItem('_isp_host_prefix'); 如果(_isp_host_prefix){ _isp_api_prefix = localStorage.getItem('_isp_api_prefix'); } } 赶上 (e) {} } 函数 isp_injectCSS(url,cssId, beforeId){ var link = document.createElement('link'); 链接.id = cssId; link.rel = '样式表'; link.type = 'text/css'; 链接.href = url; link.media = 'all'; 如果(beforeId){ var this_node = document.getElementById(beforeId); this_node.parentNode.insertBefore(链接,this_node.nextSibling); } 别的 { var head = document.getElementsByTagName('head')[0]; head.appendChild(link); } } 函数 isp_injectJS(url, beforeId, onload) { var s = document.createElement('script'); s.type = '文本/javascript'; s.async = 假; s.src = url; if (typeof onload !== 'undefined') { s.onload = onload; } var this_node = document.getElementById(beforeId); this_node.parentNode.insertBefore(s, this_node.nextSibling); }
<脚本> 尝试 { var $jquery_isp; if (typeof jQuery === '未定义') { var jq_file = "https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"; if (typeof __isp_new_jquery !== 'undefined' && __isp_new_jquery) { if (typeof(__isp_new_jquery_ver) === '未定义') { jquery_isp_ver = '3.3.1'; } 别的 { jquery_isp_ver = __isp_new_jquery_ver; } jq_file = 'https://ajax.googleapis.com/ajax/libs/jquery/' + jquery_isp_ver + '/jquery.min.js'; } isp_injectJS(jq_file, "isp_search_results_js_inject", function() { if (typeof $jquery_isp === 'undefined') $jquery_isp = jQuery; }); } }赶上(e){} var __isp_serp_uuid = "daea357c-eab4-4427-8db5-d8d0ad9e39f9"; var __isp_serp_store_id = "48990388387"; if (typeof isp_global_serp_scripts_injected === '未定义'){ (功能() { var host = "https://cdn1-gae-ssl-default.akamaized.net"; var js_file = "/js/search_result_page.min.js"; 如果(_isp_host_prefix){ 主机 = _isp_host_prefix == 'localhost' ? 'https://localhost' : 'https://' + _isp_host_prefix + '-dot-acp-magento.appspot.com'; 尝试 { document.getElementById('isp_search_results_css').remove(); } 赶上 (e) {} var 主题 = '_glam'; isp_injectCSS(host + "/css/search_result_page"+theme+".css", "isp_search_results_css", "isp_search_results_css_inject"); js_file = "/js/search_result_page.js"; } isp_injectJS(host + js_file + "?isp_platform=shopify", "isp_search_results_js_inject"); if (typeof History === 'undefined') { isp_injectJS(host + "/js/jquery.history.js?v=1.0.6", "isp_search_results_js_inject"); } })(); var isp_global_serp_scripts_injected = true; } isp_injectJS("https://cdn1-gae-ssl-default.akamaized.net/js/jquery.raty.js?v=2020.07.04a", "isp_search_results_js_inject");