.cpts-share-container-icones { display: flex; justify-content: center; } .cpts-share-buttons-icones { display: flex; gap: 6px; } .cpts-share-buttons-icones button, .cpts-share-buttons-icones a { background-color: #fff !important; color: #2A3E89; border: 1.5px solid #2A3E89; } .cpts-btn-icone { display: flex; justify-content: center; align-items: center; width: 35px; height: 35px; padding: 0; text-decoration: none; color: #2A3E89; background-color: #ffffff; border: 1.5px solid #2A3E89; border-radius: 12px; cursor: pointer; transition: all 0.2s ease-in-out; } .cpts-share-buttons-icones button:hover, .cpts-share-buttons-icones a:hover { background-color: #2A3E89 !important; color: #fff; } .cpts-icon-single { width: 14px; height: 14px; fill: currentColor; } .cpts-btn-icone:hover { background-color: #2A3E89; color: #ffffff; } .cpts-btn-icone.copied { background-color: #28a745; border-color: #28a745; color: #fff; } document.addEventListener('DOMContentLoaded', function() { const nativeShareBtn = document.getElementById('nativeShareBtn'); const emailShareBtn = document.getElementById('emailShareBtn'); const pageTitle = encodeURIComponent(document.title); const pageUrl = encodeURIComponent(window.location.href); emailShareBtn.href = `mailto:?subject=À lire : ${pageTitle}&body=Bonjour,%0A%0AJe vous invite à découvrir cette page du site de la CPTS du Pays de Laval :%0A${pageTitle}%0A%0ACe lien pourrait vous intéresser :%0A${pageUrl}`; if (navigator.share) { nativeShareBtn.addEventListener('click', async () => { try { await navigator.share({ title: document.title, url: window.location.href }); } catch (err) { console.log('Partage annulé ou erreur :', err); } }); } else { nativeShareBtn.addEventListener('click', () => { navigator.clipboard.writeText(window.location.href).then(() => { nativeShareBtn.classList.add('copied'); const originalTitle = nativeShareBtn.title; nativeShareBtn.title = "Lien copié !"; setTimeout(() => { nativeShareBtn.classList.remove('copied'); nativeShareBtn.title = originalTitle; }, 2000); }).catch(err => { console.error('Erreur lors de la copie : ', err); }); }); } });

Un nouveau programme d’activité physique adaptée à Laval

.cpts-share-container-icones { display: flex; justify-content: center; } .cpts-share-buttons-icones { display: flex; gap: 12px; } .cpts-share-buttons-icones button, .cpts-share-buttons-icones a { background-color: #fff !important; color: #2A3E89; border: 1.5px solid #2A3E89; } .cpts-btn-icone { display: flex; justify-content: center; align-items: center; width: 45px; height: 45px;/ padding: 0; text-decoration: none; color: #2A3E89; background-color: #ffffff; border: 1.5px solid #2A3E89; border-radius: 12px; cursor: pointer; transition: all 0.2s ease-in-out; } .cpts-share-buttons-icones button:hover, .cpts-share-buttons-icones a:hover { background-color: #2A3E89 !important; color: #fff; } .cpts-icon-single { width: 22px; height: 22px; fill: currentColor; } .cpts-btn-icone:hover { background-color: #2A3E89; color: #ffffff; } .cpts-btn-icone.copied { background-color: #28a745; border-color: #28a745; color: #fff; } document.addEventListener('DOMContentLoaded', function() { const nativeShareBtn = document.getElementById('nativeShareBtn'); const emailShareBtn = document.getElementById('emailShareBtn'); const pageTitle = encodeURIComponent(document.title); const pageUrl = encodeURIComponent(window.location.href); emailShareBtn.href = `mailto:?subject=À lire : ${pageTitle}&body=Bonjour,%0A%0AJe vous invite à découvrir cette page du site de la CPTS du Pays de Laval :%0A${pageTitle}%0A%0ACe lien pourrait vous intéresser :%0A${pageUrl}`; if (navigator.share) { nativeShareBtn.addEventListener('click', async () => { try { await navigator.share({ title: document.title, url: window.location.href }); } catch (err) { console.log('Partage annulé ou erreur :', err); } }); } else { nativeShareBtn.addEventListener('click', () => { navigator.clipboard.writeText(window.location.href).then(() => { nativeShareBtn.classList.add('copied'); const originalTitle = nativeShareBtn.title; nativeShareBtn.title = "Lien copié !"; setTimeout(() => { nativeShareBtn.classList.remove('copied'); nativeShareBtn.title = originalTitle; }, 2000); }).catch(err => { console.error('Erreur lors de la copie : ', err); }); }); } });

Table des matières

    Vous allez aussi aimer

    Retrouvez des actualités, des projets de prévention et des initiatives menées par les professionnels de santé pour améliorer l’accès aux soins.