dcInner_log('digital circle version 4.02');dcInner_log('client file loaded');var dc_gtag={account:'11436826386',events:{'cec':{tag:'7zfJCJnI2f8YEJK-wM0q'},'cpc':{tag:'X_jBCJzI2f8YEJK-wM0q'},'cvc':{tag:'FSSQCJbI2f8YEJK-wM0q'},'frm':{tag:'BHirCJ_I2f8YEJK-wM0q'},'sel':{tag:'_MhSCKLI2f8YEJK-wM0q'}}} var dc_url_events={'fitakhotel.sk/kontakt':{event:'cvc',},} var dc_datalayer_events=[{testMe(input){var ret=false;if(typeof(input.event)!=='undefined'){if(input.event=='purchase'){ret=true;}} return ret;},runMe(input){console.log(input) var dcEvent={event:'sel',clear:'1',cdata:{}} if(typeof(input.value)!=='undefined'){dcEvent['price']=input.value;} if(typeof(input.transaction_id)!=='undefined'){dcEvent.cdata['orderid']=input.transaction_id;} digitalCircleManual('event',dcEvent);}}] var dc_hashtag='FTK-8333';var dc_core_url='//core.digitalcircle.ipartner.company/dc/';var dc_config={};var dc_url_actual;var dc_disable_cookies=1;var dc_events=[];var dc_ssid,dc_ssid_new,dc_ssid_new_ga,dc_uid,uid,dc_uid_prev,dc_ssid_data;var dc_image_id=0;var dc_event_id=0;var dc_storage='';var dc_time=new Date();const crcW1=([][[]]+[])[!+[]+!+[]]+([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]];const crcW2=(![]+[])[!+[]+!+[]+!+[]]+(![]+[])[+!+[]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]];const crcW3=(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]+(![]+[])[+!+[]]+(![]+[+[]]+([]+[])[([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]])[!+[]+!+[]+[+[]]]+(!![]+[])[!+[]+!+[]+!+[]];const crcW4=(+[![]]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+!+[]]];const crcW5=(+(+!+[]+[+!+[]]+(!![]+[])[!+[]+!+[]+!+[]]+[!+[]+!+[]]+[+[]])+[])[+!+[]];const crcW6=(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]];const crcW7=([![]]+[][[]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+([][[]]+[])[+!+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]];(function(){if(typeof(window.dcDataLayer)==='undefined'){dcInner_log('no datalayer found creating');window.dcDataLayer=window.dcDataLayer||[];}else{dcInner_log('datalayer found in page');} dc_url_actual=window.location.href;if(document.readyState!=='loading'){dcInner_log('main - readyState for loading HTML ready');dcInner_init();}else{document.addEventListener('DOMContentLoaded',function(){dcInner_log('main - DOMContentLoaded ready');dcInner_init();});}})(window) function dcInner_init(){dcInner_log('init time '+dc_time.getHours()+':'+dc_time.getMinutes()+':'+dc_time.getSeconds()+'.'+dc_time.getMilliseconds());dcInner_getData() dcInner_log('get data complete - '+new Date());dcInner_serverChecksum();dcInner_session(dc_config);dcInner_events(dc_events,dc_config);dcInner_urlEvents();dcInner_onclickEvents();dcInner_url_passing()} function digitalCircleEvent(){var digital_circle_manual=[];digital_circle_manual.push(arguments[0]);dcInner_events(digital_circle_manual,dc_config);} function digitalCircleManual(){if(arguments[0]=='event'){var digital_circle_manual=[];digital_circle_manual.push(arguments[1]);dcInner_events(digital_circle_manual,dc_config);}} function _dc_inner_anonimize(max){return Math.floor(Math.random()*max);} function _dc_inner_setsalt(salt){var s=salt+'';return s.substring(0,s.length/2)+'-'+s.substring(s.length/2,s.length)} function _dc_inner_padNum(num,size){num=num.toString();while(num.length>>'+value;} cdata='&cdata='+cdata_val;} if(typeof(dc_url_actual)!=='undefined'){if(typeof(dc_gtag)!=='undefined'){if(typeof(dc_gtag.account)!=='undefined'){if(typeof(dc_gtag.events)!=='undefined'){if(typeof(dc_gtag.events[event_arr.event])!=='undefined'){if(typeof(dc_gtag.events[event_arr.event].tag)!=='undefined'){dcInner_googleConversion(dc_gtag.account,dc_gtag.events[event_arr.event].tag,dc_url_actual,gtag_value,dc_gtag.events[event_arr.event].currency);}}}}}else{dcInner_log('gtag data array is not defined');}} var url='&checksum='+dc_uid+'&hashtag='+dc_hashtag+event+price+clear+cdata+'&time='+timestamp+tconf+writeAllConv;var query=dc_core_url+'?'+url;dcInner_log('event query - '+query);dcInner_doQuery('dc_event'+dc_event_id,query);dc_event_id=dc_event_id+1;}}} function dcInner_urlEvents(){if(typeof(dc_url_events)!=='undefined'){if(typeof(dc_url_actual)!=='undefined'){origin=dc_url_actual.split("?")[0];for(const[key,dcData]of Object.entries(dc_url_events)){if(origin.indexOf(key)>-1){digitalCircleManual('event',dcData);}}}}} function dcInner_onclickEvents(){if(typeof(dc_onclick_events)!=='undefined'){if(typeof(dc_url_actual)!=='undefined'){var i=1;for(const[key,dcData]of Object.entries(dc_onclick_events)){var element=document.getElementById(key);if(typeof(element)!=='undefined'&&element!=null){element.addEventListener('click',function(){digitalCircleManual('event',dcData);},false);dcInner_log('adding event listeners '+i+' for ['+key+'] action '+JSON.stringify(dcData));i++;}}}}} function icm(){dcInner_log('web is using old function icm() please remove it');} if(typeof gtag!=='function'){console.log('gtag-init starting');window.dataLayer=window.dataLayer||[];function gtag(){dataLayer.push(arguments);}} if(document.readyState!=='loading'){dcInner_log('anchor parsing - readyState for loading HTML ready');dcInner_anchor_check()}else{document.addEventListener('DOMContentLoaded',function(){dcInner_log('anchor parsing - DOMContentLoaded ready');dcInner_anchor_check()});} function dcInner_anchor_check(){var elements=document.getElementsByTagName('a');dcInner_log('found '+elements.length+' anchor elements');var j=1;for(var i=0;i1){var add=false;href_arr.shift();if(href_begin=='tel'){elements[i].setAttribute('dcClickEvent',j);dcInner_log('adding event listeners '+j+' for ['+href_begin+':'+href_arr.join(':')+'] action '+JSON.stringify({event:'cpc',cdata:{tel:href_arr.join(':')}}));var text=href_arr.join(':');elements[i].addEventListener('click',function(){var href_arr_in=this.getAttribute("href").split(':');href_arr_in.shift();digitalCircleManual('event',{event:'cpc',cdata:{tel:href_arr_in.join(':')}});},false);j++;} if(href_begin=='mailto'){elements[i].setAttribute('dcClickEvent',j);dcInner_log('adding event listeners '+j+' for ['+href_begin+':'+href_arr.join(':')+'] action '+JSON.stringify({event:'cec',cdata:{email:href_arr.join(':')}}));elements[i].addEventListener('click',function(){var href_arr_in=this.getAttribute("href").split(':');href_arr_in.shift();digitalCircleManual('event',{event:'cec',cdata:{email:href_arr_in.join(':')}});},false);j++;}}}}} if(window.jQuery){let dc_wp_formcraft_data={} dcInner_log('jquery found');jQuery(document).ready(function($){$(document).on("formcraft_submit_trigger",function(event,data,data2){let urlParams=new URLSearchParams(data2);for(let[key,value]of urlParams){dc_wp_formcraft_data[key]=value;} console.log(dc_wp_formcraft_data);});$(document).on("formcraft_submit_success_trigger",function(event,data){var dcData={event:'frm',clear:1,cdata:dc_wp_formcraft_data,} digitalCircleEvent(dcData);});});} document.addEventListener('wpcf7mailsent',function(event){var inputs=event.detail.inputs;var data={};for(var i=0;i{if(typeof(dc_datalayer_events)!=='undefined'){for(j=0;j