Jesús Santana

VENDEDOR

787-513-1860Email
Kia
Hyundai
Nissan
Mitsubishi
Mazda
(function(){ const JSANTANA = { phone:"787-513-1860", email:"[email protected]", cardUrl:"https://jesussantana.miperfilplus.com/", vcfFile:"JesusSantana.vcf" }; function cleanPhone(value){ return String(value || "").replace(/\D/g,""); } function phoneInternational(value){ const digits = cleanPhone(value); if(digits.length === 10){ return "+1" + digits; } if(digits.length === 11 && digits.charAt(0) === "1"){ return "+" + digits; } return digits ? "+" + digits : ""; } function escapeVCF(value){ return String(value || "") .replace(/\\/g,"\\\\") .replace(/\r?\n/g,"\\n") .replace(/,/g,"\\,") .replace(/;/g,"\\;"); } window.jsantanaToggleServices = function(trigger){ const panel = document.getElementById("jsantana-services"); const isOpen = panel.classList.toggle("open"); if(trigger){ trigger.setAttribute("aria-expanded",String(isOpen)); } }; window.jsantanaToggleWithKeyboard = function(event,trigger){ if(event.key === "Enter" || event.key === " "){ event.preventDefault(); window.jsantanaToggleServices(trigger); } }; window.jsantanaSaveVCF = function(){ const lines = [ "BEGIN:VCARD", "VERSION:3.0", "N:Santana;Jesús;;;", "FN:" + escapeVCF("Jesús Santana"), "ORG:" + escapeVCF("Toñito Auto Parts and Body"), "TITLE:" + escapeVCF("Vendedor de Piezas de Auto"), "TEL;TYPE=WORK,VOICE:" + phoneInternational(JSANTANA.phone), "TEL;TYPE=CELL,VOICE:" + phoneInternational(JSANTANA.phone), "EMAIL;TYPE=INTERNET:" + escapeVCF(JSANTANA.email), "URL:" + JSANTANA.cardUrl, "END:VCARD" ]; const content = "\uFEFF" + lines.join("\r\n") + "\r\n"; const blob = new Blob( [content], {type:"text/vcard;charset=utf-8"} ); const url = URL.createObjectURL(blob); const link = document.createElement("a"); link.href = url; link.download = JSANTANA.vcfFile; link.style.display = "none"; document.body.appendChild(link); link.click(); document.body.removeChild(link); window.setTimeout(function(){ URL.revokeObjectURL(url); },2000); }; let qrCreated = false; window.jsantanaToggleQR = function(){ const panel = document.getElementById("jsantana-qr-panel"); const isOpen = panel.classList.toggle("open"); if(isOpen && !qrCreated){ const target = document.getElementById("jsantana-qr"); if(typeof QRCode === "undefined"){ target.innerHTML = 'Abrir perfil'; qrCreated = true; return; } new QRCode(target,{ text:JSANTANA.cardUrl, width:150, height:150, colorDark:"#000000", colorLight:"#FFFFFF", correctLevel:QRCode.CorrectLevel.H }); qrCreated = true; } }; window.jsantanaShareCard = async function(){ const shareData = { title:"Jesús Santana | Toñito Auto Parts and Body", text:"Contacto y venta de piezas de auto.", url:JSANTANA.cardUrl }; try{ if(navigator.share){ await navigator.share(shareData); return; } if(navigator.clipboard && window.isSecureContext){ await navigator.clipboard.writeText(JSANTANA.cardUrl); alert("Enlace copiado"); return; } const temp = document.createElement("textarea"); temp.value = JSANTANA.cardUrl; temp.style.position = "fixed"; temp.style.opacity = "0"; document.body.appendChild(temp); temp.focus(); temp.select(); document.execCommand("copy"); document.body.removeChild(temp); alert("Enlace copiado"); }catch(error){ if(error && error.name !== "AbortError"){ window.open(JSANTANA.cardUrl,"_blank","noopener"); } } }; })();

POWERED BY HORUS