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
//Encapulando o document.querySelector e o document.querySelectorAll para reutilizar código | |
const $ = document.querySelector.bind(document); | |
const $$ = document.querySelectorAll.bind(document); | |
document.addEventListener('DOMContentLoaded', () => { | |
$('#btn-play').addEventListener('click', () => { | |
$('span').innerText = "Aguarde..."; | |
const urlBling = "https://www.bling.com.br/vendas.lojas.virtuais.php"; |
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
document.addEventListener('DOMContentLoaded', () => { | |
document.getElementById('form-edit input[type=submit]').addEventListener('click', (event) => { | |
event.preventDefault(); | |
let formData = new FormData(event.target.closest('form')); | |
const url = '<?php echo BASE_URL ?>home/edit/<?= $_SESSION[md5(BASE_URL) . '_' . 'cLogin'] ?>'; | |
const params = { | |
method: 'POST', | |
body: formData, |
NewerOlder