'}); querySelectorAll_do('.content_layer .title',{innerHTML: dataobj.ref_obj.ctt_label }); querySelectorAll_do('.iframe_container',{innerHTML:'
Votre jeu est en cours de chargement
'}); querySelectorAll_do('.content_layer',{style:{display:'flex'}}); } if ((dataobj.from == 'launch_ref') && (dataobj.step == 'load_iframe')) { } if ((dataobj.from == 'iframe') && (dataobj.step == 'onload')) { remove_waiting(); } } function remove_waiting() { var waiting = document.querySelector(".waiting"); if (waiting) { waiting.style.opacity=0; setTimeout(function() { var waiting = document.querySelector(".waiting"); if (waiting) { waiting.parentNode.removeChild(waiting); } }, 500); } } addEvent(document,"DOMContentLoaded",function() { querySelectorAll_do('.content_layer .close',{addEvent:{'click':function() { querySelectorAll_do('.content_layer',{style:{display:'none'}}); querySelectorAll_do('.iframe_container',{innerHTML:''}); }}}); querySelectorAll_do('[ctt_id]',{addEvent:{'click':function() { var ctt_id = this.getAttribute('ctt_id'); launch_ref(ctt_id); window.scrollTo({ top: 0, behavior: 'smooth' }); }}}); });