157/2026
Olá Srs Pais e Responsáveis,
De 20 a 28 de agosto, as turmas do Junior 2 e Junior 3 (turmas da manhã) do professor Fernando farão suas aulas de Atletismo. Para otimizar o tempo de aula, o encontro é direto na Pista de Atletismo. Lembrem de passar protetor solar e usarem boné porque o sol pode estar forte.
// Funções auxiliares para manipular cookies
function setLocalStorage(name, value, days)
localStorage.setItem(name, JSON.stringify(value));
/*let expires = "";
if (days)
document.cookie = name + "=" + (JSON.stringify(value)
function getLocalStorage(name) {
return localStorage.getItem(name) ? JSON.parse(localStorage.getItem(name)) : null;/*
const nameEQ = name + "=";
const ca = document.cookie.split(';');
for(let i=0; i < ca.length; i++) {
let c = ca[i];
while (c.charAt(0)==' ') c = c.substring(1,c.length);
if (c.indexOf(nameEQ) == 0)
}
return null;*/
}
function loadFunctionalityScripts() {
// UserWay
var _userway_config = { account: 'N8WdaBovI4' };
const userwayScript = document.createElement('script');
userwayScript.src = "https://cdn.userway.org/widget.js";
userwayScript.async = true;
document.head.appendChild(userwayScript);
}
function loadAdvertisingScripts() {
// Facebook Pixel
!function(f,b,e,v,n,t,s)
{if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};
if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];
s.parentNode.insertBefore(t,s)}(window,document,'script',
'https://connect.facebook.net/en_US/fbevents.js');
fbq('init', '713933055663492');
fbq('track', 'PageView');
}// --- Exemplo: Lógica para carregar o Google Analytics ---
function loadAnalyticsScripts() {
(function(h,o,t,j,a,r){
h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};
h._hjSettings={hjid:209356,hjsv:6};
a=o.getElementsByTagName('head')[0];
r=o.createElement('script');r.async=1;
r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;
a.appendChild(r);
})(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');
// Este é o lugar onde você colocaria seu script do Google Analytics.
// Por exemplo:
const script = document.createElement('script');
script.src="https://www.googletagmanager.com/gtag/js?id=G-LSELT1JB33";
script.async = true;
document.head.appendChild(script);
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-LSELT1JB33');
}// Função principal que verifica e aplica o consentimento
function applyConsent() {
const consent = getLocalStorage('cookie_consent');
if (consent && consent.analytics) {
loadAnalyticsScripts();
} else {
console.log("❌ GOOGLE ANALYTICS BLOQUEADO: O usuário não deu consentimento.");
}
if (consent && consent.functionality) {
loadFunctionalityScripts();
} else {
console.log("❌ GOOGLE functionality BLOQUEADO: O usuário não deu consentimento.");
}
if (consent && consent.advertising) {
loadAdvertisingScripts();
} else {
console.log("❌ GOOGLE advertising BLOQUEADO: O usuário não deu consentimento.");
}
}
// Inicialização do Modal e Lógica de UI
document.addEventListener('DOMContentLoaded', () => {
const cookieConsentContainer = document.getElementById('cookieConsentContainer');
const initialBanner = document.getElementById('initialBanner');
const cookieModal = document.getElementById('cookieModal');
const acceptAllSimpleBtn = document.getElementById('acceptAllSimpleBtn');
const openSettingsLink = document.getElementById('openSettingsLink');
const allowAllBtn = document.getElementById('allowAllBtn');
const confirmBtn = document.getElementById('confirmBtn');
const analyticsToggle = document.getElementById('analytics-toggle');
const functionalityToggle = document.getElementById('functionality-toggle');
const advertisingToggle = document.getElementById('advertising-toggle');
// Se o cookie de consentimento já existe, não mostre o banner e aplique o consentimento.
if (getLocalStorage('cookie_consent')) {
cookieConsentContainer.classList.add('hidden');
applyConsent();
return;
}
// Se não houver cookie, mostre o banner
cookieConsentContainer.classList.remove('hidden');
const closeConsentUI = () => {
cookieConsentContainer.classList.add('fade-exit');
setTimeout(() => cookieConsentContainer.classList.add('hidden'), 300);
};
acceptAllSimpleBtn.addEventListener('click', () => {
console.log('Permissão simples concedida. Todos os cookies aceitos.');
const preferences = { analytics: true, functionality: true, advertising: true };
setLocalStorage('cookie_consent', preferences, 365);
applyConsent();
closeConsentUI();
});
openSettingsLink.addEventListener('click', () => {
cookieConsentContainer.classList.add('modal-view');
initialBanner.classList.add('hidden');
cookieModal.classList.remove('hidden');
});
allowAllBtn.addEventListener('click', () => {
analyticsToggle.checked = true;
functionalityToggle.checked = true;
advertisingToggle.checked = true;
const preferences = { analytics: true, functionality: true, advertising: true };
setLocalStorage('cookie_consent', preferences, 365);
console.log('Todas as permissões de cookies concedidas via modal detalhado.');
applyConsent();
closeConsentUI();
});
confirmBtn.addEventListener('click', () => {
const preferences = {
analytics: analyticsToggle.checked,
functionality: functionalityToggle.checked,
advertising: advertisingToggle.checked,
};
setLocalStorage('cookie_consent', preferences, 365);
console.log('Preferências salvas:', preferences);
applyConsent();
closeConsentUI();
});
});