KPN Gift Card

product__topuptitle

brand__buyseotext_mobilephonecredit

check icon product__instant
check icon product__email_delivery

shop__no_products

cart__payment_methods

product__supported_crypto
translation missing (payment__bybit)
translation missing (payment__paybisapplepay)
translation missing (payment__paybiscreditcard)
translation missing (payment__paybisgooglepay)
translation missing (payment__paybisbanktransfer)
'); doc.close(); var initialHeight = ''; var showMoreText = (window.coinsbee && window.coinsbee.UTILS && window.coinsbee.UTILS.i18n) ? window.coinsbee.UTILS.i18n.translate('buy_gift_card__show_more') : 'Show more'; iframe.onload = function () { var iframeBody = iframe.contentWindow.document.body; initialHeight = iframeBody.scrollHeight + 'px'; }; var limitText = function (selector) { var elements = iframe.contentWindow.document.querySelectorAll(selector); Array.from(elements).forEach(function (element) { var text = element.textContent.trim(); var maxLength = 220; if (text.length > maxLength) { var truncatedText = text.substring(0, maxLength).replace(/\s+\S*$/, ''); truncatedText = truncatedText.replace(/[,\.]*$/, '') + '...'; var showMoreLink = document.createElement('a'); showMoreLink.textContent = showMoreText; showMoreLink.href = '#'; showMoreLink.style.textDecoration = 'underline'; showMoreLink.style.color = '#767a81'; showMoreLink.style.paddingLeft = '10px'; var hiddenSpan = document.createElement('span'); hiddenSpan.classList.add('hidden'); hiddenSpan.textContent = text.substring(truncatedText.length - 3, text.length); element.textContent = truncatedText; element.appendChild(hiddenSpan); element.appendChild(showMoreLink); var expanded = false; showMoreLink.addEventListener('click', function (event) { event.preventDefault(); if (!expanded) { expanded = true; element.textContent = text; showMoreLink.remove(); hiddenSpan.remove(); iframe.style.height = initialHeight; } }); } }); }; iframe.addEventListener('load', function () { setTimeout(function () { limitText('body > div'); var iframeBody = iframe.contentWindow.document.body; iframe.style.height = iframeBody.scrollHeight + 'px'; }, 0); }); window.addEventListener('resize', function () { try { var iframeBody = iframe.contentWindow.document.body; iframe.style.height = iframeBody.scrollHeight + 'px'; } catch (e) {} }); } }; }); Alpine.data('shareUrl', function () { return { showAlert: false, copyUrl() { const selectedAmount = document.getElementById('product-amount'); const selectedAmountOption = selectedAmount.options[selectedAmount.selectedIndex]; const productId = selectedAmountOption.getAttribute('mdb-coinsbee-id'); const selectedRegion = document.getElementById('region-select'); const selectedRegionOption = selectedRegion.options[selectedRegion.selectedIndex]; const region = selectedRegionOption.value; const { origin, pathname, search } = window.location; const searchParams = new URLSearchParams(search); searchParams.set('c', region); searchParams.set('id', productId); const url = `${origin}${pathname}?${searchParams.toString()}`.toLowerCase(); navigator.clipboard.writeText(url).catch(() => { const input = document.createElement('input'); input.value = url; document.body.appendChild(input); input.select(); document.execCommand('copy'); document.body.removeChild(input); }); this.showAlert = true; setTimeout(() => { this.showAlert = false; }, 3000); } }; }); });