document.addEventListener("DOMContentLoaded", function() { const container = document.getElementById("upgates-auction-container"); if (!container) return; // Simulace stažení dat z vašeho API fetch('https://vase-api.cz/aktualni-aukce') .then(response => response.json()) .then(data => { let html = '
'; data.forEach(item => { html += `
${item.title}

${item.title}

Aktuální příhoz: ${item.currentBid} Kč

Přihodit v aukci
`; }); html += '
'; container.innerHTML = html; }) .catch(error => { container.innerHTML = 'Aukce se nepodařilo načíst.'; }); });