handling postContainer
This commit is contained in:
parent
9df3407191
commit
b0cfbbae82
|
|
@ -58,6 +58,7 @@ export default function singleConseil() {
|
||||||
);
|
);
|
||||||
|
|
||||||
function buildAllBlocksToObserve() {
|
function buildAllBlocksToObserve() {
|
||||||
|
const postsContainerBlocks = document.querySelectorAll('.post-content-container');
|
||||||
const questionsContainerBlocks = document.querySelectorAll('.questions-container-block');
|
const questionsContainerBlocks = document.querySelectorAll('.questions-container-block');
|
||||||
const chapitresThematiques = document.querySelectorAll('.homegrade-blocks-chapitre-thematique');
|
const chapitresThematiques = document.querySelectorAll('.homegrade-blocks-chapitre-thematique');
|
||||||
const vocabulaireSummaryBlock = document.querySelector('.homegrade-blocks-vocabulaire-summary');
|
const vocabulaireSummaryBlock = document.querySelector('.homegrade-blocks-vocabulaire-summary');
|
||||||
|
|
@ -73,6 +74,7 @@ export default function singleConseil() {
|
||||||
if (partnersOtherServices) allBlocks.push(partnersOtherServices);
|
if (partnersOtherServices) allBlocks.push(partnersOtherServices);
|
||||||
if (questionsContainerBlocks.length > 0)
|
if (questionsContainerBlocks.length > 0)
|
||||||
allBlocks = [...allBlocks, ...questionsContainerBlocks];
|
allBlocks = [...allBlocks, ...questionsContainerBlocks];
|
||||||
|
if (postsContainerBlocks.length > 0) allBlocks = [...allBlocks, ...postsContainerBlocks];
|
||||||
if (chapitresThematiques.length > 0) allBlocks = [...allBlocks, ...chapitresThematiques];
|
if (chapitresThematiques.length > 0) allBlocks = [...allBlocks, ...chapitresThematiques];
|
||||||
|
|
||||||
return allBlocks;
|
return allBlocks;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user