footer.blade.php 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <footer class="fixed w-full h-[8vh] py-4 bottom-0 bg-jlg-dark-blue border-t border-jlg-light-white flex justify-between">
  2. <!-- @php(dynamic_sidebar('sidebar-footer'))-->
  3. <div class="text-sm">
  4. <button class="px-4 py-2 rounded-md ml-6 underline underline-offset-8 hover:underline-offset-4 active:underline-offset-8" onclick="displayAboutPopup()" id="about_button">À PROPOS</button>
  5. <button class="px-4 py-2 rounded-md ml-6 underline underline-offset-8 hover:underline-offset-4 active:underline-offset-8"><a href="mailto:<?php echo get_option('admin_email') ?>">CONTACT</a></button>
  6. </div>
  7. <div class="mr-6 flex items-center">
  8. <a href="https://www.thalim.cnrs.fr/?lang=fr" target="_blank" class="w-12 mr-4">
  9. <img class="w-full h-auto" alt="thalim" src="<?= get_template_directory_uri(); ?>/resources/assets/images/logos/thalim.png">
  10. </a>
  11. <a href="http://www.univ-paris3.fr/" target="_blank" class="w-24 mr-4">
  12. <img class="w-full h-auto" alt="sorbonne" src="<?= get_template_directory_uri(); ?>/resources/assets/images/logos/sorbonne.png">
  13. </a>
  14. <a href="https://www.cnrs.fr/fr" target="_blank" class="w-12 mr-4">
  15. <img class="w-full h-auto" alt="cnrs" src="<?= get_template_directory_uri(); ?>/resources/assets/images/logos/cnrs.png">
  16. </a>
  17. <a href="https://www.huma-num.fr/" target="_blank" class="w-12">
  18. <img class="w-full h-auto" alt="humanum" src="<?= get_template_directory_uri(); ?>/resources/assets/images/logos/huma-num.png">
  19. </a>
  20. </div>
  21. </footer>
  22. <div id="loading" style="
  23. width: 100vw;
  24. height: 100vh;
  25. background-color: #010d19;
  26. z-index: 9999;
  27. position: fixed;
  28. top: 0;
  29. left: 0;
  30. display: flex;
  31. justify-content: center;
  32. align-items: center;
  33. font-family: sans-serif;
  34. color: white;
  35. opacity: 1;
  36. transition: opacity 0.2s ease-out;
  37. ">
  38. <p>
  39. Chargement
  40. <span class="dot-one">.</span>
  41. <span class="dot-two">.</span>
  42. <span class="dot-three">.</span>
  43. </p>
  44. </div>
  45. <script>
  46. // Define the event listener function
  47. function closeAboutPopupHandler(event) {
  48. event.preventDefault();
  49. console.log(event.target);
  50. if (
  51. event.target != document.querySelector('#about_modale') &&
  52. event.target != document.querySelector('#about_button') &&
  53. event.target != document.querySelector('#about_title') &&
  54. event.target != document.querySelector('#about_content') &&
  55. event.target.parentElement != document.querySelector('#about_content') &&
  56. (event.target.tagName != "EM" && event.target.parentElement.parentElement != document.querySelector('#about_content'))
  57. ) {
  58. closeAboutPopup();
  59. }
  60. }
  61. // Attach the event listener in the displayAboutPopup function
  62. function displayAboutPopup() {
  63. document.getElementById('about_popup').style.display = 'flex';
  64. setTimeout(() => {
  65. document.getElementById('about_popup').style.opacity = '1';
  66. window.addEventListener('click', closeAboutPopupHandler);
  67. }, 1);
  68. document.body.style.overflow = 'hidden';
  69. }
  70. // Remove the event listener in the closeAboutPopup function
  71. function closeAboutPopup() {
  72. document.getElementById('about_popup').style.opacity = '0';
  73. setTimeout(() => {
  74. document.getElementById('about_popup').style.display = 'none';
  75. }, 300);
  76. document.body.style.overflowY = 'scroll';
  77. // Remove the event listener
  78. window.removeEventListener('click', closeAboutPopupHandler);
  79. }
  80. </script>