Puntos de Venta – Trevo

Puntos de Venta Trevo

Ingresa en el buscador tu provincia o ciudad

Puntos de Venta

`; const hasPhoto = (store.foto && store.foto.length > 0); const photoInner = hasPhoto ? `${store.name}` : ''; const photoHtml = `
${photoInner}
`; const contactParts = []; if (store.phone) { const telHref = 'tel:' + store.phone.replace(/\s+/g,''); contactParts.push(` ${store.phone}`); } if (store.instagram) { let ig = store.instagram.trim(); if (ig && !/^https?:\/\//i.test(ig)) { ig = 'https://instagram.com/' + ig.replace(/^@+/, ''); } contactParts.push(``); } if (store.facebook) { let fb = store.facebook.trim(); if (fb && !/^https?:\/\//i.test(fb)) { fb = 'https://facebook.com/' + fb.replace(/^@+/, ''); } contactParts.push(``); } if (store.website) { let url = store.website.trim(); if (url && !/^https?:\/\//i.test(url)) { url = 'https://' + url; } contactParts.push(``); } const contactsHtml = contactParts.length ? `
${contactParts.join('')}
` : ''; card.innerHTML = ` ${photoHtml}

${store.name}

Dirección: ${store.address || ''}

Ciudad: ${store.city || ''}

Provincia: ${store.province || ''}

${contactsHtml} ${actionRowHtml} `; listDiv.appendChild(card); }); } } document.getElementById('search').addEventListener('input', function() { renderStores(this.value.trim().toLowerCase()); }); (async () => { try { // Cargar exclusivamente desde Excel solicitado stores = await loadStoresFromXlsx('/PV/puntos_completo.xlsx'); if (!stores || stores.length === 0) { console.warn('El Excel se cargó pero no devolvió filas válidas.'); } } catch (e) { console.error(e); alert('No se pudo cargar puntos desde el Excel (puntos_completo.xlsx). Verifique que el archivo exista y que se sirva por HTTP.'); stores = []; } renderStores(); })();
Categorías