1function user_profil_page(){var user=get_user();location=user.profil} 2function tktConnect(){var user=get_user() 3if(!user)return;fetch('https://giff-engine.ticketack.com/api/third/tickets/eventival/'+user.badge_id,{method:'GET',headers:{'Accept':'application/json','X-API-KEY':TKTApi.apiKey}}).then(response=>response.json()).then(data=>{if(data?.length>0){const bus=window.TKT.bus;const state=window.TKT.state;const ticket=data[0];state.push('tickets',ticket,'_id');bus.publish({channel:"connection",topic:"update",data:{ticket}})}}).catch(error=>{console.error('Error:',error)})} 4function access_dbl_login(){var evLoginBtns=document.getElementsByClassName("ev_login-btn");var evLogoutBtns=document.getElementsByClassName("ev_logout-btn");var evWaitingBtns=document.getElementsByClassName("ev_waiting-btn");var wp_connected=document.body.classList.contains("logged-in");var open_date=evWaitingBtns[0].dataset.open_date;open_date=new Date(open_date);if(wp_connected){if(!is_user_logged()){for(let evLoginBtn of evLoginBtns)evLoginBtn.classList.remove("d-none")}else{for(let evLogoutBtn of evLogoutBtns)evLogoutBtn.classList.remove("d-none")}}else{if(open_date){if(get_now()<open_date){for(let evWaitingBtn of evWaitingBtns)evWaitingBtn.classList.remove("d-none")}else if(!is_user_logged()){for(let evLoginBtn of evLoginBtns)evLoginBtn.classList.remove("d-none")}else{for(let evLogoutBtn of evLogoutBtns)evLogoutBtn.classList.remove("d-none")}}else if(is_user_logged()){for(let evLogoutBtn of evLogoutBtns)evLogoutBtn.classList.remove("d-none")}}} 5function update_login_header_btn(){if(!is_user_logged()) 6return;var login_header_btn=document.getElementById('login-header-btn');var login_header_text=document.getElementById('login-header-text');var user=get_user();login_header_btn.classList.add('active');login_header_btn.dataset.bsTarget="";login_header_btn.dataset.bsToggle="false";login_header_btn.addEventListener('click',function(){let profil_link=user.profil;if(document.querySelector('html').lang=='en-US') 7profil_link=user.profil.replace(window.location.origin,window.location.origin+'/en/');window.location=profil_link}) 8login_header_text.innerHTML=user.user_name} 9function display_popup_on_error(){var queryString=window.location.search 10var urlParams=new URLSearchParams(queryString) 11var urlParamsResult=urlParams.get('dbl_error') 12if(urlParamsResult){var loginModal=new bootstrap.Modal('#login-modal') 13var errorInfoModal=document.getElementById(urlParamsResult) 14if(errorInfoModal)errorInfoModal.classList.remove('d-none') 15loginModal.show()}}
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.