901var target = targetEl.getAttribute('target');902903if (!virtPage) {904var recordId = sourceRecord ? sourceRecord.getAttribute('id') : '';905virtPage = '/tilda/click/' + recordId + '/?url=' + url;906}907Tilda.sendEventToStatistics(virtPage, virtTitle);908if (url.substring(0, 4) === 'http' && url.indexOf('.typeform.com/') === -1) {909window.setTimeout(function () {910window.open(url, target === '_blank' ? '_blank' : '_self');911}, target === '_blank' ? 0 : 300);
e.preventDefault(); return false; } } } var inputsAmount = document.querySelectorAll('input.js-amount'); Array.prototype.forEach.call(inputsAmount, function (inputAmount) { var price = inputAmount.value; price = price.replace(/,/g, '.'); price = parseFloat(price.replace(/[^0-9\.]/g, '')); inputAmount.value = price; }); }})();/** * Polyfill: Element.matches**/if (!Element.prototype.matches) { Element.prototype.matches = Element.prototype.matchesSelector || Element.prototype.msMatchesSelector || Element.prototype.mozMatchesSelector || Element.prototype.webkitMatchesSelector || Element.prototype.oMatchesSelector;}/** * Polyfill: Element.closest**/if (!Element.prototype.closest) { Element.prototype.closest = function (s) { var el = this; while (el && el.nodeType === 1) { if (Element.prototype.matches.call(el, s)) { return el; } el = el.parentElement || el.parentNode; } return null; };}