Last active
February 19, 2022 14:03
-
-
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.
This file contains hidden or 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 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Para mais detalhes veja este artigo: https://medium.com/p/bdadc6b3b775