1$(document).ready(function() { 2 if (window.location.search.substring(1) === '' || ! ($("#stock_id").length)) { 3 return; 4 } 5 6 // cookieÖo^ 7 $.ajax({ 8 url: '/php/api/smc/cookie_management.php', 9 async: false, 10 cache: false, 11 data: 'cookie_mode=SET&stock_id=' + $("#stock_id").val() + "&" + window.location.search.substring(1) 12 }) 13 .then( 14 // success callback 15 function (data) { 16 (function(){ 17 18 var ary_set_parameters = new Array(); 19 20 // æ¾p[^¼ÌÝè 21 var ary_parameters = Array( 22 "stock_id" 23 ,"price" 24 ); 25 26 // KvÈîñÌæ¾ 27 $.each(ary_parameters, function(key,value){ 28 ary_set_parameters[value] = ''; 29 if($("#" + value)){ 30 ary_set_parameters[value] = $("#" + value).val(); 31 } 32 }); 33 34 // jsÌÇÝÝÆÀs 35 $.getScript("https://10958384.collect.igodigital.com/collect.js", function(){ 36 _etmc.push(["setOrgId","10958384"]); 37 _etmc.push(["trackCart", { "cart": [{"item" : ary_set_parameters["stock_id"], "quantity": 1 ,"price" : ary_set_parameters["price"] ,"unique_id" : ary_set_parameters["stock_id"]}]}]); 38 }); 39 }()); 40 } 41 , function () { 42 // false callback 43 } 44 ); 45 46});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.