PageSourceSearch

https://cdn.searchenginejournal.com/wp-content/themes/sej/js/cdet.js?ver=1786713541

js searchenginejournal.com collected 2026-10-01 06:42:08 UTC 5,800 bytes, 1 lines download raw bytes

1function fetchCountryCallback(t){if(void 0!==t.response&&t.response){let e;try{e=JSON.parse(t.response)}catch(t){return}window.sglob_full_country=e[window.sglob_country.toUpperCase()]||"";window.sglob_country,window.sglob_full_country;striggerEvent("s_c_detect_full",window.sglob_full_country)}}function fetchCountryError(){}function sej_cdet(t){if(safeWindow.sglob_country){let e={};return t.hasClass("sej-web-form")?e.country=safeWindow.sglob_country:e.country=safeWindow.sglob_full_country,e.state=safeWindow.sglob_state,e.city=safeWindow.sglob_city,void safeWindow.striggerEvent("cdet",e)}var e=new XMLHttpRequest;e.open("POST",safeWindow.ajaxurl+"?action=endp",!0),e.setRequestHeader("Accept","application/json"),e.onreadystatechange=function(){if(4===this.readyState){let e="x",o={};try{o=JSON.parse(this.responseText)}catch(t){}let n=[];o.country_name&&(e=t.hasClass("sej-web-form")?o.country_code:o.country_name,n.country=o.country_code,n.country_name=o.country_name),o.region&&(n.state=o.region),o.city&&(n.city=o.city),"x"==e?window.sglob_country?(n.country=window.sglob_country,!t.hasClass("sej-web-form")&&window.sglob_full_country&&(n.country=window.sglob_full_country),safeWindow.striggerEvent("cdet",n)):$.ajax({url:"/location.json",success:function(t){void 0!==t.country&&(t.country=t.country,safeWindow.striggerEvent("cdet",t))}}):safeWindow.striggerEvent("cdet",n)}},e.send()}function sej_cdet_ws(t){if(safeWindow.sglob_full_country){t.find(".countrymc").val(safeWindow.sglob_full_country),t.find(".statemc").val(safeWindow.sglob_state),t.find(".citymc").val(safeWindow.sglob_city);let e={};return e.country=safeWindow.sglob_full_country,e.state=safeWindow.sglob_state,e.city=safeWindow.sglob_city,void safeWindow.striggerEvent("cdet",e)}var e=new XMLHttpRequest;e.open("POST",safeWindow.ajaxurl+"?action=endp",!0),e.setRequestHeader("Accept","application/json"),e.onreadystatechange=function(){if(4===this.readyState){let e="x",o={};try{o=JSON.parse(this.responseText)}catch(t){}let n=[];o.country_name&&(e=o.country_name,t.find(".countrymc").val(o.country_name),n.country=o.country_code),o.region&&(t.find(".statemc").val(o.region),n.state=o.region),o.city&&(t.find(".citymc").val(o.city),n.city=o.city),"x"==e?window.sglob_country?(n.country=window.sglob_country,window.sglob_full_country&&(n.country=window.sglob_full_country),t.find(".countrymc").val(n.country),safeWindow.striggerEvent("cdet",n)):$.ajax({url:"/location.json",success:function(e){void 0!==e.country&&(sej_visitor_country=e.country,t.find(".countrymc").val(sej_visitor_country),e.country=sej_visitor_country,safeWindow.striggerEvent("cdet",e))}}):safeWindow.striggerEvent("cdet",n)}},e.send()}function sej_cdet_hs(t){if(safeWindow.sglob_full_country){t.find(".hs_country input").val(safeWindow.sglob_full_country),t.find(".hs_state input").val(safeWindow.sglob_state),t.find(".hs_city input").val(safeWindow.sglob_city);let e={};return e.country=safeWindow.sglob_full_country,e.state=safeWindow.sglob_state,e.city=safeWindow.sglob_city,safeWindow.striggerEvent("cdet",e),void console.log("sej_cdet_hs",e)}var e=new XMLHttpRequest;e.open("POST",safeWindow.ajaxurl+"?action=endp",!0),e.setRequestHeader("Accept","application/json"),e.onreadystatechange=function(){if(4===this.readyState){let e="x",o={};try{o=JSON.parse(this.responseText)}catch(t){}let n=[];o.country_name&&(e=o.country_name,t.find(".hs_country input").val(o.country_name),n.country=o.country_code),o.region&&(t.find(".hs_state input").val(o.region),n.state=o.region),o.city&&(t.find(".hs_city input").val(o.city),n.city=o.city),"x"==e?window.sglob_country?(n.country=window.sglob_country,window.sglob_full_country&&(n.country=window.sglob_full_country),t.find(".hs_country input").val(n.country),safeWindow.striggerEvent("cdet",n)):$.ajax({url:"/location.json",success:function(e){void 0!==e.country&&(sej_visitor_country=e.country,t.find(".hs_country input").val(sej_visitor_country),e.country=sej_visitor_country,safeWindow.striggerEvent("cdet",e))}}):safeWindow.striggerEvent("cdet",n)}},e.send()}window.safeWindow=function(){try{return window.parent!==window&&void 0!==window.parent.location.href}catch(t){return!1}}()?window.parent:window,console.log("safeWindow defined",safeWindow),setTimeout((()=>{""==window.sglob_full_country&&safeWindow.sajax_call("/wp-content/themes/sej/js/c.json",[],fetchCountryCallback,fetchCountryError)}),"1000"),window.sej_cdet=sej_cdet,jQuery((function(t){console.log("cdet 1"),t(document).on("click",".sej2017_validate_form  input, .sej2017_validate_form  select, .wsf-form input, .hs-form input, .wsf-form select, #webinar-register-form input, #webinar-register-form select",(function(e){let o=t(this).closest("form");
1"yes"!==o.attr("data-cdet")&&"search"!==o.attr("role")&&(console.log("cdet enter 1"),o.attr("data-cdet","yes"),o.hasClass("wsf-form")&&sej_cdet_ws(o),o.hasClass("hs-form")&&sej_cdet_hs(o),o.hasClass("sej-web-form")&&sej_cdet(o))})),t(document).on("mouseenter",'.hs-form input[type="submit"], .wsf-form input[type="submit"], .wsf-form button[type="submit"], #webinar-register-form input[type="submit"]',(function(e){let o=t(this).closest("form");console.log("cdet mouseenter"),"yes"!==o.attr("data-cdet")&&"search"!==o.attr("role")&&(o.attr("data-cdet","yes"),o.hasClass("wsf-form")&&sej_cdet_ws(o),o.hasClass("hs-form")&&sej_cdet_hs(o),o.hasClass("sej-web-form")&&sej_cdet(o))})),t(document).on("click",".hs-form  input, .hs-form select",(function(e){let o=t(this).closest("form");"yes"!==o.attr("data-cdet")&&(console.log("endp hs 33"),o.attr("data-cdet","yes"),sej_cdet_hs(o))})),t(document).on("mouseenter",'.hs-form input[type="submit"]',(function(e){let o=t(this).closest("form");"yes"!==o.attr("data-cdet")&&(console.log("endp hs 44"),o.attr("data-cdet","yes"),sej_cdet_hs(o))}))}));

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.