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 toggleType = document.querySelectorAll('#toggle-type'); | |
const typeName = document.querySelector('#type-name'); | |
const iconsTigela = document.querySelectorAll('#tigela'); | |
const iconsCopo = document.querySelectorAll('#copo'); | |
const imagesTigela = document.querySelectorAll("#img-tigela") | |
const imagesCopo = document.querySelectorAll("#img-taca") | |
const handleToggleType = (e) => { | |
if (e.target.checked) { |
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
<?php | |
function validaCPF($num_cpf) { | |
// Verifica se está vazio, e se não é caracteres numéricos | |
if(empty($num_cpf) && !is_numeric($num_cpf)) { | |
return false; | |
} | |
// Retorna apenas números | |
$num_cpf = preg_replace("/[^0-9]/is", "", $num_cpf); |