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
| export function removeSpecialCaracters(text: String): string { | |
| const a = "àáäãâèéëêìíïîòóöôõùúüûñçßÿœæŕśńṕẃǵǹḿǘẍźḧ·/_,:;"; | |
| const b = "aaaaaeeeeiiiiooooouuuuncsyoarsnpwgnmuxzh------"; | |
| const p = new RegExp(a.split("").join("|"), "g"); | |
| return text | |
| .toString() | |
| .toLowerCase() | |
| .replace(p, c => b.charAt(a.indexOf(c))); | |
| } |
This file has been truncated, but you can view the full file.
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
| const cidades = [ | |
| { | |
| codigo_ibge: 5200050, | |
| nome: "Abadia de Goiás", | |
| latitude: -16.7573, | |
| longitude: -49.4412, | |
| capital: false, | |
| codigo_uf: 52, | |
| nome_uf: "GO" | |
| }, |
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
| // Código em parceria com @jroqueweb @raphaelfruneaux | |
| function cssEngine(rule) { | |
| var css = document.createElement('style'); // Creates <style></style> | |
| css.type = 'text/css'; // Specifies the type | |
| if (css.styleSheet) css.styleSheet.cssText = rule; // Support for IE | |
| else css.appendChild(document.createTextNode(rule)); // Support for the rest | |
| document.getElementsByTagName("head")[0].appendChild(css); // Specifies where to place the css | |
| } |
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
| /** | |
| * | |
| * Atualizar animações do google material design lite | |
| * | |
| */ | |
| function updateMaterialEffecs() { | |
| var elements = document.getElementsByClassName('mdl-textfield'); | |
| for (var i = 0; i < elements.length; i++) { | |
| componentHandler.upgradeElement(elements[i]); |