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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<title>Document</title> | |
</head> | |
<body> | |
<input id="myInput" type="file" multiple /> | |
<button type="click" id="btn">CLICK</button> |
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 const generateCode = (nombre)=> { | |
//OBTENIENDO PARTE DEL NOMBRE DE LA PERSONA | |
var primerNombre = "" | |
var arrayNombre = nombre.split(" "); | |
var nombreConEspacios = arrayNombre.length; | |
if (nombreConEspacios > 1) { | |
primerNombre = arrayNombre[0] | |
} | |
const abecedario = ["ww","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","$","&","#","@"]; |
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 imageBinary = null | |
const changeImagenUpdate = (e) => { | |
e.preventDefault(); | |
const imageSelected = e.target.files[0]; | |
const reader = new FileReader(); | |
reader.readAsDataURL(imageSelected); | |
reader.onload = e => { | |
e.preventDefault(); | |
imageBinary = e.target.result |
NewerOlder