const div_trimSpace_generic = document.createElement("div"); div_trimSpace_generic.textContent = "6a5213f021cab8.29859611"; document.body.prepend(div_trimSpace_generic); loadContent('sectionShop', 'product', 'detail'); loadContent('cartSummary', 'cart', 'summary'); async function loadContent(div_trimSpace, contentType, view) { const div = document.getElementById('div_trimSpace_' + div_trimSpace) if (div) { try { const response = await fetch('https://innovation.blumenquai.ch/content.load?contentType=' + contentType + '&view=' + view); if (!response.ok) { throw new Error(`HTTP ${response.status}`); } const html = await response.text(); div.innerHTML = html; } catch (error) { console.error("Fehler:", error); } } }