|
@@ -1,159 +1,16 @@
|
|
|
console.log('salut');
|
|
|
-
|
|
|
|
|
|
-var burger = document.getElementById("block-burger");
|
|
|
-var burgertitle = document.getElementById("block-burger-menu");
|
|
|
+
|
|
|
|
|
|
+var table1cell1 = document.querySelector('#tablefield-paragraph-34-field_tablefield-0.tablefield tbody tr td.row_1.col_1');
|
|
|
+var table1cell2 = document.querySelector('#tablefield-paragraph-34-field_tablefield-0.tablefield tbody tr td.row_2.col_1');
|
|
|
+var table1cell3 = document.querySelector('#tablefield-paragraph-34-field_tablefield-0.tablefield tbody tr td.row_3.col_1');
|
|
|
+var table1cell4 = document.querySelector('#tablefield-paragraph-34-field_tablefield-0.tablefield tbody tr td.row_4.col_1');
|
|
|
|
|
|
-burgertitle.addEventListener("click", toggleMenu);
|
|
|
+table1cell1.setAttribute('rowspan', '4');
|
|
|
+table1cell2.style.display ="none";
|
|
|
+table1cell3.style.display ="none";
|
|
|
+table1cell4.style.display ="none";
|
|
|
|
|
|
-function toggleMenu(event) {
|
|
|
-
|
|
|
- burger.classList.toggle('opened');
|
|
|
-}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-var answers = document.getElementsByClassName("field--name-field-reponse");
|
|
|
-var fichiers = document.getElementsByClassName("field--name-field-fichiers");
|
|
|
-var questions = document.getElementsByClassName("field--name-field-question");
|
|
|
-
|
|
|
-for (let i = 0; i < questions.length; i++) {
|
|
|
- const question = questions[i]
|
|
|
- question.addEventListener("click", toggleFaq);
|
|
|
-}
|
|
|
-function toggleFaq(event) {
|
|
|
-
|
|
|
-
|
|
|
- for (let i = 0; i < answers.length; i++) {
|
|
|
- answers[i].classList.remove('opened');
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- let answer = this.parentNode.querySelector('.field--name-field-reponse');
|
|
|
-
|
|
|
- answer.classList.add('opened');
|
|
|
-
|
|
|
-}
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-var fichiers = document.getElementsByClassName("field--name-field-fichiers");
|
|
|
-var questions = document.getElementsByClassName("field--name-field-question");
|
|
|
-
|
|
|
-for (let i = 0; i < questions.length; i++) {
|
|
|
- const question = questions[i]
|
|
|
- question.addEventListener("click", toggleFaqFichiers);
|
|
|
-}
|
|
|
-function toggleFaqFichiers(event) {
|
|
|
-
|
|
|
-for (let i = 0; i < fichiers.length; i++) {
|
|
|
- fichiers[i].classList.remove('opened');
|
|
|
-}
|
|
|
-let fichier = this.parentNode.querySelector('.field--name-field-fichiers');
|
|
|
-
|
|
|
-fichier.classList.add('opened');
|
|
|
-}
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-var liens = document.getElementsByClassName("field--name-field-liens");
|
|
|
-var questions = document.getElementsByClassName("field--name-field-question");
|
|
|
-
|
|
|
-for (let i = 0; i < questions.length; i++) {
|
|
|
- const question = questions[i]
|
|
|
- question.addEventListener("click", toggleFaqLiens);
|
|
|
-}
|
|
|
-function toggleFaqLiens(event) {
|
|
|
-
|
|
|
-for (let i = 0; i < liens.length; i++) {
|
|
|
- liens[i].classList.remove('opened');
|
|
|
-}
|
|
|
-let lien = this.parentNode.querySelector('.field--name-field-liens');
|
|
|
-
|
|
|
-lien.classList.add('opened');
|
|
|
-}
|
|
|
-
|
|
|
-
|
|
|
-var ressources = document.getElementsByClassName("field--name-field-ress");
|
|
|
-var questions = document.getElementsByClassName("field--name-field-question");
|
|
|
-
|
|
|
-for (let i = 0; i < questions.length; i++) {
|
|
|
- const question = questions[i]
|
|
|
- question.addEventListener("click", toggleFaqRessources);
|
|
|
-}
|
|
|
-function toggleFaqRessources(event) {
|
|
|
-
|
|
|
-for (let i = 0; i < resources.length; i++) {
|
|
|
- ressources[i].classList.remove('opened');
|
|
|
-}
|
|
|
-let ressource = this.parentNode.querySelector('.field--name-field-ress');
|
|
|
-
|
|
|
-ressource.classList.add('opened');
|
|
|
-}
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-jQuery(function($) {
|
|
|
- var path = window.location.href;
|
|
|
- console.log(path);
|
|
|
- $(".view-id-collections .view-content .views-row a").each(function() {
|
|
|
- if (this.href === path) {
|
|
|
- $(this).parent().closest('.views-row').addClass('active');
|
|
|
- }
|
|
|
- });
|
|
|
- });
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-(function($, window) {
|
|
|
- var adjustAnchor = function() {
|
|
|
- var $anchor = $('.block-entity-fieldnodefield-textes'),
|
|
|
- fixedElementHeight = 350;
|
|
|
- if ($anchor.length > 0) {
|
|
|
- $('html, body').stop().animate({scrollTop: $anchor.offset().top - fixedElementHeight }, 0);
|
|
|
- }
|
|
|
- };
|
|
|
-
|
|
|
- $(window).on('hashchange', function() {
|
|
|
- adjustAnchor();
|
|
|
- });
|
|
|
-
|
|
|
-})(jQuery, window);
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
|