$(function() { $("#wp_47294").load("/data/algotel.html #algotel"); $("#wp_47311").load("/data/cores.html #cores"); $("#wp_47638").load("/data/contact.html #contact"); $("#wp_48655").load("/data/hero.html #hero"); $("#wp_48781").load("/data/sponsors.html"); $("#wp_45854").load("/data/presentation.html #presentation"); $("#wp_48909").load("/data/keynotes.html #keynotes"); if (template_content.getElementsByClassName('titre')[0].textContent == 'Lieux') { $("#template_content").load("/data/lieux.html"); } if (template_content.getElementsByClassName('titre')[0].textContent == 'Inscription') { article = document.createElement('article'); article.id = 'inscriptions' template_content.insertBefore(article, registrationForm); $("#inscriptions").load("/data/inscriptions.html #inscriptions > *"); template_content.getElementsByClassName('titre')[0].remove() } if (template_content.getElementsByClassName('titre')[0].textContent == 'Programme') { $("#template_content").load("/data/program.html #program"); } nav.insertBefore(mainmenu.children[0], icons); connection_div = document.createElement('div'); connection_div.id = 'connection'; connection_div.appendChild(document.getElementsByClassName('filariane_quicklogin')[0]); connection_div.appendChild(mainmenu.children[0]); nav.insertBefore(connection_div, icons) for (const opt of regmeta_5.children) { if (['3', '4'].includes(opt.getAttribute('value'))) { opt.setAttribute("disabled", "disabled"); } } });