Office Hours
Monday to Friday
8:30 am to 5 pm
Connect With Us
4058 Minnesota Avenue, NE,
Washington, DC 20019
Phone: (202) 724-7000
Fax: (202) 673-6993
TTY: (202) 698-4817
Email: [emailprotected]
© 2022 District of Columbia
X
Block:
Featured Services Block
Edit Node:
Description:
This service listing is modified from the individual "service content type" node. Selecting "promote to frontpage" will add the service node to this block. There is a limit of 6 items.
X
Node:
DOES Feature Content A
Edit Node:
Description:
This block contains 3 sections displayed as cards and is modified from feature content node 'A'.
X
Node:
DOES Feature Content D
Edit Node:
Description:
This block is modified from the individual "feature content type” node.
X
Node:
DOES Feature Content B
Edit Node:
Description:
This block is modified from the individual "feature content type” node.
X
Node:
DOES Feature Content C
Edit Node:
Description:
This block is modified from the individual "feature content type” node.
Block Config
" + month + "
"; }); }//end front-page check if(document.body.classList.contains('node-type-service')){ //GET SERVICE CONTACT FIELDS AND ADD TO NEW 'SERVICEINFO' DIV WRAPPER let getSiblings = function (e) { // for collecting siblings let siblings = []; // if no parent, return no sibling if(!e.parentNode) { return siblings; } // first child of the parent node let sibling = e.parentNode.firstChild; // collecting siblings while (sibling) { if (sibling.nodeType === 1 && sibling !== e) { siblings.push(sibling); } sibling = sibling.nextSibling; } return siblings; }; let bodyEl = document.querySelector('article'); let divEl = document.createElement('div') divEl.setAttribute('id', 'ServiceInfo'); bodyEl.insertAdjacentElement('afterend', divEl); bodyEl.append(divEl); let serviceInfo = document.getElementById('ServiceInfo'); let siblings = getSiblings(document.querySelector('.field-name-body')); console.log(divEl); let revSiblings = siblings.reverse(); siblingText = revSiblings.map(e => { serviceInfo.insertAdjacentHTML('afterbegin', e.outerHTML); }); console.log(siblingText);}