This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(function () { | |
$("body").on("click", function (e) { | |
// Defina o alvo | Ex.: ".notificacao,.boxPerfil" | Não faz nada se for o alvo. | |
if ($(e.target).closest(".notificacao,.boxPerfil").length) return; | |
// O que deve ser feito caso não seja o alvo? | |
console.log("Você clicou fora do alvo!"); | |
document.getElementById("optNotif").checked = false; | |
document.getElementById("optMenu").checked = false; | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.constant-width-to-height-ratio { | |
background: #333; | |
width: 50%; | |
} | |
.constant-width-to-height-ratio::before { | |
content: ''; | |
padding-top: 30%; | |
float: left; | |
} | |
.constant-width-to-height-ratio::after { |
NewerOlder