Skip to content

Commit

Permalink
Atualização braba
Browse files Browse the repository at this point in the history
  • Loading branch information
wallacemt committed Mar 6, 2024
1 parent d81b239 commit 0449aba
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<link rel="stylesheet" href="estilos/style.css">
<link rel="stylesheet" href="estilos/media-query.css">
</head>
<body>
<body onload="carregarSem()">
<main>
<i id="icone-menu" class="material-icons" onclick="menu()">menu</i>
<section id="menu">
Expand Down
47 changes: 46 additions & 1 deletion script.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,53 @@ let tituloconteudo3 = document.getElementById('titulo-conteudo-3')
let subtitulo3 = document.getElementById('subtitulo-3');
let link3 = document.getElementById('link-3');

let taAparecendo = 0


//funcao que carrega o conteudo correspondente ao dia da semana
function carregarSem(){
let dataAtual = new Date();

let diaSem = dataAtual.getDay();

let diasDaSemana = ['Domingo', 'Segunda', 'Terça', 'Quarta', 'Quinta', 'Sexta', 'Sabado'];

console.log(diaSem);

console.log("Hoje è " + diasDaSemana[diaSem] + " boa diverssão.");

if(diasDaSemana[diaSem] == "Segunda"){
document.addEventListener('DOMContentLoaded', butseg());

}else if(diasDaSemana[diaSem] == "Terça"){
document.addEventListener('DOMContentLoaded', butter());


}else if(diasDaSemana[diaSem] == "Quarta"){
document.addEventListener('DOMContentLoaded', butqua());

}else if(diasDaSemana[diaSem] == "Quinta"){
document.addEventListener('DOMContentLoaded', butqui());

}else if(diasDaSemana[diaSem] == "Sexta"){
document.addEventListener('DOMContentLoaded', butsex());

}else if(diasDaSemana[diaSem] == "Sabado"){
document.addEventListener('DOMContentLoaded', butsab());

}else{
document.addEventListener('DOMContentLoaded', butdom());

}

}







let taAparecendo = 0
function menu(){
let menu = document.getElementById('menu')
if(menu.style.display == 'block'){
Expand Down

0 comments on commit 0449aba

Please sign in to comment.