Skip to content

Instantly share code, notes, and snippets.

@lucianobragaweb
Last active February 19, 2022 14:03
Show Gist options
  • Save lucianobragaweb/bf28ddd26b922e6d30e37ccbc62d9b5c to your computer and use it in GitHub Desktop.
Save lucianobragaweb/bf28ddd26b922e6d30e37ccbc62d9b5c to your computer and use it in GitHub Desktop.
Exemplo simples de como criar botões de acessibilidade para aumentar e diminuir o tamanho do texto em elementos do seu site.
function fonte(e){
let elemento = $(".acessibilidade");
let fonte = elemento.css('font-size');
if (e == 'a') {
elemento.css("fontSize", parseInt(fonte) + 1);
} else if('d'){
elemento.css("fontSize", parseInt(fonte) - 1);
}
}
// Para mais detalhes veja este artigo: https://medium.com/p/bdadc6b3b775
@lucianobragaweb
Copy link
Author

Para mais detalhes veja este artigo: https://medium.com/p/bdadc6b3b775

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment