404 Error
The content you're looking for can't be found.
{
bannerBlock += block.offsetWidth
});
let bannerLength = bannerBlock
console
.log(bannerBlock)
console
.log(bannerLength)
document
.documentElement
.style
.setProperty('--bannerBlockLength', `${bannerBlock}px`);
document.documentElement.style.setProperty('--bannerBlockTime', `${
(bannerBlock / 40)
}s`);
function extendBanner() {
if (bannerLength < (screen.width + bannerBlock)) {
textBlock.forEach(block => {
console.log(block.innerHTML)
// add the newly created element and its content into the DOM
banner.appendChild(block.cloneNode(true));
// banner.querySelector('a:last-child').innerHTML = block.innerHTML
// banner.querySelector('a:last-child').href = block.href
});
bannerLength += bannerBlock;
console.log(bannerLength)
extendBanner()
}
}
extendBanner()
console.log(bannerLength)
© 2023 All rights reservedTerms of ServicePrivacy PolicyShipping PolicyRefund Policy
Website designed & built by Kelapa Creative