Från den 10 september och en månad framåt uppmärksammar Partille kommun psykisk hälsa och ohälsa samt suicid med föreläsningar, samtal och andra aktiviteter. Här kan du ta del av hela programmet för satsningen.
Kontakta oss
(function () {
var blockId = 'contactblock-8984939';
var blockElement = document.getElementById(blockId);
if (!blockElement) {
return;
}
var copyButton = blockElement.querySelector('.copy-accordion-link');
var copiedPopup = document.getElementById('contactblock-popup-8984939');
var headingElement = blockElement.querySelector('[data-contact-block-heading]');
var copiedPopupTimeoutId = null;
var focusOutline = '2px solid #000';
var showHeadingFocusBorder = function () {
headingElement.style.outline = focusOutline;
headingElement.style.outlineOffset = '2px';
headingElement.style.borderRadius = '0.375rem';
};
var hideHeadingFocusBorder = function () {
headingElement.style.outline = '';
headingElement.style.outlineOffset = '';
headingElement.style.borderRadius = '';
};
if (headingElement) {
headingElement.addEventListener('focus', showHeadingFocusBorder);
headingElement.addEventListener('blur', hideHeadingFocusBorder);
document.addEventListener('mousedown', function (event) {
if (event.target === headingElement) {
return;
}
hideHeadingFocusBorder();
if (document.activeElement === headingElement) {
headingElement.blur();
}
});
if (window.location.hash === '#' + blockId) {
showHeadingFocusBorder();
headingElement.focus({ preventScroll: true });
}
window.addEventListener('hashchange', function () {
if (window.location.hash === '#' + blockId) {
showHeadingFocusBorder();
headingElement.focus({ preventScroll: true });
return;
}
hideHeadingFocusBorder();
});
}
if (copyButton && copiedPopup) {
var copyToClipboard = function (text) {
if (navigator.clipboard && window.isSecureContext) {
return navigator.clipboard.writeText(text);
}
return new Promise(function (resolve, reject) {
try {
var textarea = document.createElement('textarea');
textarea.value = text;
textarea.setAttribute('readonly', '');
textarea.style.position = 'absolute';
textarea.style.left = '-9999px';
document.body.appendChild(textarea);
textarea.select();
document.execCommand('copy');
document.body.removeChild(textarea);
resolve();
} catch (error) {
reject(error);
}
});
};
copyButton.addEventListener('click', function () {
var url = window.location.origin + window.location.pathname + '#' + blockId;
copyToClipboard(url).then(function () {
copiedPopup.classList.remove('hidden');
if (copiedPopupTimeoutId) {
clearTimeout(copiedPopupTimeoutId);
}
copiedPopupTimeoutId = window.setTimeout(function () {
copiedPopup.classList.add('hidden');
copiedPopupTimeoutId = null;
}, 2000);
}).catch(function (error) {
if (window.console && typeof window.console.log === 'function') {
window.console.log(error);
}
});
});
}
})();