You've already forked ProfessionalWebsite
Finished optimising all assets including conversion of all images to WebP. Added all Credly badges to accreditations slider Reorganisation of image assets Attaching ALT Text to all imagery Removal of .html extension on all pages
1 line
38 KiB
JavaScript
1 line
38 KiB
JavaScript
window.innerWidth<768&&[].slice.call(document.querySelectorAll("[data-bss-disabled-mobile]")).forEach((function(e){e.classList.remove("animated"),e.removeAttribute("data-bss-hover-animate"),e.removeAttribute("data-aos"),e.removeAttribute("data-bss-parallax-bg"),e.removeAttribute("data-bss-scroll-zoom")})),document.addEventListener("DOMContentLoaded",(function(){[].slice.call(document.querySelectorAll("[data-bss-hover-animate]")).forEach((function(e){e.addEventListener("mouseenter",(function(e){e.target.classList.add("animated",e.target.dataset.bssHoverAnimate)})),e.addEventListener("mouseleave",(function(e){e.target.classList.remove("animated",e.target.dataset.bssHoverAnimate)}))}));var e=document.querySelectorAll("[data-bss-swiper]"),t=document.querySelectorAll(".swiper-nav-standalone");for(var n of e){let e=JSON.parse(n.dataset.bssSwiper);if(!e.navigation){e.navigation={};for(let i of t)if(i.dataset.bssSwiperTarget==="#"+n.id){e.navigation.prevEl=i.querySelector(".swiper-button-prev"),e.navigation.nextEl=i.querySelector(".swiper-button-next");break}}new Swiper(n,e)}}),!1);const carousel=document.getElementById("carouselExampleCaptions");carousel.addEventListener("mouseover",(function(){bootstrap.Carousel.getInstance(carousel).pause()})),carousel.addEventListener("mouseout",(function(){bootstrap.Carousel.getInstance(carousel).cycle()}));var ppurl="#privactyurl",contacturl="#contacturl";function clearcc(){let e=["c","l","r"],t=0;document.addEventListener("keypress",(n=>{n.key===e[t]?(t++,t===e.length&&(document.cookie="cc_cookie =; Max-Age=-99999999;",location.reload())):t=0}))}window.addEventListener("load",(function(){initCookieConsent().run({current_lang:"en",autoclear_cookies:!0,page_scripts:!0,onFirstAction:function(e,t){},onAccept:function(e){},onChange:function(e,t){},languages:{en:{consent_modal:{title:"We use cookies!",description:'Hi, this website uses essential cookies to ensure its proper operation and tracking cookies to understand how you interact with it. The latter will be set only after consent. <button type="button" data-cc="c-settings" class="cc-link">Let me choose</button>',primary_btn:{text:"Accept all",role:"accept_all"},secondary_btn:{text:"Reject all",role:"accept_necessary"}},settings_modal:{title:"Cookie preferences",save_settings_btn:"Save settings",accept_all_btn:"Accept all",reject_all_btn:"Reject all",close_btn_label:"Close",cookie_table_headers:[{col1:"Name"},{col2:"Domain"},{col3:"Expiration"},{col4:"Description"}],blocks:[{title:"Cookie usage 🍪",description:'We use cookies to ensure the basic functionalities of the website and to enhance your online experience. You can choose for each category to opt-in/out whenever you want. For more details relative to cookies and other sensitive data, please read the full <a href="'+ppurl+'" class="cc-link">privacy policy</a>.'},{title:"Strictly necessary cookies",description:"These cookies are essential for the proper functioning of my website. Without these cookies, the website would not work properly",toggle:{value:"necessary",enabled:!0,readonly:!0}},{title:"Performance and Analytics cookies",description:"These cookies allow the website to remember the choices you have made in the past",toggle:{value:"analytics",enabled:!1,readonly:!1},cookie_table:[{col1:"^_ga",col2:"google.com",col3:"2 years",col4:"description ",is_regex:!0},{col1:"_gid",col2:"google.com",col3:"1 day",col4:"description "}]},{title:"Advertisement and Targeting cookies",description:"These cookies collect information about how you use the website, which pages you visited and which links you clicked on. All of the data is anonymized and cannot be used to identify you",toggle:{value:"targeting",enabled:!1,readonly:!1}},{title:"More information",description:'For any queries in relation to our policy on cookies and your choices, please <a class="cc-link" href="'+contacturl+'">contact us</a>.'}]}}}})})),clearcc(),function(){"use strict";var e="initCookieConsent";"undefined"!=typeof window&&"function"!=typeof window[e]&&(window[e]=function(e){var t,n,i,a,o,s,r,c,l,d,u,h,f,p,g,m,v,_,b,y,k,w,D,x,C,A,M,S,N,T,E,R,O={mode:"opt-in",current_lang:"en",auto_language:null,autorun:!0,page_scripts:!0,hide_from_bots:!0,cookie_name:"cc_cookie",cookie_expiration:182,cookie_domain:window.location.hostname,cookie_path:"/",cookie_same_site:"Lax",use_rfc_cookie:!1,autoclear_cookies:!0,revision:0,script_selector:"data-cookiecategory"},j={},L={},I=null,Y=!0,H=!1,F=!1,W=!1,P=!1,q=!1,J=!0,B=[],U=!1,z=[],V=[],K=[],G=!1,X=[],$=[],Q=[],Z=[],ee=[],te=document.documentElement,ne=function(e){"number"==typeof(t=e).cookie_expiration&&(O.cookie_expiration=t.cookie_expiration),"number"==typeof t.cookie_necessary_only_expiration&&(O.cookie_necessary_only_expiration=t.cookie_necessary_only_expiration),"boolean"==typeof t.autorun&&(O.autorun=t.autorun),"string"==typeof t.cookie_domain&&(O.cookie_domain=t.cookie_domain),"string"==typeof t.cookie_same_site&&(O.cookie_same_site=t.cookie_same_site),"string"==typeof t.cookie_path&&(O.cookie_path=t.cookie_path),"string"==typeof t.cookie_name&&(O.cookie_name=t.cookie_name),"function"==typeof t.onAccept&&(c=t.onAccept),"function"==typeof t.onFirstAction&&(d=t.onFirstAction),"function"==typeof t.onChange&&(l=t.onChange),"opt-out"===t.mode&&(O.mode="opt-out"),"number"==typeof t.revision&&(t.revision>-1&&(O.revision=t.revision),q=!0),"boolean"==typeof t.autoclear_cookies&&(O.autoclear_cookies=t.autoclear_cookies),!0===t.use_rfc_cookie&&(O.use_rfc_cookie=!0),"boolean"==typeof t.hide_from_bots&&(O.hide_from_bots=t.hide_from_bots),O.hide_from_bots&&(G=navigator&&(navigator.userAgent&&/bot|crawl|spider|slurp|teoma/i.test(navigator.userAgent)||navigator.webdriver)),O.page_scripts=!0===t.page_scripts,"browser"===t.auto_language||!0===t.auto_language?O.auto_language="browser":"document"===t.auto_language&&(O.auto_language="document"),O.auto_language,O.current_lang=de(t.languages,t.current_lang)},ie=function(e){for(var t="accept-",n=r("c-settings"),i=r(t+"all"),a=r(t+"necessary"),o=r(t+"custom"),s=0;s<n.length;s++)n[s].setAttribute("aria-haspopup","dialog"),_e(n[s],"click",(function(e){e.preventDefault(),j.showSettings(0)}));for(s=0;s<i.length;s++)_e(i[s],"click",(function(e){c(e,"all")}));for(s=0;s<o.length;s++)_e(o[s],"click",(function(e){c(e)}));for(s=0;s<a.length;s++)_e(a[s],"click",(function(e){c(e,[])}));function r(t){return(e||document).querySelectorAll('a[data-cc="'+t+'"], button[data-cc="'+t+'"]')}function c(e,t){e.preventDefault(),j.accept(t),j.hideSettings(),j.hide()}},ae=function(e,t){return Object.prototype.hasOwnProperty.call(t,e)?e:be(t).length>0?Object.prototype.hasOwnProperty.call(t,O.current_lang)?O.current_lang:be(t)[0]:void 0},oe=function(e){if(!0===t.force_consent&&ye(te,"force--consent"),!m){m=le("div");var n=le("div"),i=le("div");m.id="cm",n.id="c-inr-i",i.id="cm-ov",m.setAttribute("role","dialog"),m.setAttribute("aria-modal","true"),m.setAttribute("aria-hidden","false"),m.setAttribute("aria-labelledby","c-ttl"),m.setAttribute("aria-describedby","c-txt"),g.appendChild(m),g.appendChild(i),m.style.visibility=i.style.visibility="hidden",i.style.opacity=0}var a=t.languages[e].consent_modal.title;a&&(v||((v=le("div")).id="c-ttl",v.setAttribute("role","heading"),v.setAttribute("aria-level","2"),n.appendChild(v)),v.innerHTML=a);var o=t.languages[e].consent_modal.description;q&&(o=J?o.replace("{{revision_message}}",""):o.replace("{{revision_message}}",t.languages[e].consent_modal.revision_message||"")),_||((_=le("div")).id="c-txt",n.appendChild(_)),_.innerHTML=o;var s,r=t.languages[e].consent_modal.primary_btn,c=t.languages[e].consent_modal.secondary_btn;r&&(b||((b=le("button")).id="c-p-bn",b.className="c-bn","accept_all"===r.role&&(s="all"),_e(b,"click",(function(){j.hide(),j.accept(s)}))),b.innerHTML=t.languages[e].consent_modal.primary_btn.text),c&&(y||((y=le("button")).id="c-s-bn",y.className="c-bn c_link","accept_necessary"===c.role?_e(y,"click",(function(){j.hide(),j.accept([])})):_e(y,"click",(function(){j.showSettings(0)}))),y.innerHTML=t.languages[e].consent_modal.secondary_btn.text);var l=t.gui_options;w||((w=le("div")).id="c-inr",w.appendChild(n)),k||((k=le("div")).id="c-bns",l&&l.consent_modal&&!0===l.consent_modal.swap_buttons?(c&&k.appendChild(y),r&&k.appendChild(b),k.className="swap"):(r&&k.appendChild(b),c&&k.appendChild(y)),(r||c)&&w.appendChild(k),m.appendChild(w)),H=!0,ie(w)},se=function(e){if(D)(S=le("div")).id="s-bl";else{D=le("div");var n=le("div"),i=le("div"),a=le("div");x=le("div"),C=le("div");var o=le("div");A=le("button");var c=le("div");M=le("div");var l=le("div");D.id="s-cnt",n.id="c-vln",a.id="c-s-in",i.id="cs",C.id="s-ttl",x.id="s-inr",o.id="s-hdr",M.id="s-bl",A.id="s-c-bn",l.id="cs-ov",c.id="s-c-bnc",A.className="c-bn",D.setAttribute("role","dialog"),D.setAttribute("aria-modal","true"),D.setAttribute("aria-hidden","true"),D.setAttribute("aria-labelledby","s-ttl"),C.setAttribute("role","heading"),D.style.visibility=l.style.visibility="hidden",l.style.opacity=0,c.appendChild(A),_e(n,"keydown",(function(e){27===(e=e||window.event).keyCode&&j.hideSettings(0)}),!0),_e(A,"click",(function(){j.hideSettings(0)}))}A.setAttribute("aria-label",t.languages[e].settings_modal.close_btn_label||"Close"),r=t.languages[e].settings_modal.blocks,s=t.languages[e].settings_modal.cookie_table_headers;var d=r.length;C.innerHTML=t.languages[e].settings_modal.title;for(var u=0;u<d;++u){var h=r[u].title,f=r[u].description,p=r[u].toggle,m=r[u].cookie_table,v=!0===t.remove_cookie_tables,_=(f||!v&&m)&&"truthy",b=le("div"),y=le("div");if(f){var k=le("div");k.className="p",k.insertAdjacentHTML("beforeend",f)}var w=le("div");if(w.className="title",b.className="c-bl",y.className="desc",void 0!==p){var O="c-ac-"+u,I=le(_?"button":"div"),H=le("label"),F=le("input"),W=le("span"),P=le("span"),q=le("span"),J=le("span");I.className=_?"b-tl exp":"b-tl",H.className="b-tg",F.className="c-tgl",q.className="on-i",J.className="off-i",W.className="c-tg",P.className="t-lb",_&&(I.setAttribute("aria-expanded","false"),I.setAttribute("aria-controls",O)),F.type="checkbox",W.setAttribute("aria-hidden","true");var B=p.value;F.value=B,P.textContent=h,I.insertAdjacentHTML("beforeend",h),w.appendChild(I),W.appendChild(q),W.appendChild(J),Y?p.enabled?(F.checked=!0,!S&&Q.push(!0),p.enabled&&!S&&K.push(B)):!S&&Q.push(!1):ce(L.categories,B)>-1?(F.checked=!0,!S&&Q.push(!0)):!S&&Q.push(!1),!S&&Z.push(B),p.readonly?(F.disabled=!0,ye(W,"c-ro"),!S&&ee.push(!0)):!S&&ee.push(!1),ye(y,"b-acc"),ye(w,"b-bn"),ye(b,"b-ex"),y.id=O,y.setAttribute("aria-hidden","true"),H.appendChild(F),H.appendChild(W),H.appendChild(P),w.appendChild(H),_&&function(e,t,n){_e(I,"click",(function(){we(t,"act")?(ke(t,"act"),n.setAttribute("aria-expanded","false"),e.setAttribute("aria-hidden","true")):(ye(t,"act"),n.setAttribute("aria-expanded","true"),e.setAttribute("aria-hidden","false"))}),!1)}(y,b,I)}else if(h){var U=le("div");U.className="b-tl",U.setAttribute("role","heading"),U.setAttribute("aria-level","3"),U.insertAdjacentHTML("beforeend",h),w.appendChild(U)}if(h&&b.appendChild(w),f&&y.appendChild(k),!v&&void 0!==m){for(var z=document.createDocumentFragment(),V=0;V<s.length;++V){var G=le("th"),X=s[V];if(G.setAttribute("scope","col"),X){var $=X&&be(X)[0];G.textContent=s[V][$],z.appendChild(G)}}var te=le("tr");te.appendChild(z);var ne=le("thead");ne.appendChild(te);var ie=le("table");ie.appendChild(ne);for(var ae=document.createDocumentFragment(),oe=0;oe<m.length;oe++){for(var se=le("tr"),re=0;re<s.length;++re)if(X=s[re]){$=be(X)[0];var de=le("td");de.insertAdjacentHTML("beforeend",m[oe][$]),de.setAttribute("data-column",X[$]),se.appendChild(de)}ae.appendChild(se)}var ue=le("tbody");ue.appendChild(ae),ie.appendChild(ue),y.appendChild(ie)}(p&&h||!p&&(h||f))&&(b.appendChild(y),S?S.appendChild(b):M.appendChild(b))}N||((N=le("div")).id="s-bns"),E||((E=le("button")).id="s-all-bn",E.className="c-bn",N.appendChild(E),_e(E,"click",(function(){j.hideSettings(),j.hide(),j.accept("all")}))),E.innerHTML=t.languages[e].settings_modal.accept_all_btn;var he=t.languages[e].settings_modal.reject_all_btn;if(he&&(R||((R=le("button")).id="s-rall-bn",R.className="c-bn",_e(R,"click",(function(){j.hideSettings(),j.hide(),j.accept([])})),x.className="bns-t",N.appendChild(R)),R.innerHTML=he),T||((T=le("button")).id="s-sv-bn",T.className="c-bn",N.appendChild(T),_e(T,"click",(function(){j.hideSettings(),j.hide(),j.accept()}))),T.innerHTML=t.languages[e].settings_modal.save_settings_btn,S)return x.replaceChild(S,M),void(M=S);o.appendChild(C),o.appendChild(c),x.appendChild(o),x.appendChild(M),x.appendChild(N),a.appendChild(x),i.appendChild(a),n.appendChild(i),D.appendChild(n),g.appendChild(D),g.appendChild(l)};j.updateLanguage=function(e,n){if("string"==typeof e){var i=ae(e,t.languages);return(i!==O.current_lang||!0===n)&&(O.current_lang=i,H&&oe(i),se(i),!0)}};var re=function(e){var t=r.length,n=-1;U=!1;var i=me("","all"),a=[O.cookie_domain,"."+O.cookie_domain];if("www."===O.cookie_domain.slice(0,4)){var o=O.cookie_domain.substr(4);a.push(o),a.push("."+o)}for(var c=0;c<t;c++){var l=r[c];if(Object.prototype.hasOwnProperty.call(l,"toggle")){var d=ce(B,l.toggle.value)>-1;if(!Q[++n]&&Object.prototype.hasOwnProperty.call(l,"cookie_table")&&(e||d)){var u=l.cookie_table,h=be(s[0])[0],f=u.length;"on_disable"===l.toggle.reload&&d&&(U=!0);for(var p=0;p<f;p++){var g=a,m=u[p],v=[],_=m[h],b=m.is_regex||!1,y=m.domain||null,k=m.path||!1;if(y&&(g=[y,"."+y]),b)for(var w=0;w<i.length;w++)i[w].match(_)&&v.push(i[w]);else{var D=ce(i,_);D>-1&&v.push(i[D])}v.length>0&&(ve(v,k,g),"on_clear"===l.toggle.reload&&(U=!0))}}}}},ce=function(e,t){return e.indexOf(t)},le=function(e){var t=document.createElement(e);return"button"===e&&t.setAttribute("type",e),t},de=function(e,t){return"browser"===O.auto_language?ae(ue(),e):"document"===O.auto_language?ae(document.documentElement.lang,e):"string"==typeof t?O.current_lang=ae(t,e):(O.current_lang,O.current_lang)},ue=function(){var e=navigator.language||navigator.browserLanguage;return e.length>2&&(e=e[0]+e[1]),e.toLowerCase()};j.allowedCategory=function(e){if(Y&&"opt-in"!==O.mode)t=K;else var t=JSON.parse(me(O.cookie_name,"one",!0)||"{}").categories||[];return ce(t,e)>-1},j.run=function(t){if(!document.getElementById("cc_div")){if(ne(t),G)return;L=JSON.parse(me(O.cookie_name,"one",!0)||"{}");var s=void 0!==(a=L.consent_uuid);if((n=L.consent_date)&&(n=new Date(n)),(i=L.last_consent_update)&&(i=new Date(i)),I=void 0!==L.data?L.data:null,q&&L.revision!==O.revision&&(J=!1),H=Y=!(s&&J&&n&&i&&a),function(){(p=le("div")).id="cc--main",p.style.position="fixed",p.style.zIndex="2147483647",p.innerHTML='\x3c!--[if lt IE 9 ]><div id="cc_div" class="cc_div ie"></div><![endif]--\x3e\x3c!--[if (gt IE 8)|!(IE)]>\x3c!--\x3e<div id="cc_div" class="cc_div"></div>\x3c!--<![endif]--\x3e',g=p.children[0];var t=O.current_lang;H&&oe(t),se(t),(e||document.body).appendChild(p)}(),function(){var e=["[href]","button","input","details",'[tabindex="0"]'];function t(t,n){var i=!1,a=!1;try{for(var o,s=t.querySelectorAll(e.join(':not([tabindex="-1"]), ')),r=s.length,c=0;c<r;)o=s[c].getAttribute("data-focus"),a||"1"!==o?"0"===o&&(i=s[c],a||"0"===s[c+1].getAttribute("data-focus")||(a=s[c+1])):a=s[c],c++}catch(n){return t.querySelectorAll(e.join(", "))}n[0]=s[0],n[1]=s[s.length-1],n[2]=i,n[3]=a}t(x,$),H&&t(m,X)}(),function(e,t){if("object"==typeof e){var n=e.consent_modal,i=e.settings_modal;H&&n&&a(m,["box","bar","cloud"],["top","middle","bottom"],["zoom","slide"],n.layout,n.position,n.transition),i&&a(D,["bar"],["left","right"],["zoom","slide"],i.layout,i.position,i.transition)}function a(e,t,n,i,a,o,s){if(o=o&&o.split(" ")||[],ce(t,a)>-1&&(ye(e,a),("bar"!==a||"middle"!==o[0])&&ce(n,o[0])>-1))for(var r=0;r<o.length;r++)ye(e,o[r]);ce(i,s)>-1&&ye(e,s)}}(t.gui_options),ie(),O.autorun&&H&&j.show(t.delay||0),setTimeout((function(){ye(p,"c--anim")}),30),setTimeout((function(){var e,t;e=!1,t=!1,_e(document,"keydown",(function(n){"Tab"===(n=n||window.event).key&&(o&&(n.shiftKey?document.activeElement===o[0]&&(o[1].focus(),n.preventDefault()):document.activeElement===o[1]&&(o[0].focus(),n.preventDefault()),t||P||(t=!0,!e&&n.preventDefault(),n.shiftKey?o[3]?o[2]?o[2].focus():o[0].focus():o[1].focus():o[3]?o[3].focus():o[0].focus())),!t&&(e=!0))})),document.contains&&_e(p,"click",(function(e){e=e||window.event,W?x.contains(e.target)?P=!0:(j.hideSettings(0),P=!1):F&&m.contains(e.target)&&(P=!0)}),!0)}),100),Y)"opt-out"===O.mode&&(O.mode,he(K));else{var r="boolean"==typeof L.rfc_cookie;(!r||r&&L.rfc_cookie!==O.use_rfc_cookie)&&(L.rfc_cookie=O.use_rfc_cookie,ge(O.cookie_name,JSON.stringify(L))),u=pe(fe()),he(),"function"==typeof c&&c(L)}}},j.showSettings=function(e){setTimeout((function(){ye(te,"show--settings"),D.setAttribute("aria-hidden","false"),W=!0,setTimeout((function(){F?f=document.activeElement:h=document.activeElement,0!==$.length&&($[3]?$[3].focus():$[0].focus(),o=$)}),200)}),e>0?e:0)};var he=function(e){if(O.page_scripts){var t=document.querySelectorAll("script["+O.script_selector+"]"),n=e||L.categories||[],i=function(e,t){if(t<e.length){var a=e[t],o=a.getAttribute(O.script_selector);if(ce(n,o)>-1){a.type="text/javascript",a.removeAttribute(O.script_selector);var s=a.getAttribute("data-src");s&&a.removeAttribute("data-src");var r=le("script");if(r.textContent=a.innerHTML,function(e,t){for(var n=t.attributes,i=n.length,a=0;a<i;a++){var o=n[a].nodeName;e.setAttribute(o,t[o]||t.getAttribute(o))}}(r,a),s?r.src=s:s=a.src,s&&(r.readyState?r.onreadystatechange=function(){"loaded"!==r.readyState&&"complete"!==r.readyState||(r.onreadystatechange=null,i(e,++t))}:r.onload=function(){r.onload=null,i(e,++t)}),a.parentNode.replaceChild(r,a),s)return}i(e,++t)}};i(t,0)}};j.set=function(e,t){return"data"===e&&function(e,t){var n=!1;if("update"===t){var i=typeof(I=j.get("data"))==typeof e;if(i&&"object"==typeof I)for(var a in!I&&(I={}),e)I[a]!==e[a]&&(I[a]=e[a],n=!0);else!i&&I||I===e||(I=e,n=!0)}else I=e,n=!0;return n&&(L.data=I,ge(O.cookie_name,JSON.stringify(L))),n}(t.value,t.mode)},j.get=function(e,t){return JSON.parse(me(t||O.cookie_name,"one",!0)||"{}")[e]},j.getConfig=function(e){return O[e]||t[e]};var fe=function(){return z=L.categories||[],V=Z.filter((function(e){return-1===ce(z,e)})),{accepted:z,rejected:V}},pe=function(e){var t="custom",n=ee.filter((function(e){return!0===e})).length;return e.accepted.length===Z.length?t="all":e.accepted.length===n&&(t="necessary"),t};j.getUserPreferences=function(){var e=fe();return{accept_type:pe(e),accepted_categories:e.accepted,rejected_categories:e.rejected}},j.loadScript=function(e,t,n){var i="function"==typeof t;if(document.querySelector('script[src="'+e+'"]'))i&&t();else{var a=le("script");if(n&&n.length>0)for(var o=0;o<n.length;++o)n[o]&&a.setAttribute(n[o].name,n[o].value);i&&(a.onload=t),a.src=e,document.head.appendChild(a)}},j.updateScripts=function(){he()},j.show=function(e,t){!0===t&&oe(O.current_lang),H&&setTimeout((function(){ye(te,"show--consent"),m.setAttribute("aria-hidden","false"),F=!0,setTimeout((function(){h=document.activeElement,o=X}),200)}),e>0?e:t?30:0)},j.hide=function(){H&&(ke(te,"show--consent"),m.setAttribute("aria-hidden","true"),F=!1,setTimeout((function(){h.focus(),o=null}),200))},j.hideSettings=function(){ke(te,"show--settings"),W=!1,D.setAttribute("aria-hidden","true"),setTimeout((function(){F?(f&&f.focus(),o=X):(h&&h.focus(),o=null),P=!1}),200)},j.accept=function(e,t){var o=e||void 0,s=t||[],r=[];if(o)if("object"==typeof o&&"number"==typeof o.length)for(var h=0;h<o.length;h++)-1!==ce(Z,o[h])&&r.push(o[h]);else"string"==typeof o&&("all"===o?r=Z.slice():-1!==ce(Z,o)&&r.push(o));else r=function(){for(var e=document.querySelectorAll(".c-tgl")||[],t=[],n=0;n<e.length;n++)e[n].checked&&t.push(e[n].value);return t}();if(s.length>=1)for(h=0;h<s.length;h++)r=r.filter((function(e){return e!==s[h]}));for(h=0;h<Z.length;h++)!0===ee[h]&&-1===ce(r,Z[h])&&r.push(Z[h]);!function(e){B=[];var t=document.querySelectorAll(".c-tgl")||[];if(t.length>0)for(var o=0;o<t.length;o++)-1!==ce(e,Z[o])?(t[o].checked=!0,Q[o]||(B.push(Z[o]),Q[o]=!0)):(t[o].checked=!1,Q[o]&&(B.push(Z[o]),Q[o]=!1));!Y&&O.autoclear_cookies&&B.length>0&&re(),n||(n=new Date),a||(a=([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(function(e){try{return(e^(window.crypto||window.msCrypto).getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16)}catch(e){return""}}))),L={categories:e,level:e,revision:O.revision,data:I,rfc_cookie:O.use_rfc_cookie,consent_date:n.toISOString(),consent_uuid:a},(Y||B.length>0)&&(J=!0,i=i?new Date:n,L.last_consent_update=i.toISOString(),u=pe(fe()),ge(O.cookie_name,JSON.stringify(L)),he()),Y&&(O.autoclear_cookies&&re(!0),"function"==typeof d&&d(j.getUserPreferences(),L),"function"==typeof c&&c(L),Y=!1,"opt-in"===O.mode)||("function"==typeof l&&B.length>0&&l(L,B),U&&window.location.reload())}(r)},j.eraseCookies=function(e,t,n){var i=[],a=n?[n,"."+n]:[O.cookie_domain,"."+O.cookie_domain];if("object"==typeof e&&e.length>0)for(var o=0;o<e.length;o++)this.validCookie(e[o])&&i.push(e[o]);else this.validCookie(e)&&i.push(e);ve(i,t,a)};var ge=function(e,t){var n=O.cookie_expiration;"number"==typeof O.cookie_necessary_only_expiration&&"necessary"===u&&(n=O.cookie_necessary_only_expiration),t=O.use_rfc_cookie?encodeURIComponent(t):t;var i=new Date;i.setTime(i.getTime()+24*n*60*60*1e3);var a=e+"="+(t||"")+"; expires="+i.toUTCString()+"; Path="+O.cookie_path+";";a+=" SameSite="+O.cookie_same_site+";",window.location.hostname.indexOf(".")>-1&&(a+=" Domain="+O.cookie_domain+";"),"https:"===window.location.protocol&&(a+=" Secure;"),document.cookie=a},me=function(e,t,n){var i;if("one"===t){if((i=(i=document.cookie.match("(^|;)\\s*"+e+"\\s*=\\s*([^;]+)"))?n?i.pop():e:"")&&e===O.cookie_name){try{i=JSON.parse(i)}catch(e){try{i=JSON.parse(decodeURIComponent(i))}catch(e){i={}}}i=JSON.stringify(i)}}else if("all"===t){var a=document.cookie.split(/;\s*/);i=[];for(var o=0;o<a.length;o++)i.push(a[o].split("=")[0])}return i},ve=function(e,t,n){for(var i=t||"/",a=0;a<e.length;a++){for(var o=0;o<n.length;o++)document.cookie=e[a]+"=; path="+i+(0==n[o].indexOf(".")?"; domain="+n[o]:"")+"; Expires=Thu, 01 Jan 1970 00:00:01 GMT;";e[a]}};j.validCookie=function(e){return""!==me(e,"one",!0)};var _e=function(e,t,n,i){e.addEventListener(t,n,!0===i&&{passive:!0})},be=function(e){if("object"==typeof e)return Object.keys(e)},ye=function(e,t){e.classList.add(t)},ke=function(e,t){e.classList.remove(t)},we=function(e,t){return e.classList.contains(t)};return j})}(),function(e,t){"use strict";var n;if("object"==typeof exports){try{n=require("moment")}catch(e){}module.exports=t(n)}else"function"==typeof define&&define.amd?define((function(e){try{n=e("moment")}catch(e){}return t(n)})):e.Pikaday=t(e.moment)}(this,(function(e){"use strict";var t="function"==typeof e,n=!!window.addEventListener,i=window.document,a=window.setTimeout,o=function(e,t,i,a){n?e.addEventListener(t,i,!!a):e.attachEvent("on"+t,i)},s=function(e,t,i,a){n?e.removeEventListener(t,i,!!a):e.detachEvent("on"+t,i)},r=function(e,t){return-1!==(" "+e.className+" ").indexOf(" "+t+" ")},c=function(e){return/Array/.test(Object.prototype.toString.call(e))},l=function(e){return/Date/.test(Object.prototype.toString.call(e))&&!isNaN(e.getTime())},d=function(e){var t=e.getDay();return 0===t||6===t},u=function(e){return e%4==0&&e%100!=0||e%400==0},h=function(e,t){return[31,u(e)?29:28,31,30,31,30,31,31,30,31,30,31][t]},f=function(e){l(e)&&e.setHours(0,0,0,0)},p=function(e,t){return e.getTime()===t.getTime()},g=function(e,t,n){var i,a;for(i in t)(a=void 0!==e[i])&&"object"==typeof t[i]&&null!==t[i]&&void 0===t[i].nodeName?l(t[i])?n&&(e[i]=new Date(t[i].getTime())):c(t[i])?n&&(e[i]=t[i].slice(0)):e[i]=g({},t[i],n):!n&&a||(e[i]=t[i]);return e},m=function(e,t,n){var a;i.createEvent?((a=i.createEvent("HTMLEvents")).initEvent(t,!0,!1),a=g(a,n),e.dispatchEvent(a)):i.createEventObject&&(a=i.createEventObject(),a=g(a,n),e.fireEvent("on"+t,a))},v=function(e){return e.month<0&&(e.year-=Math.ceil(Math.abs(e.month)/12),e.month+=12),e.month>11&&(e.year+=Math.floor(Math.abs(e.month)/12),e.month-=12),e},_={field:null,bound:void 0,position:"bottom left",reposition:!0,format:"YYYY-MM-DD",toString:null,parse:null,defaultDate:null,setDefaultDate:!1,firstDay:0,formatStrict:!1,minDate:null,maxDate:null,yearRange:10,showWeekNumber:!1,pickWholeWeek:!1,minYear:0,maxYear:9999,minMonth:void 0,maxMonth:void 0,startRange:null,endRange:null,isRTL:!1,yearSuffix:"",showMonthAfterYear:!1,showDaysInNextAndPreviousMonths:!1,enableSelectionDaysInNextAndPreviousMonths:!1,numberOfMonths:1,mainCalendar:"left",container:void 0,blurFieldOnSelect:!0,i18n:{previousMonth:"Previous Month",nextMonth:"Next Month",months:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},theme:null,events:[],onSelect:null,onOpen:null,onClose:null,onDraw:null},b=function(e,t,n){for(t+=e.firstDay;t>=7;)t-=7;return n?e.i18n.weekdaysShort[t]:e.i18n.weekdays[t]},y=function(e){var t=[],n="false";if(e.isEmpty){if(!e.showDaysInNextAndPreviousMonths)return'<td class="is-empty"></td>';t.push("is-outside-current-month"),e.enableSelectionDaysInNextAndPreviousMonths||t.push("is-selection-disabled")}return e.isDisabled&&t.push("is-disabled"),e.isToday&&t.push("is-today"),e.isSelected&&(t.push("is-selected"),n="true"),e.hasEvent&&t.push("has-event"),e.isInRange&&t.push("is-inrange"),e.isStartRange&&t.push("is-startrange"),e.isEndRange&&t.push("is-endrange"),'<td data-day="'+e.day+'" class="'+t.join(" ")+'" aria-selected="'+n+'"><button class="pika-button pika-day" type="button" data-pika-year="'+e.year+'" data-pika-month="'+e.month+'" data-pika-day="'+e.day+'">'+e.day+"</button></td>"},k=function(e,t,n){var i=new Date(n,0,1);return'<td class="pika-week">'+Math.ceil(((new Date(n,t,e)-i)/864e5+i.getDay()+1)/7)+"</td>"},w=function(e,t,n,i){return'<tr class="pika-row'+(n?" pick-whole-week":"")+(i?" is-selected":"")+'">'+(t?e.reverse():e).join("")+"</tr>"},D=function(e,t,n,i,a,o){var s,r,l,d,u,h=e._o,f=n===h.minYear,p=n===h.maxYear,g='<div id="'+o+'" class="pika-title" role="heading" aria-live="assertive">',m=!0,v=!0;for(l=[],s=0;s<12;s++)l.push('<option value="'+(n===a?s-t:12+s-t)+'"'+(s===i?' selected="selected"':"")+(f&&s<h.minMonth||p&&s>h.maxMonth?'disabled="disabled"':"")+">"+h.i18n.months[s]+"</option>");for(d='<div class="pika-label">'+h.i18n.months[i]+'<select class="pika-select pika-select-month" tabindex="-1">'+l.join("")+"</select></div>",c(h.yearRange)?(s=h.yearRange[0],r=h.yearRange[1]+1):(s=n-h.yearRange,r=1+n+h.yearRange),l=[];s<r&&s<=h.maxYear;s++)s>=h.minYear&&l.push('<option value="'+s+'"'+(s===n?' selected="selected"':"")+">"+s+"</option>");return u='<div class="pika-label">'+n+h.yearSuffix+'<select class="pika-select pika-select-year" tabindex="-1">'+l.join("")+"</select></div>",h.showMonthAfterYear?g+=u+d:g+=d+u,f&&(0===i||h.minMonth>=i)&&(m=!1),p&&(11===i||h.maxMonth<=i)&&(v=!1),0===t&&(g+='<button class="pika-prev'+(m?"":" is-disabled")+'" type="button">'+h.i18n.previousMonth+"</button>"),t===e._o.numberOfMonths-1&&(g+='<button class="pika-next'+(v?"":" is-disabled")+'" type="button">'+h.i18n.nextMonth+"</button>"),g+"</div>"},x=function(e,t,n){return'<table cellpadding="0" cellspacing="0" class="pika-table" role="grid" aria-labelledby="'+n+'">'+function(e){var t,n=[];for(e.showWeekNumber&&n.push("<th></th>"),t=0;t<7;t++)n.push('<th scope="col"><abbr title="'+b(e,t)+'">'+b(e,t,!0)+"</abbr></th>");return"<thead><tr>"+(e.isRTL?n.reverse():n).join("")+"</tr></thead>"}(e)+function(e){return"<tbody>"+e.join("")+"</tbody>"}(t)+"</table>"},C=function(s){var c=this,d=c.config(s);c._onMouseDown=function(e){if(c._v){var t=(e=e||window.event).target||e.srcElement;if(t)if(r(t,"is-disabled")||(!r(t,"pika-button")||r(t,"is-empty")||r(t.parentNode,"is-disabled")?r(t,"pika-prev")?c.prevMonth():r(t,"pika-next")&&c.nextMonth():(c.setDate(new Date(t.getAttribute("data-pika-year"),t.getAttribute("data-pika-month"),t.getAttribute("data-pika-day"))),d.bound&&a((function(){c.hide(),d.blurFieldOnSelect&&d.field&&d.field.blur()}),100))),r(t,"pika-select"))c._c=!0;else{if(!e.preventDefault)return e.returnValue=!1,!1;e.preventDefault()}}},c._onChange=function(e){var t=(e=e||window.event).target||e.srcElement;t&&(r(t,"pika-select-month")?c.gotoMonth(t.value):r(t,"pika-select-year")&&c.gotoYear(t.value))},c._onKeyChange=function(e){if(e=e||window.event,c.isVisible())switch(e.keyCode){case 13:case 27:d.field&&d.field.blur();break;case 37:e.preventDefault(),c.adjustDate("subtract",1);break;case 38:c.adjustDate("subtract",7);break;case 39:c.adjustDate("add",1);break;case 40:c.adjustDate("add",7)}},c._onInputChange=function(n){var i;n.firedBy!==c&&(i=d.parse?d.parse(d.field.value,d.format):t?(i=e(d.field.value,d.format,d.formatStrict))&&i.isValid()?i.toDate():null:new Date(Date.parse(d.field.value)),l(i)&&c.setDate(i),c._v||c.show())},c._onInputFocus=function(){c.show()},c._onInputClick=function(){c.show()},c._onInputBlur=function(){var e=i.activeElement;do{if(r(e,"pika-single"))return}while(e=e.parentNode);c._c||(c._b=a((function(){c.hide()}),50)),c._c=!1},c._onClick=function(e){var t=(e=e||window.event).target||e.srcElement,i=t;if(t){!n&&r(t,"pika-select")&&(t.onchange||(t.setAttribute("onchange","return;"),o(t,"change",c._onChange)));do{if(r(i,"pika-single")||i===d.trigger)return}while(i=i.parentNode);c._v&&t!==d.trigger&&i!==d.trigger&&c.hide()}},c.el=i.createElement("div"),c.el.className="pika-single"+(d.isRTL?" is-rtl":"")+(d.theme?" "+d.theme:""),o(c.el,"mousedown",c._onMouseDown,!0),o(c.el,"touchend",c._onMouseDown,!0),o(c.el,"change",c._onChange),o(i,"keydown",c._onKeyChange),d.field&&(d.container?d.container.appendChild(c.el):d.bound?i.body.appendChild(c.el):d.field.parentNode.insertBefore(c.el,d.field.nextSibling),o(d.field,"change",c._onInputChange),d.defaultDate||(t&&d.field.value?d.defaultDate=e(d.field.value,d.format).toDate():d.defaultDate=new Date(Date.parse(d.field.value)),d.setDefaultDate=!0));var u=d.defaultDate;l(u)?d.setDefaultDate?c.setDate(u,!0):c.gotoDate(u):c.gotoDate(new Date),d.bound?(this.hide(),c.el.className+=" is-bound",o(d.trigger,"click",c._onInputClick),o(d.trigger,"focus",c._onInputFocus),o(d.trigger,"blur",c._onInputBlur)):this.show()};return C.prototype={config:function(e){this._o||(this._o=g({},_,!0));var t=g(this._o,e,!0);t.isRTL=!!t.isRTL,t.field=t.field&&t.field.nodeName?t.field:null,t.theme="string"==typeof t.theme&&t.theme?t.theme:null,t.bound=!!(void 0!==t.bound?t.field&&t.bound:t.field),t.trigger=t.trigger&&t.trigger.nodeName?t.trigger:t.field,t.disableWeekends=!!t.disableWeekends,t.disableDayFn="function"==typeof t.disableDayFn?t.disableDayFn:null;var n=parseInt(t.numberOfMonths,10)||1;if(t.numberOfMonths=n>4?4:n,l(t.minDate)||(t.minDate=!1),l(t.maxDate)||(t.maxDate=!1),t.minDate&&t.maxDate&&t.maxDate<t.minDate&&(t.maxDate=t.minDate=!1),t.minDate&&this.setMinDate(t.minDate),t.maxDate&&this.setMaxDate(t.maxDate),c(t.yearRange)){var i=(new Date).getFullYear()-10;t.yearRange[0]=parseInt(t.yearRange[0],10)||i,t.yearRange[1]=parseInt(t.yearRange[1],10)||i}else t.yearRange=Math.abs(parseInt(t.yearRange,10))||_.yearRange,t.yearRange>100&&(t.yearRange=100);return t},toString:function(n){return n=n||this._o.format,l(this._d)?this._o.toString?this._o.toString(this._d,n):t?e(this._d).format(n):this._d.toDateString():""},getMoment:function(){return t?e(this._d):null},setMoment:function(n,i){t&&e.isMoment(n)&&this.setDate(n.toDate(),i)},getDate:function(){return l(this._d)?new Date(this._d.getTime()):null},setDate:function(e,t){if(!e)return this._d=null,this._o.field&&(this._o.field.value="",m(this._o.field,"change",{firedBy:this})),this.draw();if("string"==typeof e&&(e=new Date(Date.parse(e))),l(e)){var n=this._o.minDate,i=this._o.maxDate;l(n)&&e<n?e=n:l(i)&&e>i&&(e=i),this._d=new Date(e.getTime()),f(this._d),this.gotoDate(this._d),this._o.field&&(this._o.field.value=this.toString(),m(this._o.field,"change",{firedBy:this})),t||"function"!=typeof this._o.onSelect||this._o.onSelect.call(this,this.getDate())}},gotoDate:function(e){var t=!0;if(l(e)){if(this.calendars){var n=new Date(this.calendars[0].year,this.calendars[0].month,1),i=new Date(this.calendars[this.calendars.length-1].year,this.calendars[this.calendars.length-1].month,1),a=e.getTime();i.setMonth(i.getMonth()+1),i.setDate(i.getDate()-1),t=a<n.getTime()||i.getTime()<a}t&&(this.calendars=[{month:e.getMonth(),year:e.getFullYear()}],"right"===this._o.mainCalendar&&(this.calendars[0].month+=1-this._o.numberOfMonths)),this.adjustCalendars()}},adjustDate:function(e,t){var n,i=this.getDate()||new Date,a=24*parseInt(t)*60*60*1e3;"add"===e?n=new Date(i.valueOf()+a):"subtract"===e&&(n=new Date(i.valueOf()-a)),this.setDate(n)},adjustCalendars:function(){this.calendars[0]=v(this.calendars[0]);for(var e=1;e<this._o.numberOfMonths;e++)this.calendars[e]=v({month:this.calendars[0].month+e,year:this.calendars[0].year});this.draw()},gotoToday:function(){this.gotoDate(new Date)},gotoMonth:function(e){isNaN(e)||(this.calendars[0].month=parseInt(e,10),this.adjustCalendars())},nextMonth:function(){this.calendars[0].month++,this.adjustCalendars()},prevMonth:function(){this.calendars[0].month--,this.adjustCalendars()},gotoYear:function(e){isNaN(e)||(this.calendars[0].year=parseInt(e,10),this.adjustCalendars())},setMinDate:function(e){e instanceof Date?(f(e),this._o.minDate=e,this._o.minYear=e.getFullYear(),this._o.minMonth=e.getMonth()):(this._o.minDate=_.minDate,this._o.minYear=_.minYear,this._o.minMonth=_.minMonth,this._o.startRange=_.startRange),this.draw()},setMaxDate:function(e){e instanceof Date?(f(e),this._o.maxDate=e,this._o.maxYear=e.getFullYear(),this._o.maxMonth=e.getMonth()):(this._o.maxDate=_.maxDate,this._o.maxYear=_.maxYear,this._o.maxMonth=_.maxMonth,this._o.endRange=_.endRange),this.draw()},setStartRange:function(e){this._o.startRange=e},setEndRange:function(e){this._o.endRange=e},draw:function(e){if(this._v||e){var t,n=this._o,i=n.minYear,o=n.maxYear,s=n.minMonth,r=n.maxMonth,c="";this._y<=i&&(this._y=i,!isNaN(s)&&this._m<s&&(this._m=s)),this._y>=o&&(this._y=o,!isNaN(r)&&this._m>r&&(this._m=r)),t="pika-title-"+Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,2);for(var l=0;l<n.numberOfMonths;l++)c+='<div class="pika-lendar">'+D(this,l,this.calendars[l].year,this.calendars[l].month,this.calendars[0].year,t)+this.render(this.calendars[l].year,this.calendars[l].month,t)+"</div>";this.el.innerHTML=c,n.bound&&"hidden"!==n.field.type&&a((function(){n.trigger.focus()}),1),"function"==typeof this._o.onDraw&&this._o.onDraw(this),n.bound&&n.field.setAttribute("aria-label","Use the arrow keys to pick a date")}},adjustPosition:function(){var e,t,n,a,o,s,r,c,l,d;if(!this._o.container){if(this.el.style.position="absolute",t=e=this._o.trigger,n=this.el.offsetWidth,a=this.el.offsetHeight,o=window.innerWidth||i.documentElement.clientWidth,s=window.innerHeight||i.documentElement.clientHeight,r=window.pageYOffset||i.body.scrollTop||i.documentElement.scrollTop,"function"==typeof e.getBoundingClientRect)c=(d=e.getBoundingClientRect()).left+window.pageXOffset,l=d.bottom+window.pageYOffset;else for(c=t.offsetLeft,l=t.offsetTop+t.offsetHeight;t=t.offsetParent;)c+=t.offsetLeft,l+=t.offsetTop;(this._o.reposition&&c+n>o||this._o.position.indexOf("right")>-1&&c-n+e.offsetWidth>0)&&(c=c-n+e.offsetWidth),(this._o.reposition&&l+a>s+r||this._o.position.indexOf("top")>-1&&l-a-e.offsetHeight>0)&&(l=l-a-e.offsetHeight),this.el.style.left=c+"px",this.el.style.top=l+"px"}},render:function(e,t,n){var i=this._o,a=new Date,o=h(e,t),s=new Date(e,t,1).getDay(),r=[],c=[];f(a),i.firstDay>0&&(s-=i.firstDay)<0&&(s+=7);for(var u=0===t?11:t-1,g=11===t?0:t+1,m=0===t?e-1:e,v=11===t?e+1:e,_=h(m,u),b=o+s,D=b;D>7;)D-=7;b+=7-D;for(var C=!1,A=0,M=0;A<b;A++){var S=new Date(e,t,A-s+1),N=!!l(this._d)&&p(S,this._d),T=p(S,a),E=-1!==i.events.indexOf(S.toDateString()),R=A<s||A>=o+s,O=A-s+1,j=t,L=e,I=i.startRange&&p(i.startRange,S),Y=i.endRange&&p(i.endRange,S),H=i.startRange&&i.endRange&&i.startRange<S&&S<i.endRange;R&&(A<s?(O=_+O,j=u,L=m):(O-=o,j=g,L=v));var F={day:O,month:j,year:L,hasEvent:E,isSelected:N,isToday:T,isDisabled:i.minDate&&S<i.minDate||i.maxDate&&S>i.maxDate||i.disableWeekends&&d(S)||i.disableDayFn&&i.disableDayFn(S),isEmpty:R,isStartRange:I,isEndRange:Y,isInRange:H,showDaysInNextAndPreviousMonths:i.showDaysInNextAndPreviousMonths,enableSelectionDaysInNextAndPreviousMonths:i.enableSelectionDaysInNextAndPreviousMonths};i.pickWholeWeek&&N&&(C=!0),c.push(y(F)),7==++M&&(i.showWeekNumber&&c.unshift(k(A-s,t,e)),r.push(w(c,i.isRTL,i.pickWholeWeek,C)),c=[],M=0,C=!1)}return x(i,r,n)},isVisible:function(){return this._v},show:function(){this.isVisible()||(this._v=!0,this.draw(),function(e,t){e.className=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}((" "+e.className+" ").replace(" "+t+" "," "))}(this.el,"is-hidden"),this._o.bound&&(o(i,"click",this._onClick),this.adjustPosition()),"function"==typeof this._o.onOpen&&this._o.onOpen.call(this))},hide:function(){var e=this._v;!1!==e&&(this._o.bound&&s(i,"click",this._onClick),this.el.style.position="static",this.el.style.left="auto",this.el.style.top="auto",function(e,t){r(e,t)||(e.className=""===e.className?t:e.className+" "+t)}(this.el,"is-hidden"),this._v=!1,void 0!==e&&"function"==typeof this._o.onClose&&this._o.onClose.call(this))},destroy:function(){this.hide(),s(this.el,"mousedown",this._onMouseDown,!0),s(this.el,"touchend",this._onMouseDown,!0),s(this.el,"change",this._onChange),s(i,"keydown",this._onKeyChange),this._o.field&&(s(this._o.field,"change",this._onInputChange),this._o.bound&&(s(this._o.trigger,"click",this._onInputClick),s(this._o.trigger,"focus",this._onInputFocus),s(this._o.trigger,"blur",this._onInputBlur))),this.el.parentNode&&this.el.parentNode.removeChild(this.el)}},C}));var TxtRotate=function(e,t,n){this.toRotate=t,this.el=e,this.loopNum=0,this.period=parseInt(n,10)||2e3,this.txt="",this.tick(),this.isDeleting=!1};TxtRotate.prototype.tick=function(){var e=this.loopNum%this.toRotate.length,t=this.toRotate[e];this.isDeleting?this.txt=t.substring(0,this.txt.length-1):this.txt=t.substring(0,this.txt.length+1),this.el.innerHTML='<span class="wrap">'+this.txt+"</span>";var n=this,i=300-100*Math.random();this.isDeleting&&(i/=2),this.isDeleting||this.txt!==t?this.isDeleting&&""===this.txt&&(this.isDeleting=!1,this.loopNum++,i=500):(i=this.period,this.isDeleting=!0),setTimeout((function(){n.tick()}),i)},window.onload=function(){for(var e=document.getElementsByClassName("txt-rotate"),t=0;t<e.length;t++){var n=e[t].getAttribute("data-rotate"),i=e[t].getAttribute("data-period");n&&new TxtRotate(e[t],JSON.parse(n),i)}var a=document.createElement("style");a.type="text/css",a.innerHTML=".txt-rotate > .wrap { border-right: 0.08em solid #666 }",document.body.appendChild(a)},document.querySelectorAll(".datepicker").forEach((function(e){new Pikaday({field:e})})); |