Menu
EUR
  • Kostenloser Versand ab 40 €
  • vor 21:00 Uhr bestellt, noch am selben Tag versandt
  • einfache Rückgabe
Wähle deine Sprache
Wähle deine Währung

Mein Konto

Passwort vergessen?

Zuletzt hinzugefügt

Gesamt inkl. MwSt
€0,00
Kostenloser Versand wenn Sie noch €40,00 zusätlich bestellen
0
Vergleichen
Vergleich starten

Dieses Produkt wurde in Ihren Warenkorb gelegt!
(function () { "use strict"; console.log("[video-script] actief, versie check OK"); function isProductPage() { return !!document.querySelector('a[href*="/cart/add/"]') || !!document.querySelector('[itemtype*="schema.org/Product"]'); } if (!isProductPage()) { console.log("[video-script] geen productpagina"); return; } var metaKeywords = document.querySelector('meta[name="keywords"]'); var match = metaKeywords ? /video\s*:\s*(\S+)/i.exec(metaKeywords.content || "") : null; if (!match) { console.log("[video-script] geen video-marker gevonden"); return; } var videoUrl = match[1].replace(/,+$/, ""); console.log("[video-script] video-url:", videoUrl); function biggestImage() { var imgs = Array.prototype.slice.call(document.images); var best = null, bestArea = 0; imgs.forEach(function (img) { var r = img.getBoundingClientRect(); var area = r.width * r.height; if (area > bestArea && r.width > 100 && r.height > 100) { best = img; bestArea = area; } }); console.log("[video-script] grootste afbeelding:", best, bestArea); return best; } function insertVideo() { if (document.getElementById("ls-product-video")) return true; var anchor = biggestImage(); if (!anchor) return false; var video = document.createElement("video"); video.id = "ls-product-video"; video.src = videoUrl; video.autoplay = true; video.muted = true; video.loop = true; video.playsInline = true; video.setAttribute("muted", ""); video.setAttribute("playsinline", ""); video.style.width = "100%"; video.style.maxWidth = anchor.offsetWidth ? anchor.offsetWidth + "px" : "100%"; video.style.display = "block"; video.style.marginTop = "8px"; anchor.insertAdjacentElement("afterend", video); console.log("[video-script] video ingevoegd"); return true; } if (insertVideo()) return; var tries = 0; var timer = setInterval(function () { tries++; if (insertVideo() || tries > 20) { clearInterval(timer); console.log("[video-script] gestopt na", tries, "pogingen"); } }, 300); })();