Med det lokala näringslivet i fokus och med tanke på det ansträngda läget, har Partille kommun beslutat om ett stödpaket riktat direkt till företagen. Paketet innehåller femton stödåtgärder. Fler kan följa.
(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);
}
});
});
}
})();