From 313774a21f43890b95fe4703c7639843550b7d2b Mon Sep 17 00:00:00 2001 From: ouidade Date: Tue, 30 Nov 2021 11:53:44 +0100 Subject: [PATCH] js faq --- web/profiles/d8-starterkit-profile | 2 +- web/themes/custom/eql/css-compiled/styles.css | 2 +- web/themes/custom/eql/scripts/main.js | 2 +- web/themes/custom/eql/scss/pages/_faq.scss | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/web/profiles/d8-starterkit-profile b/web/profiles/d8-starterkit-profile index 9b46db9..6fe8986 160000 --- a/web/profiles/d8-starterkit-profile +++ b/web/profiles/d8-starterkit-profile @@ -1 +1 @@ -Subproject commit 9b46db9c56faf2cbc965ea1b76ce5345e7f46c0f +Subproject commit 6fe8986494069c7e9bf019cbe98d8f2c7d5166d0 diff --git a/web/themes/custom/eql/css-compiled/styles.css b/web/themes/custom/eql/css-compiled/styles.css index e27be95..c394229 100644 --- a/web/themes/custom/eql/css-compiled/styles.css +++ b/web/themes/custom/eql/css-compiled/styles.css @@ -722,7 +722,7 @@ a { display: inline-flex; content: url('data:image/svg+xml,'); justify-self: flex-end; } - .block-views-blockfaq-block-1 div:first-child .node-type-question_reponse .field--name-field-reponse .panel-heading { + .block-views-blockfaq-block-1 div:first-child .node-type-question_reponse .field--name-field-reponse { display: none; } .block-views-blockfaq-block-1 div:first-child .node-type-question_reponse .opened { display: block; } diff --git a/web/themes/custom/eql/scripts/main.js b/web/themes/custom/eql/scripts/main.js index 5bbed12..5a2f15a 100644 --- a/web/themes/custom/eql/scripts/main.js +++ b/web/themes/custom/eql/scripts/main.js @@ -16,7 +16,7 @@ function toggleMenu(event) { // faq reponse open var answer = document.getElementsByClassName("panel-body"); -var questions = document.getElementsByClassName(".field--name-field-question"); +var questions = document.getElementsByClassName("field--name-field-question"); for (let i = 0; i < questions.length; i++) { const question = questions[i] diff --git a/web/themes/custom/eql/scss/pages/_faq.scss b/web/themes/custom/eql/scss/pages/_faq.scss index fd4308c..09eea77 100644 --- a/web/themes/custom/eql/scss/pages/_faq.scss +++ b/web/themes/custom/eql/scss/pages/_faq.scss @@ -28,9 +28,9 @@ } .field--name-field-reponse{ - .panel-heading{ + display: none; - } + } .opened{ display: block;