-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.min.js
1 lines (1 loc) · 2.17 KB
/
index.min.js
1
const inputId=document.getElementById("grocery"),btn=document.querySelector(".btn"),inputpass=document.querySelector(".passshow"),btncopy=document.querySelector(".btn-copy");let numC=9;const profanityList=["careCoño","Hijueputa","Marica","Pendejo","Gorrón","Malparido","Sapoperro","Perro","jijipueta","SetentaHijupueta","tripleHpta","CatreHpta","DobleHpta","CareePuto","Zunga","Mierdero","Arrastrado","Atolondrado","Atulampado","Baboso","Balurdo","Bazofia","Bobalicón","Bobo","Cacorro","Calientahuevos","Caraemonda","CareChimba","Cochino","Corroncho","Coscorria","Culipronta","Flojo","careFufa","Fufurufa","Garbimba","Garnupia","Gonorrea","Gonorrienta","Guache","Guaricha","Guisa","Gurrupleta","Hijueputa","Hijodelasmilputas","pirobo","guevon","Guevetas","Pelmazo","Petardo","Tarado","Tarupido","Tarilas","Sopenco","lameCulos","Carechimba","gañapo","PerroJijijueputa","Chiroso","Remalparido","Decrepito","Sarna","CHupaPitos","Apelotardado","AbortoEmico","Caremierda","Marrana","Cerdo","Desgraciado","Careloco"],numerosArray=[0,1,2,3,4,5,6,7,8,9],caracteresEspecialesArray=["!","@","#","$","%","&","*","+","-","=","?"];function constructionPass(){const o=looping(profanityList);let a=looping(profanityList);for(;a===o;)a=looping(profanityList);generatePass(o,upperCasse(a),randomCar()),btncopy.addEventListener("click",copytext)}function looping(o){const a=o.length;return o[Math.floor(Math.random()*a)]}function upperCasse(o){const a=o.length;let r="";for(let e=0;e<a;e++)Math.random()<.5?r+=o[e].toUpperCase():r+=o[e];return r}btn.addEventListener("click",constructionPass);let newArrayf=()=>{return[...numerosArray,...caracteresEspecialesArray]};function randomCar(){const o=newArrayf();let a="";for(let r=0;r<numC;r++){a+=o[Math.floor(Math.random()*o.length)]}return a}function generatePass(o,a,r){const e=[];e.push(o,a,r);const t=e.join("");inputpass.value=t}function copytext(){const o=document.querySelector(".push");navigator.clipboard.writeText(inputpass.value).then(function(){o.style.visibility="visible",setTimeout(function(){o.style.opacity="1"},100),setTimeout(function(){o.style.opacity="0",o.style.visibility="hidden"},500)}).catch(function(o){console.error("Error al copiar: ",o)})}constructionPass();