When you’re newly sober, every day can feel like a test of your willpower. The early stages of recovery are full of firsts: first social events without drinking, first hard day without using, first time facing emotions without numbing. It’s important to remember that facing these emotions is a normal part of the recovery process.What…
(function () {
// forEach polyfill
if (!NodeList.prototype.forEach) {
NodeList.prototype.forEach = function (callback) {
for (var i = 0; i < this.length; i++) {
callback.call(this, this.item(i));
}
}
}
var navigation = document.querySelector('[data-colibri-navigation-overlap="true"], .h-navigation_overlap');
if (navigation) {
var els = document
.querySelectorAll('.h-navigation-padding');
if (els.length) {
els.forEach(function (item) {
item.style.paddingTop = navigation.offsetHeight + "px";
});
}
}
})();
( function() {
var skipLinkTarget = document.querySelector( 'main' ),
sibling,
skipLinkTargetID,
skipLink;
// Early exit if a skip-link target can't be located.
if ( ! skipLinkTarget ) {
return;
}
/*
* Get the site wrapper.
* The skip-link will be injected in the beginning of it.
*/
sibling = document.querySelector( '.wp-site-blocks' );
// Early exit if the root element was not found.
if ( ! sibling ) {
return;
}
// Get the skip-link target's ID, and generate one if it doesn't exist.
skipLinkTargetID = skipLinkTarget.id;
if ( ! skipLinkTargetID ) {
skipLinkTargetID = 'wp--skip-link--target';
skipLinkTarget.id = skipLinkTargetID;
}
// Create the skip link.
skipLink = document.createElement( 'a' );
skipLink.classList.add( 'skip-link', 'screen-reader-text' );
skipLink.id = 'wp-skip-link';
skipLink.href = '#' + skipLinkTargetID;
skipLink.innerText = 'Skip to content';
// Inject the skip link.
sibling.parentElement.insertBefore( skipLink, sibling );
}() );