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
async function getToken(key, options) { | |
let { default: JsSHA } = await import( | |
"https://cdn.skypack.dev/pin/[email protected]/mode=imports,min/optimized/jssha.js" | |
); | |
options = { | |
period: 30, | |
algorithm: "SHA-1", | |
digits: 6, | |
timestamp: Date.now(), | |
...options, |
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
/** consumidor_nascimento **/ | |
pattern = /^(?:(?:31([-/.]?)(?:0[13578]|1[02]))\1|(?:(?:29|30)([-/.]?)(?:0[1,3-9]|1[0-2])\2))(?:(?:1[6-9]|[2-9]\d)\d{2})$|^(?:29([-/.]?)02\3(?:(?:(?:1[6-9]|[2-9]\d)(?:0[48]|[2468][048]|[13579][26]))))$|^(?:0[1-9]|1\d|2[0-8])([-/.]?)(?:(?:0[1-9])|(?:1[0-2]))\4(?:(?:1[6-9]|[2-9]\d)\d{2})$/i | |
if (!pattern.test(dados.valor)) { | |
this[dados.formulario].consumidor[dados.input] = 'Data inválida' | |
return | |
} | |
let day = Number(dados.valor.substring(0, 2)) | |
let month = Number(dados.valor.substring(2, 4)) | |
let year = Number(dados.valor.substring(4, 8)) |
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
API que verifica DNS / MX | |
- https://duckstack.herokuapp.com/validator/email | |
-> ``` | |
{ | |
"email":"[email protected]" | |
} | |
``` | |
API que verifica Pattern | |
- https://verify-email.flourigh.workers.dev/validator/email |
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
<?php session_start(); | |
$siteprot = $_SERVER['REQUEST_SCHEME'] . '://'; | |
$sitehost = $_SERVER['HTTP_HOST']; | |
$siteuri = $_SERVER['REQUEST_URI']; | |
if(!$_COOKIE['SITEINDEX']) { | |
setcookie('SITEINDEX', max(explode('/', dirname($_SERVER['PHP_SELF'])))); | |
$siteindex = '/' . max(explode('/', dirname($_SERVER['PHP_SELF']))) . '/'; | |
} else { |
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
<!DOCTYPE html> | |
<meta charset='utf-8' /> | |
<title>DkTeclive</title> | |
<meta name='description' content='Desenvolvedor Web com diploma na instituição Estácio de Sá focado em linguagem BackEnd e admirado por um FrontEnd com design limpo e agradável.' /> | |
<base href='https://dkteclive.github.io' /> | |
<link rel='canonical' href='https://dkteclive.github.io' /> | |
<link rel='icon' href='https://dkteclive.github.io/favicon.ico' /> | |
<meta name='viewport' content='width=device-width, initial-scale=1, user-scalable=no' /> | |
<script src="https://dkteclive.github.io/jquery.js"></script> |