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
// GET - $grupo e seus programas | |
$JsonParam = '[ | |
{ | |
"name":"consulta_grupos_programas", | |
"type":"input", | |
"dataType":"temptable", | |
"value":{ | |
"name":"consulta_grupos_programas", | |
"fields":[ |
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
// GET - codusuario + grupos - fazer match entre as parametros | |
$JsonParam = '[ | |
{ | |
"name":"consulta_grupos", | |
"type":"input", | |
"dataType":"temptable", | |
"value":{ | |
"name":"consulta_usuario", | |
"fields":[ |
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
// GET - $grupo e lista programas | |
$JsonParam = '[ | |
{ | |
"name":"consulta_grupos_programas", | |
"type":"input", | |
"dataType":"temptable", | |
"value":{ | |
"name":"consulta_grupos_programas", | |
"fields":[ |
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
// GET - consulta de usuários | |
$JsonParam = '[ | |
{ | |
"name":"consulta_usuario", | |
"type":"input", | |
"dataType":"temptable", | |
"value":{ | |
"name":"consulta_usuario", | |
"fields":[ |
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
<div id="myModal" class="modal fade" role="dialog"> | |
<form method="POST" id="addUsuario" enctype="multipart/form-data"> | |
<div class="modal-dialog modal-lg"> | |
<!-- Modal content--> | |
<div class="modal-content"> | |
<div class="modal-header"> | |
<button type="button" class="close" data-dismiss="modal">×</button> | |
<h4 class="modal-title">Cadastro de Login SGA</h4> | |
</div> | |
<div class="modal-body"> |
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
function getparams(url){ | |
let regex = /[^=\]]+(?=&)/g; | |
// void broken code add a & final url | |
let str = url + '&'; | |
let match = regex.exec(str)[0]; | |
return match | |
} | |
console.log(getparams('https://www.youtube.com/watch?v=z_DNPipPdUA&t=1900s')) | |
console.log(getparams('https://www.youtube.com/watch?v=uzUoGD1G6LU&list=RDuzUoGD1G6LU&start_radio=1&rv=z_DNPipPdUA')) |
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
// evita adicionar o mesmo item no carrinho, apenas increment quantidade | |
const cart = [] | |
function addToCart(product){ | |
// get index se o item tem no carrinho | |
const checkCartItem = cart.findIndex(pro => pro.id === product.id) | |
if(checkCartItem > -1){ | |
// item existe apenas increment quant |
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> | |
<html lang="en" style="color-scheme: dark"> | |
<head> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<title>Chek Age Number</title> | |
</head> | |
<body> | |
<input type="number" /> | |
<p></p> |
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 loadTime = function(){ | |
setTimeout(function(){ | |
var perfData = window.performance.timing; | |
var EstimatedTime = (perfData.loadEventEnd - perfData.navigationStart); | |
console.clear(); | |
console.log(EstimatedTime); | |
console.log(EstimatedTime+" milliseconds"); |
NewerOlder