This web page was created programmatically, to learn the article in its authentic location you’ll be able to go to the hyperlink bellow:
https://www.youngtype2.org/content/page/healthy-lifestyle-emotional-wellbeing
and if you wish to take away this text from our web site please contact us
// Get all different focusable parts, excluding these already in inputEls
const otherEls = […$el.querySelectorAll(otherSelector)]
.filter(el =>
!el.hasAttribute(‘disabled’) &&
!el.getAttribute(‘aria-hidden’) &&
!inputEls.consists of(el)
);
// Combine, inputs targeted first
return […inputEls, …otherEls];
},
firstFocusable() { return this.focusables()[0] },
lastFocusable() { return this.focusables().slice(-1)[0] },
nextFocusable() ,
prevFocusable() this.lastFocusable() ,
nextFocusableIndex() { return (this.focusables().indexOf(doc.activeElement) + 1) % (this.focusables().size + 1) },
prevFocusableIndex() { return Math.max(0, this.focusables().indexOf(doc.activeElement)) -1 },
}”
x-init=”$watch(‘present’, worth => {
if (worth) {
doc.physique.classList.add(‘overflow-y-hidden’);
setTimeout(() => firstFocusable().focus(), 100)
} else {
doc.physique.classList.take away(‘overflow-y-hidden’);
}
})”
x-on:open-modal.window=”$event.detail == ‘search-modal’ ? show = true : null”
x-on:close-modal.window=”$event.detail == ‘search-modal’ ? show = false : null”
x-on:shut.cease=”show = false”
x-on:keydown.escape.window=”show = false”
x-on:keydown.tab.forestall=”$event.shiftKey || nextFocusable().focus()”
x-on:keydown.shift.tab.forestall=”prevFocusable().focus()”
x-show=”show”
class=”fixed inset-0 overflow-y-auto px-4 py-6 sm:px-0 z-50 flex flex-col justify-center”
fashion=”display: none;”
>
const otherEls = […$el.querySelectorAll(otherSelector)]
.filter(el =>
!el.hasAttribute(‘disabled’) &&
!el.getAttribute(‘aria-hidden’) &&
!inputEls.consists of(el)
);
return […inputEls, …otherEls];
},
firstFocusable() { return this.focusables()[0] },
lastFocusable() { return this.focusables().slice(-1)[0] },
}” x-init=”// Ensure state synchronization when web page turns into seen once more
doc.addEventListener(‘visibilitychange’, () => {
if (!doc.hidden && $wire.open !== present) {
present = $wire.open;
}
});
// Re-establish entangle connection if wanted
$watch(‘present’, worth => {
if ($wire.open !== worth) {
$wire.open = worth;
}
});
$watch(‘$wire.open’, worth => {
if (present !== worth) {
present = worth;
}
});
$watch(‘present’, worth => {
if (worth) {
doc.physique.classList.add(‘overflow-y-hidden’);
setTimeout(() => {
video()?.play();
}, 200);
setTimeout(() => firstFocusable()?.focus(), 100);
} else {
doc.physique.classList.take away(‘overflow-y-hidden’);
setTimeout(() => {
video()?.pause();
}, 100);
}
});” x-show=”present” x-on:keydown.escape.window=”present = false”
x-on:keydown.tab=”
if (doc.activeElement === lastFocusable()) {
$occasion.preventDefault();
firstFocusable().focus();
}
”
x-on:keydown.shift.tab=”
if (doc.activeElement === firstFocusable()) {
$occasion.preventDefault();
lastFocusable().focus();
}
”
class=”fixed inset-0 overflow-y-auto px-4 py-6 sm:px-0 z-50 flex flex-col justify-center” fashion=”display: none;”>
On this web page you can find a wide range of helpful sources to help your psychological well being, plus easy concepts for growing exercise and making wholesome life-style decisions. We hope you discover them helpful. If there are any points which are affecting you, then speak to your native diabetes group in order that they will help you get the suitable help.
This web page was created programmatically, to learn the article in its authentic location you’ll be able to go to the hyperlink bellow:
https://www.youngtype2.org/content/page/healthy-lifestyle-emotional-wellbeing
and if you wish to take away this text from our web site please contact us
This web page was created programmatically, to learn the article in its authentic location you…
This web page was created programmatically, to learn the article in its unique location you…
This web page was created programmatically, to learn the article in its unique location you…
This web page was created programmatically, to learn the article in its authentic location you…
This web page was created programmatically, to learn the article in its unique location you…
This web page was created programmatically, to learn the article in its authentic location you'll…