-
-
Save armenio/a5a1144c99d30f3bd7e2 to your computer and use it in GitHub Desktop.
Alterar as cores dos i´s de uma página
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
var letras = ['i', 'I', 'í', 'Í', 'ï', 'Ï']; | |
$('*').each(function(){ | |
var text = $(this).text(); | |
var html = $(this).html(); | |
if( html == text ){ | |
for( i in letras ){ | |
text = text.replace(letras[i], '<span style="color: orange !important; display: inline !important; margin: 0 !important; padding: 0 !important; border: none !important; background: transparent !important;">' + letras[i] + '</span>'); | |
$(this).html(text); | |
} | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment