?> acc_=function(e){ let o=tgt(e),n=; n.style.maxHeight=o.checked?n.scrollHeight+'px':'0'; return; }; ca_=function(a,d){ a=a.split(''); var D=nD(d),n,o=ce('div','ca_'),tb,tr,z; o.innerHTML='
'; n=ce('div');n.innerHTML='
SundayMondayTuesdayWednesdayThursdayFridaySaturday
';o.appendChild(n.firstElementChild); n=bc(o,'div');x=ce('div','z_c');x.innerHTML='
';n.appendChild(x); n.appendChild(ca_.bc(D.y,D.m)); ob('ca_').appendChild(o); wk=false;for(i=0;i'); if(b[0]!==wk){wk=b[0];rw=false;tb=ob('wk'+b[0]).querySelector('tbody');} try{ if(b[1]!==rw){rw=b[1];tr=tb.appendChild(d.createElement('tr'));} tags out of the heading */?> x=ce('div');x.innerHTML=''+b[3].rpg('<br>','')+'
'; tr.appendChild(x.firstElementChild.firstElementChild.firstElementChild.firstElementChild); }catch(e){cl('calendar build error 1');cl(e);cl(b);continue;} } }; ca_.bc=function(sY,sM){ var cD,cls,cM,cY,dow1=nD(sY,sM,1).dw,D,o,now=nD().setHours(0,0,0,0),td=nD.dim(sY,sM),tdl=nD.dim(sY,sM-1)||nD.dim(sY,12),tr,x,z; o=ce('div','z_d');x=(sY%4==0&&sY%100!=0)||sY%400==0;if(sM==2&&x)td=29;if(sM==3&&x)tdl=29; if(dow1>0){c=tdl-dow1+1;cls='lmon';if(sM>1){cM=sM-1;cY=sY;}else{cM='12';cY=sY-1;}}else{c=1;cls='tm';cM=sM;cY=sY} for(i=0;i<6;i++){ for(j=0;j<7;j++){ if(cls=='lmon'&&c>tdl){c=1;cls='tm';cM=sM;cY=sY;}if(cls=='tm'&&c>td){c=1;cls='nmon';if(sM==12){cM=1;cY=sY+1;}else cM=sM+1;} cD=nD(cY,cM,c); if(j==0){ tr=o.appendChild(ce('div'));if(i%2==1)tr.className='erow';tr.id='wk'+nD(cD.setDate(cD.getDate()+1)).getWeek(); tr=bc(bc(tr.appendChild('table'),'tbody'),'tr'); } x=d.createTextNode((c==1?nD.mns[cM-1]+' ':'')+c);z=ce('td',cls+(+cD==+now?' now':'')+(cD< now?' past':''));z.id='c'+zl(cY,4)+zl(cM,2)+zl(c,2);tr.appendChild(ap(z,x));c++; } } return o; }; ca_ini=function(r){ var ca_=ob('ca_');ca_.parentNode.replaceChild(ce('div',false,'ca_'),ca_); r=b[0]+b[2];z.innerHTML=r;z.replaceChild(ob('b_'),z.firstElementChild);b=b[1].split('');ca_(b); ob('tk_').querySelector('.dr_').classList.add('mini'); }; anim_1=function(){ let n=document.body.querySelector('.cu_anim_1'),h=getComputedStyle(n).height.pi(),t=n.getBoundingClientRect().top+n.ownerDocument.defaultView.pageYOffset,xr=[30,80]; let tn=n.querySelector('anim_1'); temp=h/t*(xr[1]-xr[0]);tempy=tn.style.transform; tn.style.transform="translate:(temp,)"; } frm_f=function(e){ if(frm_f.tab){ frm_f.tab=false;frm_c(e); } };frm_f.tab=false; frm_c=function(e){ var i,fn,o=tgt(e),n; if(n=fcc(o,'zedit'))o=n; while((isi(o)||fcc(o,'zimagegroup'))&&((!e.which)||e.which==1)){ if(fce(o,'form')&&fcc(o,'frm_')&&w['frm_init'])FFF(o); i=frm_c.cn.f(o.name||o.id); if(i!==false){N.X(o);fn=w[frm_c.fn[i]];if(!fn(e)){r=false;fce(o,'li_').classList.add('err_');N.M(o,fn.m);break;}} break; } if(o&&o.classList.contains('zimagegroup'))ks(o);else if(d.activeElement!=o){if(o.focus)o.focus();if(fcc(o,'zedit')){rse();}} };frm_c.cn=[];frm_c.fn=[]; frm_inp=function(o){return o.querySelectorAll('input:not(:disabled):not([readonly]):not([type=hidden]),select:not(:disabled):not([readonly]),textarea:not(:disabled):not([readonly]),div.zedit');}; frm_init=function(o){ var a=(o=ob(o))?(o.nodeName.toLowerCase()=='form'?[o]:o.querySelectorAll('form')):document.body.querySelectorAll('form'),b,i,j,s,n; for(i=a.length;i--;){ a[i].onkeydown=function(e){if(e.keyCode==9)frm_f.tab=true;}; b=frm_inp(a[i]); for(j=b.length;j--;){ n=b[j]; if(n.nodeName.toLowerCase()=='select')n.onchange=frm_c;else{if(!document.body.classList.contains('ssv_'))n.onclick=frm_c;}; n.onfocus=frm_f; if(s=n.getAttribute('data-oc')){frm_c.cn.push(n.id);frm_c.fn.push(s);} } b=a[i].querySelectorAll('.zedit'); for(j=b.length;j--;){ n=b[j];n.contentEditable='true';n.setAttribute('unselectable','on');n.spellcheck='true'; } }; }; frm_init(); if(!array_key_exists('social_',$classesLoading)){ social_ini=function(){ var a=document.body.querySelectorAll('a'),i=a.length; while(i--)if(decodeURIComponent(a[i].href).indexOf('////')>-1){a[i].href=decodeURIComponent(a[i].href).rpg('////',w.location.href);} }; } social_ini(); DP=ob('dp_'); DP.dp_=function(wk,mo){ var a=d.querySelectorAll('.dp_'),D=nD(),i=a.length,o,x; while(i--){ if(!fcc(o=a[i],'db_')){ o.innerHTML='
'; x=ce('div');x.innerHTML=''+(wk?'':'')+'
WKSMTWRFS
'; o.appendChild(x.firstElementChild); } o.y=D.y;o.m=D.m; } }; DP.bp=function(o,D){ if(o=ob(o)){ let tm=o.querySelector('.dp_tm');if(tm)tm.textContent=nD.mns[D.m-1]+' '+D.y; k(o.querySelector('tbody')); o.querySelector('table').appendChild(DP.bc(D.y,D.m,o.getAttribute('data-opt')=='wk')); let m=fci(o,'mca_');if(m){let n=o.querySelector('table');if(n)n.setAttribute('data-href',m.getAttribute('data-href'));} o.y=D.y;o.m=D.m; for(let n of Array.from(o.querySelectorAll('.sel'))){rcn(n,'sel');} ob('d'+D.y+D.m+D.d).classList.add('sel'); } }; Date.prototype.getWeek = function() { var date = new Date(this.getTime()); date.setHours(0, 0, 0, 0); date.setDate(date.getDate() + 3 - (date.getDay() + 6) % 7); var week1 = new Date(date.getFullYear(), 0, 4); return 1 + Math.round(((date.getTime() - week1.getTime()) / 86400000 - 3 + (week1.getDay() + 6) % 7) / 7); }; DP.bc=function(sY,sM,wk,ib){ var cD,cls,cM,cY,dow1=nD(sY,sM,1),D,now=nD().setHours(0,0,0,0),td=nD.dim(sY,sM),tdl=nD.dim(sY,sM-1)||nD.dim(sY,12),tr,x,z;dow1=dow1.dw; ib=ib||'d';tB=ce('tbody','btns');x=(sY%4==0&&sY%100!=0)||sY%400==0;if(sM==2&&x)td=29;if(sM==3&&x)tdl=29; if(dow1>0){c=tdl-dow1+1;cls='lmon';if(sM>1){cM=sM-1;cY=sY;}else{cM='12';cY=sY-1;}}else{c=1;cls='tm';cM=sM;cY=sY} for(i=0;i<6;i++){ tr=ce('tr');tB.appendChild(tr);if(i%2==1)tr.className='erow'; for(j=0;j<7;j++){ if(cls=='lmon'&&c>tdl){c=1;cls='tm';cM=sM;cY=sY;}if(cls=='tm'&&c>td){c=1;cls='nmon';if(sM==12){cM=1;cY=sY+1;}else cM=sM+1;} cD=nD(cY,cM,c);if(wk&&j==0)ap(tr,ap(ce('td','wk'),d.createTextNode(zl(cD.getWeek(),2)))).appendChild('td'); x=d.createTextNode(''+c);z=ce('td',cls+(+cD==+now?' now':'')+(cD < now?' past':''));z.id=ib+zl(cY,4)+zl(cM,2)+zl(c,2);tr.appendChild(ap(z,x));c++; } }return tB; }; DP.close=function(){acn(DP,'dn');ob('jenisys').appendChild(k(DP));}; DP.dp_(false,true);DP.bp('dp_',nD()); mca_ini=function(){var o=ob('mca_');o.y=;o.m=;DP.dp_(false,true);DP.bp('mca_',nD());}; mcacl_=function(e){ var D,o=tgt(e),n; if(n=fci(o,'mca_')){ if(fcc(o,'dpik'))dpcl_(e); if(fce(o,'table')||fcc(o,'dp_tm'))n.querySelector('table').setAttribute('data-parms','dr='+nD(n.y,n.m,'01').ds+','+nD(n.y,n.m,nD.dim(n.y,n.m)).ds); if(n)if(o=n.querySelector('table'))o.setAttribute('data-href',n.getAttribute('data-href')) } };oc.fn.push('mcacl_');oc.cn.push('mca_'); mca_ini(); tk_kd=function(e){var o=tgt(e),x=ky(e);if(x==13&&o.id=='tk_term')tkcl_(ns(o));}; tk_blr=function(){ }; tkcl_=function(e){ var a,b,c,D,D2,dy,m,n,o=tgt(e),op,s,tl,x,y; while(o){ if(tl=fcc(o,'sr_')){ if(o.id=='tk_term'){ } if(o.type=='button'){op=true;tk_.sr=get('tk_term'.t());} break; } if(fcc(o,'btns')){ if(fcc(o,'vw_')){ fcc(o,'dd_').classList.remove('open'); tk_.vw=did(o);op=true; if(tk_.vw=='ca'){ D=nD(tk_.sd); tk_.sd=nD(D.y,D.m,1).ds;tk_.ed=nD(D.y,D.m+1,0).ds; } } if(fcc(o,'rg_')){tk_.rg=did(o);op=true;} if(fcc(o,'cg_')){tk_.cg=did(o);op=true;} } if(fcc(o,'dr_')){D=dpcl_(e);D2=D[1];D=D[0];if(D){fcc(o,'dd_').classList.remove('open');D2=D2||D;tk_.sd=D.ds;tk_.ed=D2.ds;op=true;}} break; } if(op){tk_xr();} }; tk_nf=function(){ var a=ob('tk_').getAttribute('data-opt').split('&'),b,i; for(i=0;i var a,c,s,vr; tk_.odl=tk_.od.slice(0); tk_.dr=(tk_.sd||'')+','+(tk_.ed||'');if(tk_.dr==',')tk_.dr=''; s='';for(i=0;i Xd('b_',oc.prm+(pnm(w.location.href)||'index')+s+'&jensiii='+document.body.getAttribute('data-jensiii')); }; tk_=function(a){var b,i; i=tk_.op.length;while(i--)tk_[tk_.op[i]]=''; a=a.split('&');i=a.length;tk_.sd=tk_.ed=''; while(i--){b=a[i].split('='); if(b[0]=='vw')ob('wpg').className='wpg '+b[1]; if(b[0]=='dr'){b=b[1].split(',');tk_.sd=b[0];tk_.ed=b[1];}else{tk_[b[0]]=b[1]||'';} } set('tk_term',tk_.sr); }; tk_ini=function(){ var a,b,D=nD(),i,o,x; ob('tk_').querySelector('tk_').classList.remove('dn'); o=ob('tk_term');o.onkeydown=tk_kd;o.onblur=tk_blr; x=ob('tk_').querySelector('li.dr_');x.y=D.y;x.m=D.m; oc.fn.push('tkcl_');oc.cn.push('tk_'); oc.fn.push('tk_nf');oc.cn.push('nofilt_'); tk_.prm='cmd=tk_&cf=config'; tk_.op='vw dr sr cg rg gr rp'.split(' ');tk_.od=[]; a=ob('tk_').getAttribute('data-opt');tk_(a);a=a.split('&'); for(i=0;i }; dpcl_=function(e){ var o=tgt(e),c=o.className,D=false,D2=false,n=fcc(o,'dr_'),m=n.m,y=n.y,vca; if(w['tk_'])vca=tk_.vw='ca'; while(!(fcc(o,'mn_')&&fce(o,'tbody'))){ if(c=='py')y--;if(c=='sy')y++;if(c=='pm'){if(m==1){y--;m=12;}else m--;}if(c=='sm'){if(m==12){y++;m=1;}else m++;}if(c=='to'){x=nD();y=x.y;m=x.m;} if(fcc(o,'dpik')){DP.bp(n,nD(y,m,1));cE(e);break;} if(c=='pm'||c=='sm'||c=='to'){D=nD(y,m,1);n.y=y;n.m=m;break;} if(w['tk_']&&(o.classList.contains('dp_tm')||(vca&&fce(o,'tbody')))){ D=nD(y,m,1);D2=nD(D.y,D.m+1,0); break; } if(nn(o)=='li'&&fcc(o,'dc_')){a=did(o).split(',');D=nD(a[0]);D2=nD(a[1]||a[0]);break;} if(fce(o,'table')){ if(w['tk_']){ o=fce(o,'td'); if(!o)break; x=(c=='wk')?ns(ns(o)).id:o.id; y=x.substr(1,4);m=x.substr(5,2);dy=x.substr(7,2); if(c=='wk'){D=nD(y,m,(vca)?1:dy);D2=vca?nD(D.y,D.m+1,0):nD(D.y,D.m,D.d+6);break;} if(vca){D=nD(y,m,1);D2=nD(D.y,D.m+1,0);}else D=nD(y,m,dy); } } break; } return [D,D2]; }; cacl_=function(e){ var c,D,o=tgt(e),m,y; if(fcc(o,'dpik')){ c=o.className;D=nD(tk_.sd); y=D.y;m=D.m; if(c=='py')y--;if(c=='sy')y++;if(c=='pm'){if(m==1){y--;m=12;}else m--;}if(c=='sm'){if(m==12){y++;m=1;}else m++;}if(c=='to'){D=nD();y=D.y;m=D.m;} D=nD(y,m,1);D2=nD(D.y,D.m+1,0); if(){ if(x=fce(o,'td')){ x=o.id; } } if(D){tk_.sd=D.ds;tk_.ed=D2.ds;} tk_xr(); } return; }; oc.fn.push('cacl_');oc.cn.push('ca_'); X'; n2.insertAdjacentElement('afterbegin',n.cloneNode(true)); document.body.appendChild(n1); } */?> ?> ca_xr=function(a,IB){ C=IB.plv.rset; var b,c,cD,dr=IB.querySelector('.dr_'),D,D2,DB=IB.querySelector('db_'),cm,dy,i,j,mn,o,psd,r,s=' ',term,tr,tt,x,y,yr,x,z; c=a[0].split(''); a=c[0].split(''); cm=a[0]; while(cm=='get'){ var vw=a[1],pvw=IB.plv[IB.pnm.f('vw')]||'',vca=vw=='ca',vag=vw=='ag',vbb=vw=='bb',vpb=vw=='pb',sd=a[2],ed=a[3],sr=a[4],cg=a[5],rg=a[6],ri=a[7],r,sY=sd.ss(0,4).pi(),sM=sd.ss(4,2).pi(),sD=sd.ss(6).pi(),tbl,tB=document.body.querySelector('tbody'),x,z; D=nD(sd);D2=nD(ed||sd);if(x=document.body.querySelector('.hdg'))ca_.hdg=k(x);kc(document.body); if(ri){document.body.innerHTML=a[8];document.body.classList.remove(pvw);document.body.classList.add('dt');break;} if(vw!=pvw||document.body.classList.contains('dt')){ if(vca){rac(dr,'sel');rac(z=IB.querySelector('.dp_'),'sel');z.querySelector('.dp_tm').classList.add('sel');} IB.classList.remove(pvw);document.body.classList.remove(pvw);document.body.classList.remove('dt');IB.classList.add(vw);document.body.classList.add(vw); } document.body.appendChild(ca_.hdg);tbl=bc(document.body,'table');tt=document.body.querySelector('.title'); term=(sr.l>0?' Search Term '+sr:''); if(vca){ tB=tbl.appendChild(calendar(sY,sM,false,IB.id)); set(kc(tt),nD.mns[sd.ss(4,2).pi()-1]+' '+sd.ss(0,4)); }else{ tB=tbl.appendChild(ce('tbody')); if(c.length< 2){ tB.appendChild(ap(ce('tr','noresult'),bp('td',d.createTextNode('No Events Scheduled'+(term?': ':'')+term)))); } set(kc(tt),nD.ld(D,D2,true)); } b='hd in sd ed st et lo lk lx im ib'.split(' '); for(i=1;i0?a.sd:false; a=[];r=c[i].split(''); r.id=r[0]; for(j=0;j< b.length;j++){ x=r[j+1]; C[b[j]+r.id]=x; r[b[j]]=x; } if(vca){ IB.id+r.sd.appendChild(ap(sa(sa(ce('span'),'data-id',r.id),'data-sd',r.sd),d.createTextNode(r.st.rpg(' pm','p').rpg(' am','a').rpg(':00','')+' '+r.hd))); } if(vag){ if(psd&&r.sd!=psd){x=ce('td');x.colSpan=4;x=tB.appendChild(ap(ce('tr','spr'),x));} tr=bc(tB,'tr');tr.onclick='ocl_';tr.setAttribute('data-id',r.id);tr.setAttribute('data-sd',r.sd);D=nD(r.sd);D2=nD(r.ed||r.sd); x=D.dn;if(D.dn!=D2.dn)x+=' - '+D2.dn;tr.appendChild(ap(ce('td'),bp('strong',d.createTextNode(x)))); n=bp('td',d.createTextNode(nD.ld(D,D2)));tr.appendChild(n); x=ce('div');x.innerHTML=''+r.st+'';tr.appendChild(x.firstElementChild); if(r.et&&r.et!=r.st){x.appendChild(d.createTextNode(' - '));x.appendChild(ap(ce('span','wnw'),d.createTextNode(r.et)));} atr.appendChild(ap(ce('td','hd'),ap(ce('span'),d.createTextNode(r.hd)))); if(r.lk){y=ce('a');y.href=r.lk;y.target='_blank';ap(y,d.createTextNode(r.lx));}else{y=d.createTextNode('');} bc(tr,'td').appendChild(y); } } break; }; }; g_=function(){ var a=d.querySelectorAll('.pb_'),b,c,ch,cx,ht,i=a.length,j,l,ml,mb,n,o,osl,ost,tw,x,y,z; while(i--){ b=a[i].querySelectorAll('.i');'s */?> j=b.length; if(j==0)continue; if(j>8)j=8;while(j--){b[j].style.left=null;b[j].style.top=null;b[j].style.position='relative';b[j].style.width=b[0].style.width;} o=b[0]; mb=getComputedStyle(o).marginBottom.pi(); ml=getComputedStyle(o).marginLeft.pi() tw=getComputedStyle(o).width.pi(); ost=o.offsetTop;osl=o.offsetLeft-w.getComputedStyle(o,'').marginLeft.pi();ch=[];cx=[]; j=0;while(b[j]&&b[j].offsetTop==ost){cx[j]=j*(tw+ml)+osl;ch[j]=ost+mb+w.getComputedStyle(b[j],'').height.pi();j++;} tir=j;l=b.length-tir; if(tir==1){ for(j=0;j n=b[j];n.style.position='relative';n.style.top=0;n.style.left=0;a[i].style.height='auto'; } }else{ for(j=0;j z=0;y=ch[0]; for(x=0;x y=ch[0];x=tir;while(x--)if(ch[x]>y)y=ch[x]; a[i].style.height=y+'px'; } } } }; g_ini=function(){ var a=document.body.querySelectorAll('.pb_'),b,i,j; for(i=0;i }; w.addEventListener('resize',function(){if(ob('g_')){clearTimeout(TO['g_']);TO['g_']=setTimeout(g_,100);}},true); g_ini(); var twitterOpts=function(){ var height=Math.min(w.innerHeight,300),width=Math.min(w.innerWidth,600),left=(w.innerWidth/2)-(width/2),top=(w.innerHeight/2)-(height/2); return['resizable,scrollbars,status','height='+height,'width='+width,'left='+left,'top='+top].join(); }; var twitterBtn=document.querySelector('.twitter-share-button>a'); var twitterUrl='https://twitter.com/intent/tweet?url='+location.href+'&text='+encodeURIComponent(''); twitterBtn.href=twitterUrl; twitterBtn.addEventListener('click',function(e){cE(e);var win=w.open(twitterUrl,'ShareOnTwitter',twitterOpts());win.opener=null;}); mc_=function(e){ var o=fcc(tgt(e),'mc_'),a=o.elements,url=o.getAttribute('action').replace('/post?u=', '/post-json?u='); cE(e); for (i=0;i } url+='&c=mc_x'; o=ce('script');o.src=url;o.id='mc_script';d.head.appendChild(o);o.onload=function(){this.remove();} }; mc_x=function(x){ var n,o; o=ob('mc_error');o.innerHTML='';o.classList.add('dn');o=ob('mc_success');o.innerHTML='';o.classList.add('dn'); o=ob('mc_'+x.result);n=ce('div');n.innerHTML=x.msg;o.appendChild(n); o.classList.remove('dn'); }; mc_ini=function(){ var n=ob('mc_submit'); if(n)n.onclick=mc_; }; mc_ini(); jii.ui=function(e){if(e.isTrusted)jii.c='​';}; jii.submit=function(e){ e.preventDefault();e.stopPropagation(); if(e.isTrusted){ jii.ui(e); const f=e.target,fd=new FormData(f); f.querySelector('button[type="submit"]').disabled=true; fd.append('auth',''+jii.c); if(e.target.parentNode.querySelectorAll('input[name="login"]').length>0){ fd.append('pth',window.location.href.split('#')[0].split('')[1]||'index/'); } X('b_',fd); } }; jii.submit_ini=function(){ const a=WPG.querySelectorAll('form'); a.forEach( f=>{ if(f.querySelector('button[type="submit"]')){ f.addEventListener('submit',jii.submit); } }); WPG.addEventListener('submit',jii.ui,{capture:true}); WPG.addEventListener('click',jii.ui,{capture:true});/* The event listener is registered in the capturing phase.*/ WPG.addEventListener('touchstart',jii.ui,{passive:true,capture:true }); document.addEventListener('keydown',jii.ui,{capture:true}); }; jii.submit_ini(); review_ini=function(){ let n =document.body.querySelector('.review_'); n.addEventListener('mousedown',review_reg); addEventListener('touchstart',review_reg,{passive: true}); }; review_reg=function(e){ let fd=new FormData(); fd.append('cmd','GRVW'); X('b_',fd); }; review_ini(); window.jiif=(function(){ const C=''; function localStorageAccessible() { try { const testKey = 'test'; localStorage.setItem(testKey, 'test'); localStorage.removeItem(testKey); return true; } catch (e) { console.error('SELF GENERATED ERROR: Access to localStorage is denied:', e); return false; } } const formSubmit = function(f){ formData = new FormData(f); if(localStorageAccessible()){ formData.append('tkn2', localStorage.getItem('csrf_token')); } formData.append('callback','jiif.callback'); formData.append('auth','form_'+C); formData.append('id',f.getAttribute('id')); const reqd = f.querySelectorAll('[required]'); formData.append('reqd',Array.from(reqd).map(e => e.name).join(',')); afetch(formData); }; const ini = function(tkn){ for(let f of document.body.querySelectorAll('.form_')){ for(let i of f.querySelectorAll('input,textarea,select')){ f.addEventListener('change', function(e) { f.classList.remove('form_err'); }); } f.querySelector('button').disabled=false; f.addEventListener('submit', function(e) { e.preventDefault(); e.stopPropagation(); if(e.isTrusted){ f.querySelector('button').disabled=true; formSubmit(f); } }); } document.getElementById('jenisys_message_pop').addEventListener('click', function() { let p=document.getElementById('jenisys_message_pop'); p.classList.add('dn'); document.getElementById('jenisys_loading_overlay').classList.add('dn'); var s = p.querySelector('.ic_close'); while (s=s.nextSibling) { if (s.nodeType === Node.TEXT_NODE) { s.textContent = ''; } } }); if(localStorageAccessible()){ localStorage.setItem('csrf_token', ''); } }; const ui = function(e){ if(e.isTrusted){ if(e.type=='mousemove'){ if(typeof e.clientX !=='undefined')C=' '; } else if (e.type === 'touchstart') { if (e.touches.length > 0) { if('screenX' in e.touches[0] !== true)C=' '; } } else if(e.type === 'keydown')C=' '; }else{ e.preventDefault(); } }; const callback = function(response){ if(response){ if(response.error=='Timeout'){ setTimeout(formSubmit, 200, response.id); }else{ if(response.message){ messagePop(response); } if(response.complete){ for(let f of document.body.querySelectorAll('.form_')){ f.reset(); window.scrollTo({ top: 0, behavior: 'smooth' }); } } } } for(let f of document.body.querySelectorAll('.form_')){ f.querySelector('button').disabled=false; } }; ini(); return{ ui: ui, callback: callback }; })(); document.body.querySelectorAll('[class$="plx_"]').forEach(i => { i.classList.add('plxl_'); }); document.body.offsetHeight; window.jiix_=(function(){ const ix_=function(e){ var a,i,o=e.target,ix=document.querySelector('#ix_'),s,x; console.log('IX_'); if(o.closest('#ix_')){ e.preventDefault(); }; console.log(o); if(o.closest('.close')||o.closest('.cancel')||e.keyCode==27){ close(); }else if(o.closest('.i')&&(o.closest('.ix_'))&&!o.closest('.modal_')&&!o.closest('.hero_')&&!o.closest('#ss_')){ open(e); }else if(ix){ o=ix.querySelector(e.pageX>parseInt(getComputedStyle(ix).width,10)/2?'.fwd':'.bwd'); let cmd=o.closest('.fwd')||e.keyCode==39?'fwd':o.closest('.bwd')||e.keyCode==37?'bwd':false; if(cmd){ let c=ix.querySelector('.i.ix_current'),is=ix.querySelectorAll('.i'); let n=cmd=='fwd'?c.nextElementSibling||is[0]:c.previousElementSibling||is[is.length-1]; c.classList.remove('ix_current'); n.classList.add('ix_current'); style(n); console.log('styled'); console.log(n.outerHTML); } } }; const style=function(n){ let ix=document.getElementById('ix_'); let s = 'translateX(-' + 100 * (Array.from(ix.querySelectorAll('.i')).indexOf(n) || 0) + '%)'; let m=ix.querySelector('.slides_');m.style.webkitTransform=s;m.style.transform=s; }; const close=function(){ console.log('ix_close'); var n=document.getElementById('ix_'); document.body.appendChild(document.getElementById('ldg_')).classList.add('dn'); n.parentNode.removeChild(n); document.body.style.overflow='auto'; document.body.scrollTop=document.body.sc[1]; }; const txt=function(i){ let ix=document.getElementById('ix_'); let s=ix.classList&&ix.classList.contains('textfromtitle'); if(x=i.querySelector('img')){ if(s)text=x.getAttribute('title')||'';else text=x.getAttribute('alt')||'' } if(text){let txt=document.createElement('p');txt.classList.add('itxt');txt.textContent=text;i.appendChild(txt);} }; const open=function(e){ console.log('IX_OPEN'); let o=e.target,m=document.createElement('div'); document.body.sc=[document.body.scrollLeft,document.body.scrollTop]; document.body.scrollTop=0; document.body.style.overflow='hidden'; m.classList.add('modal_'); m.id='ix_'; m.appendChild(document.getElementById('ldg_')); let slides_=document.createElement('div'); slides_.classList.add('slides_'); m.appendChild(slides_); document.getElementById('wpg').appendChild(m); let ix=o.closest('.ix_'); if(ix.getAttribute('data_textfrom')=='title')m.classList.add('textfromtitle'); let g_img_s=ix.querySelectorAll('.img_'); console.log(g_img_s); for(let g_img_ of g_img_s){ const g_img=g_img_.querySelector('img'); console.log(g_img); let a=g_img.getAttribute('alt'),dm=g_img.getAttribute('data-max')||'1000x750',img_=document.createElement('span'),i=document.createElement('div'),img=document.createElement('img'),t=g_img.getAttribute('title'),s=''+(g_img.getAttribute('data-src')||g_img.getAttribute('src').slice(1)); a=a&&a!='null'?a:''; t=t&&t!=null?t:''; img_.classList.add('img_'); i.classList.add('i'); i.appendChild(img_); img.setAttribute('src',s); img.setAttribute('title',t); img.setAttribute('alt',a); img_.appendChild(img); let x=document.createElement('span'); x.classList.add('close'); x.appendChild(document.createElement('span')); i.appendChild(x); if(g_img_s.length>1){ x=document.createElement('span'); x.classList.add('bwd'); x.appendChild(document.createElement('span')); i.appendChild(x); x=document.createElement('span'); x.classList.add('fwd'); x.appendChild(document.createElement('span')); i.appendChild(x); } slides_.appendChild(i); txt(i); if(g_img_==o.closest('.img_')){ i.classList.add('ix_current'); style(i); } if(dm){ let o=document.querySelector('.ix_').querySelector('.itxt'); let th=o?getComputedStyle(o).display=='block'?parseInt(getComputedStyle(o).height,10)||0:0:0; let ar=dm.split('x'); if(ar.length>1){ ar=ar[1]/ar[0]; let s=getComputedStyle(img_); let hr=parseInt(s.height,10)-th; wr=Math.min(parseInt(s.width,10),+); if(ar>hr/wr){ wr=Math.ceil(hr/ar); }else{ hr=Math.ceil(ar*wr); } img_.style.width=wr+'px'; img_.style.height=hr+'px'; img_.style.flexGrow='0'; } } } return; }; WPG.addEventListener('keydown', ix_); WPG.addEventListener('click',ix_); })(); dt_ax=function(){ var a=document.body.querySelector('div.dt_').querySelectorAll('span','i'),i,n,o,y=w.pageYOffset; for(i=0;i< a.length;i++){ o=a[i]; if(o.classList.contains('dn')&&os(o.parentNode)[1]-y< 2400){n=o.querySelector('img');n.src=n.getAttribute('data-src');o.classList.remove('dn');} } };w.addEventListener('scroll',dt_ax,false); aniVis=function(){ if(!aniVis.to){ for(let n from ob('wpg').querySelector('[class^="ani_"],[class*=" ani_"]')){if(n.top < window.innerHeight && n.bottom >= 0)acn(n,'ani_isvis');} aniVis.to=setTimeout(function(){aniVis.to=false;},250); } }; ob('wpg').addEventListener('scroll',aniVis); slide_ini=function(){ let i=document.body.querySelector('.ss_'); if(w['oc']&&w['oc'].fn&&i){ oc.fn.pu('slide_cl');oc.cn.pu('ss_'); }else{ TO['slide_ini']=setTimeout(slide_ini,50); } }; slide_cl=function(e){ TO['iChk']=setTimeout(iChk,20); return; }; slide_ini(); ssr_cl=function(e){ var o=tgt(e); did(o,pnm(w.location.href)+'.htm?sr='+get('sr_tx')); }; ssr_ini=function(){oc.fn.push('ssr_cl');oc.cn.push('sr_b');}; ssr_ini();