Atualização do calendario
This commit is contained in:
320
calendario.css
320
calendario.css
@@ -1,15 +1,15 @@
|
||||
* {
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
}
|
||||
|
||||
body {
|
||||
body {
|
||||
font-family: 'Poppins', sans-serif;
|
||||
}
|
||||
}
|
||||
|
||||
/* ===== HEADER ===== */
|
||||
#header {
|
||||
/* ===== HEADER ===== */
|
||||
#header {
|
||||
width: 100%;
|
||||
height: 50px;
|
||||
position: fixed;
|
||||
@@ -19,16 +19,16 @@ body {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
z-index: 10;
|
||||
}
|
||||
}
|
||||
|
||||
#title {
|
||||
#title {
|
||||
color: white;
|
||||
padding-left: 20px;
|
||||
font-size: 28px;
|
||||
}
|
||||
}
|
||||
|
||||
/* ===== BARRA ESQUERDA ===== */
|
||||
#barraesquerda {
|
||||
/* ===== BARRA ESQUERDA ===== */
|
||||
#barraesquerda {
|
||||
position: fixed;
|
||||
top: 50px;
|
||||
left: 0;
|
||||
@@ -40,53 +40,98 @@ body {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
font-family: 'Inter', sans-serif;
|
||||
}
|
||||
}
|
||||
|
||||
/* ===== MINI CALENDÁRIO ===== */
|
||||
#calendario {
|
||||
/* ===== MINI CALENDÁRIO ===== */
|
||||
#calendario {
|
||||
margin-top: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
.calendariotop {
|
||||
.calendariotop {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
#mes {
|
||||
#mes {
|
||||
font-size: 18px;
|
||||
font-weight: 600;
|
||||
}
|
||||
}
|
||||
|
||||
#calendarseta button {
|
||||
#calendarseta {
|
||||
display: flex;
|
||||
gap: 15px; /* espaço entre as setas */
|
||||
}
|
||||
|
||||
#calendarseta button {
|
||||
background: transparent;
|
||||
border: none;
|
||||
color: white;
|
||||
font-size: 18px;
|
||||
font-size: 26px; /* tamanho maior */
|
||||
cursor: pointer;
|
||||
}
|
||||
padding: 5px 10px; /* aumenta área de clique */
|
||||
transition: transform 0.2s ease;
|
||||
}
|
||||
|
||||
.calendariodia {
|
||||
#calendarseta button:hover {
|
||||
transform: scale(1.2); /* efeito ao passar o mouse */
|
||||
}
|
||||
.setas-grande {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 15px;
|
||||
}
|
||||
|
||||
.titulo-mes {
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.dia-semana {
|
||||
background: #f0f0f0;
|
||||
text-align: center;
|
||||
font-weight: 600;
|
||||
font-size: 12px;
|
||||
padding: 10px 0;
|
||||
border: 1px solid #ddd;
|
||||
}
|
||||
.antGrande,
|
||||
.proxGrande {
|
||||
background: transparent;
|
||||
border: none;
|
||||
color: #1f3b57;
|
||||
font-size: 26px;
|
||||
cursor: pointer;
|
||||
padding: 5px 10px;
|
||||
transition: transform 0.2s ease;
|
||||
}
|
||||
|
||||
.antGrande:hover,
|
||||
.proxGrande:hover {
|
||||
transform: scale(1.2);
|
||||
}
|
||||
|
||||
.calendariodia {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
}
|
||||
|
||||
.calendariodia th {
|
||||
.calendariodia th {
|
||||
font-size: 11px;
|
||||
opacity: 0.7;
|
||||
}
|
||||
}
|
||||
|
||||
.calendariodia td {
|
||||
.calendariodia td {
|
||||
text-align: center;
|
||||
padding: 6px;
|
||||
font-size: 12px;
|
||||
border-radius: 50%;
|
||||
position: relative;
|
||||
}
|
||||
}
|
||||
|
||||
/* bolinha */
|
||||
.calendariodia td::after {
|
||||
/* bolinha */
|
||||
.calendariodia td::after {
|
||||
content: "";
|
||||
width: 5px;
|
||||
height: 5px;
|
||||
@@ -96,92 +141,92 @@ body {
|
||||
bottom: -2px;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
}
|
||||
}
|
||||
|
||||
.outromes {
|
||||
.outromes {
|
||||
opacity: 0.4;
|
||||
}
|
||||
}
|
||||
|
||||
.calendariodia td.today {
|
||||
.calendariodia td.today {
|
||||
background: #114455;
|
||||
border-radius: 30%;
|
||||
height: 0px;
|
||||
width: 5px;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/* ===== AGENDA ===== */
|
||||
.agenda-header {
|
||||
/* ===== AGENDA ===== */
|
||||
.agenda-header {
|
||||
margin-top: 15px;
|
||||
border-top: 1px solid rgba(255,255,255,0.3);
|
||||
border-bottom: 1px solid rgba(255,255,255,0.3);
|
||||
padding: 8px 0;
|
||||
font-size: 13px;
|
||||
}
|
||||
}
|
||||
|
||||
.evento {
|
||||
.evento {
|
||||
margin-top: 10px;
|
||||
padding-left: 10px;
|
||||
border-left: 3px solid white;
|
||||
}
|
||||
}
|
||||
|
||||
.evento.azul {
|
||||
.evento.azul {
|
||||
border-color: #00c2ff;
|
||||
}
|
||||
}
|
||||
|
||||
.evento.rosa {
|
||||
.evento.rosa {
|
||||
border-color: #ff4fa3;
|
||||
}
|
||||
}
|
||||
|
||||
.hora {
|
||||
.hora {
|
||||
font-size: 11px;
|
||||
opacity: 0.7;
|
||||
}
|
||||
}
|
||||
|
||||
.titulo {
|
||||
.titulo {
|
||||
font-size: 13px;
|
||||
}
|
||||
}
|
||||
|
||||
.link {
|
||||
.link {
|
||||
font-size: 11px;
|
||||
color: #ffdede;
|
||||
}
|
||||
}
|
||||
|
||||
/* ===== FERIADOS ===== */
|
||||
.feriados-header {
|
||||
/* ===== FERIADOS ===== */
|
||||
.feriados-header {
|
||||
margin-top: 15px;
|
||||
font-weight: 600;
|
||||
}
|
||||
}
|
||||
|
||||
.feriado {
|
||||
.feriado {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
margin-top: 8px;
|
||||
font-size: 13px;
|
||||
}
|
||||
}
|
||||
|
||||
.dot {
|
||||
.dot {
|
||||
width: 6px;
|
||||
height: 6px;
|
||||
background: #d4ff6a;
|
||||
border-radius: 50%;
|
||||
}
|
||||
}
|
||||
|
||||
/* ===== MAIN ===== */
|
||||
.main {
|
||||
/* ===== MAIN ===== */
|
||||
.main {
|
||||
margin-left: 320px;
|
||||
margin-top: 50px;
|
||||
min-height: calc(100vh - 50px);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
background: #f5f5f5;
|
||||
}
|
||||
}
|
||||
|
||||
/* ===== TOPBAR ===== */
|
||||
.topbar {
|
||||
/* ===== TOPBAR ===== */
|
||||
.topbar {
|
||||
height: 70px;
|
||||
background: #eaeaea;
|
||||
border-bottom: 3px solid #c0392b;
|
||||
@@ -191,55 +236,55 @@ body {
|
||||
justify-content: space-between;
|
||||
|
||||
padding: 0 25px;
|
||||
}
|
||||
}
|
||||
|
||||
.topbar h1 {
|
||||
.topbar h1 {
|
||||
font-size: 24px;
|
||||
color: #1f3b57;
|
||||
}
|
||||
}
|
||||
|
||||
/* USER AREA */
|
||||
.user-area {
|
||||
/* USER AREA */
|
||||
.user-area {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
.icone {
|
||||
.icone {
|
||||
font-size: 20px;
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
|
||||
.perfil {
|
||||
.perfil {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
.avatar {
|
||||
.avatar {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
border-radius: 50%;
|
||||
background: url('https://i.pravatar.cc/100') center/cover;
|
||||
}
|
||||
}
|
||||
|
||||
.info {
|
||||
.info {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
}
|
||||
|
||||
.nome {
|
||||
.nome {
|
||||
font-weight: 600;
|
||||
color: #1f3b57;
|
||||
}
|
||||
}
|
||||
|
||||
.cargo {
|
||||
.cargo {
|
||||
font-size: 12px;
|
||||
color: #666;
|
||||
}
|
||||
}
|
||||
|
||||
/* ===== SUBHEADER ===== */
|
||||
.subheader {
|
||||
/* ===== SUBHEADER ===== */
|
||||
.subheader {
|
||||
background: #eaeaea;
|
||||
border-bottom: 3px solid #c0392b;
|
||||
padding: 10px 20px;
|
||||
@@ -247,60 +292,119 @@ body {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
}
|
||||
|
||||
.subheader h2 {
|
||||
.subheader h2 {
|
||||
color: #1f3b57;
|
||||
}
|
||||
}
|
||||
|
||||
/* BOTÕES */
|
||||
.view-buttons button {
|
||||
/* BOTÕES */
|
||||
.view-buttons button {
|
||||
border: none;
|
||||
padding: 5px 10px;
|
||||
border-radius: 6px;
|
||||
cursor: pointer;
|
||||
background: transparent;
|
||||
}
|
||||
}
|
||||
|
||||
.view-buttons .active {
|
||||
.view-buttons .active {
|
||||
background: #c0392b;
|
||||
color: white;
|
||||
}
|
||||
}
|
||||
|
||||
/* ===== MÊS ===== */
|
||||
.month-title {
|
||||
/* ===== MÊS ===== */
|
||||
.month-title {
|
||||
padding: 10px 20px;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
/* ===== CALENDÁRIO GRANDE ===== */
|
||||
.calendar-area {
|
||||
flex: 1;
|
||||
margin: 20px;
|
||||
background: #ddd;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
/* ===== CALENDÁRIO GRANDE ===== */
|
||||
.calendar-area {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(7, 1fr);
|
||||
grid-auto-rows: 120px;
|
||||
|
||||
/* PRIMEIRA LINHA MENOR */
|
||||
grid-template-rows: 40px repeat(6, 120px);
|
||||
}
|
||||
|
||||
.dia-box {
|
||||
background: #fff;
|
||||
/* DIAS DA SEMANA */
|
||||
.dia-semana {
|
||||
background: #f0f0f0;
|
||||
text-align: center;
|
||||
font-weight: 600;
|
||||
font-size: 13px;
|
||||
padding: 10px 0;
|
||||
border: 1px solid #ddd;
|
||||
}
|
||||
|
||||
.dia-box:hover {
|
||||
.dia-box {
|
||||
background: #fff;
|
||||
border: 1px solid #ddd;
|
||||
}
|
||||
|
||||
.dia-box:hover {
|
||||
background: #eaeaff;
|
||||
}
|
||||
.icone-img {
|
||||
}
|
||||
.icone-img {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
cursor: pointer;
|
||||
object-fit: contain;
|
||||
transition: transform 0.2s ease;
|
||||
}
|
||||
|
||||
.icone-img:hover {
|
||||
transform: scale(1.15);
|
||||
}
|
||||
.calendar-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
|
||||
padding: 10px 20px;
|
||||
background: #eee;
|
||||
border-bottom: 1px solid #ccc;
|
||||
}
|
||||
|
||||
.icone-img:hover {
|
||||
transform: scale(1.15);
|
||||
/* ESQUERDA (MÊS + SETAS) */
|
||||
.mes-nav {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.titulo-mes {
|
||||
font-size: 18px;
|
||||
font-weight: 600;
|
||||
color: #1f3b57;
|
||||
}
|
||||
|
||||
.seta {
|
||||
background: transparent;
|
||||
border: none;
|
||||
font-size: 22px;
|
||||
cursor: pointer;
|
||||
color: #c0392b;
|
||||
}
|
||||
|
||||
/* DIREITA (DIA / SEMANA / MÊS) */
|
||||
.view-switch {
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.view-switch button {
|
||||
border: none;
|
||||
padding: 6px 14px;
|
||||
border-radius: 8px;
|
||||
background: transparent;
|
||||
cursor: pointer;
|
||||
font-weight: 500;
|
||||
color: #1f3b57;
|
||||
}
|
||||
|
||||
/* BOTÃO ATIVO (MÊS) */
|
||||
.view-switch .active {
|
||||
background: #c0392b;
|
||||
color: white;
|
||||
}
|
||||
241
calendario.html
241
calendario.html
@@ -81,35 +81,48 @@
|
||||
|
||||
|
||||
<!-- MÊS -->
|
||||
<div class="month-title">
|
||||
<span>‹</span>
|
||||
Janeiro, 2025
|
||||
<span>›</span>
|
||||
<div class="calendar-header">
|
||||
|
||||
<!-- ESQUERDA (SETAS + MÊS) -->
|
||||
<div class="mes-nav">
|
||||
<button class="seta antGrande">‹</button>
|
||||
<span class="titulo-mes">Janeiro, 2025</span>
|
||||
<button class="seta proxGrande">›</button>
|
||||
</div>
|
||||
|
||||
<!-- DIREITA (DIA / SEMANA / MÊS) -->
|
||||
<div class="view-switch">
|
||||
<button>Dia</button>
|
||||
<button>Semana</button>
|
||||
<button class="active">Mês</button>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<!-- CALENDÁRIO GRANDE -->
|
||||
<div class="calendar-area" id="calendarArea"></div>
|
||||
|
||||
</div>
|
||||
|
||||
<!-- SCRIPT -->
|
||||
<script>
|
||||
/* ===== MINI CALENDÁRIO ===== */
|
||||
<script>
|
||||
/* ===== VARIÁVEIS ===== */
|
||||
let dataMini = new Date();
|
||||
let dataGrande = new Date();
|
||||
|
||||
let dataAtual = new Date();
|
||||
|
||||
function renderCalendario() {
|
||||
const mesEl = document.getElementById("mes");
|
||||
const diasEl = document.getElementById("dias");
|
||||
|
||||
const meses = [
|
||||
/* ===== MESES ===== */
|
||||
const meses = [
|
||||
"Janeiro", "Fevereiro", "Março", "Abril",
|
||||
"Maio", "Junho", "Julho", "Agosto",
|
||||
"Setembro", "Outubro", "Novembro", "Dezembro"
|
||||
];
|
||||
];
|
||||
|
||||
let ano = dataAtual.getFullYear();
|
||||
let mes = dataAtual.getMonth();
|
||||
/* ===== MINI CALENDÁRIO ===== */
|
||||
function renderCalendario() {
|
||||
const mesEl = document.getElementById("mes");
|
||||
const diasEl = document.getElementById("dias");
|
||||
|
||||
let ano = dataMini.getFullYear();
|
||||
let mes = dataMini.getMonth();
|
||||
|
||||
mesEl.textContent = `${meses[mes]} ${ano}`;
|
||||
|
||||
@@ -119,7 +132,7 @@
|
||||
|
||||
diasEl.innerHTML = "";
|
||||
|
||||
let diaAtual = 1;
|
||||
let diaAtualNum = 1;
|
||||
let diaSeguinte = 1;
|
||||
|
||||
let totalCelulas = primeiroDia + ultimoDia;
|
||||
@@ -136,18 +149,18 @@
|
||||
let dia = ultimoDiaMesAnterior - (primeiroDia - pos - 1);
|
||||
linha.innerHTML += `<td class="outromes">${dia}</td>`;
|
||||
}
|
||||
else if (diaAtual <= ultimoDia) {
|
||||
else if (diaAtualNum <= ultimoDia) {
|
||||
let hoje = new Date();
|
||||
|
||||
let classeHoje =
|
||||
diaAtual === hoje.getDate() &&
|
||||
diaAtualNum === hoje.getDate() &&
|
||||
mes === hoje.getMonth() &&
|
||||
ano === hoje.getFullYear()
|
||||
? "today"
|
||||
: "";
|
||||
|
||||
linha.innerHTML += `<td class="${classeHoje}">${diaAtual}</td>`;
|
||||
diaAtual++;
|
||||
linha.innerHTML += `<td class="${classeHoje}">${diaAtualNum}</td>`;
|
||||
diaAtualNum++;
|
||||
}
|
||||
else {
|
||||
linha.innerHTML += `<td class="outromes">${diaSeguinte}</td>`;
|
||||
@@ -157,65 +170,124 @@
|
||||
|
||||
diasEl.appendChild(linha);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
document.querySelector(".prox").onclick = () => {
|
||||
dataAtual.setMonth(dataAtual.getMonth() + 1);
|
||||
renderCalendario();
|
||||
};
|
||||
|
||||
document.querySelector(".ant").onclick = () => {
|
||||
dataAtual.setMonth(dataAtual.getMonth() - 1);
|
||||
renderCalendario();
|
||||
};
|
||||
|
||||
/* ===== CALENDÁRIO GRANDE ===== */
|
||||
|
||||
function renderCalendarioGrande() {
|
||||
/* ===== CALENDÁRIO GRANDE ===== */
|
||||
function renderCalendarioGrande() {
|
||||
const area = document.getElementById("calendarArea");
|
||||
const titulo = document.querySelector(".titulo-mes");
|
||||
|
||||
let ano = dataGrande.getFullYear();
|
||||
let mes = dataGrande.getMonth();
|
||||
|
||||
/* ATUALIZA TÍTULO */
|
||||
titulo.textContent = `${meses[mes]}, ${ano}`;
|
||||
|
||||
area.innerHTML = "";
|
||||
|
||||
for (let i = 0; i < 35; i++) {
|
||||
area.innerHTML += `<div class="dia-box"></div>`;
|
||||
/* DIAS DA SEMANA */
|
||||
const diasSemana = ["Dom", "Seg", "Ter", "Qua", "Qui", "Sex", "Sab"];
|
||||
|
||||
diasSemana.forEach(dia => {
|
||||
area.innerHTML += `<div class="dia-semana">${dia}</div>`;
|
||||
});
|
||||
|
||||
let primeiroDia = new Date(ano, mes, 1).getDay();
|
||||
let ultimoDia = new Date(ano, mes + 1, 0).getDate();
|
||||
let ultimoMesAnterior = new Date(ano, mes, 0).getDate();
|
||||
|
||||
let total = primeiroDia + ultimoDia;
|
||||
let linhas = Math.ceil(total / 7);
|
||||
|
||||
let diaAtualNum = 1;
|
||||
let proxMes = 1;
|
||||
|
||||
for (let i = 0; i < linhas * 7; i++) {
|
||||
let classe = "dia-box";
|
||||
let numero = "";
|
||||
|
||||
if (i < primeiroDia) {
|
||||
numero = ultimoMesAnterior - (primeiroDia - i - 1);
|
||||
classe += " outro-mes";
|
||||
}
|
||||
else if (diaAtualNum <= ultimoDia) {
|
||||
numero = diaAtualNum;
|
||||
|
||||
let hoje = new Date();
|
||||
if (
|
||||
diaAtualNum === hoje.getDate() &&
|
||||
mes === hoje.getMonth() &&
|
||||
ano === hoje.getFullYear()
|
||||
) {
|
||||
classe += " today";
|
||||
}
|
||||
|
||||
/* ===== DADOS ===== */
|
||||
|
||||
let agendaData = [
|
||||
{
|
||||
hora: "08:15 – 09:15",
|
||||
titulo: "Coçar oq fazer",
|
||||
link: "https://youtube.com",
|
||||
cor: "azul"
|
||||
},
|
||||
{
|
||||
hora: "09:00 – 10:00",
|
||||
titulo: "COMO QUE DIMINUI A FONTE?",
|
||||
link: "https://sccor.com",
|
||||
cor: "azul"
|
||||
},
|
||||
{
|
||||
hora: "11:00 – 11:45",
|
||||
titulo: "Pintar boobie-goods",
|
||||
cor: "rosa"
|
||||
},
|
||||
{
|
||||
hora: "18:20 – 23:00",
|
||||
titulo: "Ir pro curso (infelizmente)",
|
||||
link: "dom 4, BBP",
|
||||
cor: "azul"
|
||||
diaAtualNum++;
|
||||
}
|
||||
else {
|
||||
numero = proxMes++;
|
||||
classe += " outro-mes";
|
||||
}
|
||||
];
|
||||
|
||||
let feriadosData = [
|
||||
{ texto: "15 – Proclamação da República" },
|
||||
{ texto: "20 – Dia Nacional da Consciência Negra" }
|
||||
];
|
||||
area.innerHTML += `<div class="${classe}">${numero}</div>`;
|
||||
}
|
||||
}
|
||||
|
||||
/* ===== RENDER AGENDA ===== */
|
||||
/* ===== ATUALIZAÇÕES ===== */
|
||||
function atualizarMini() {
|
||||
renderCalendario();
|
||||
}
|
||||
|
||||
function renderAgenda() {
|
||||
function atualizarGrande() {
|
||||
renderCalendarioGrande();
|
||||
}
|
||||
|
||||
/* ===== SETAS MINI ===== */
|
||||
document.querySelector(".prox").onclick = () => {
|
||||
dataMini.setMonth(dataMini.getMonth() + 1);
|
||||
atualizarMini();
|
||||
};
|
||||
|
||||
document.querySelector(".ant").onclick = () => {
|
||||
dataMini.setMonth(dataMini.getMonth() - 1);
|
||||
atualizarMini();
|
||||
};
|
||||
|
||||
/* ===== SETAS GRANDE ===== */
|
||||
document.querySelector(".antGrande").onclick = () => {
|
||||
dataGrande.setMonth(dataGrande.getMonth() - 1);
|
||||
atualizarGrande();
|
||||
};
|
||||
|
||||
document.querySelector(".proxGrande").onclick = () => {
|
||||
dataGrande.setMonth(dataGrande.getMonth() + 1);
|
||||
atualizarGrande();
|
||||
};
|
||||
|
||||
/* ===== BOTÕES DIA / SEMANA / MÊS ===== */
|
||||
const botoesView = document.querySelectorAll(".view-switch button");
|
||||
|
||||
botoesView.forEach(btn => {
|
||||
btn.addEventListener("click", () => {
|
||||
botoesView.forEach(b => b.classList.remove("active"));
|
||||
btn.classList.add("active");
|
||||
|
||||
const tipo = btn.textContent;
|
||||
|
||||
if (tipo === "Dia") {
|
||||
alert("Modo DIA (você pode implementar depois)");
|
||||
}
|
||||
else if (tipo === "Semana") {
|
||||
alert("Modo SEMANA (você pode implementar depois)");
|
||||
}
|
||||
else {
|
||||
atualizarGrande(); // Mês já funciona
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
/* ===== AGENDA ===== */
|
||||
function renderAgenda() {
|
||||
const container = document.getElementById("agenda");
|
||||
|
||||
container.innerHTML = `
|
||||
@@ -233,11 +305,10 @@
|
||||
</div>
|
||||
`;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
/* ===== RENDER FERIADOS ===== */
|
||||
|
||||
function renderFeriados() {
|
||||
/* ===== FERIADOS ===== */
|
||||
function renderFeriados() {
|
||||
const container = document.getElementById("feriados");
|
||||
|
||||
container.innerHTML = `
|
||||
@@ -252,16 +323,24 @@
|
||||
</div>
|
||||
`;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
/* ===== INICIAR ===== */
|
||||
/* ===== DADOS ===== */
|
||||
let agendaData = [
|
||||
{ hora: "08:15 – 09:15", titulo: "Evento 1", cor: "azul" },
|
||||
{ hora: "10:00 – 11:00", titulo: "Evento 2", cor: "rosa" }
|
||||
];
|
||||
|
||||
renderCalendario();
|
||||
renderCalendarioGrande();
|
||||
renderAgenda();
|
||||
renderFeriados();
|
||||
</script>
|
||||
let feriadosData = [
|
||||
{ texto: "01 – Ano Novo" }
|
||||
];
|
||||
|
||||
/* ===== INICIAR ===== */
|
||||
atualizarMini();
|
||||
atualizarGrande();
|
||||
renderAgenda();
|
||||
renderFeriados();
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user