return params.toString();
5416function t706_onSuccessCallback() { 5417 var products = document.querySelector('.t706__cartwin-products'); 5418 var cartBottom = document.querySelector('.t706__cartwin-bottom'); 5419 var cartForm = document.querySelector('.t706 .t-form__inputsbox'); 5421 if (products) t706_slideUp(products, 10); 5422 if (cartBottom) t706_slideUp(cartBottom, 10); 5424 /* для мобильноq корзины после сабмита заменяем блок "Сумма" на блок "Итоговая сумма" */ 5425 if (window.tcart_isMobile) { 5426 var totalAmount = cartForm.querySelector('.t706__cartwin-totalamount-wrap'); 5427 var prodamount = document.querySelector('.t706__cartpage-prodamount'); 5428 if (prodamount && totalAmount) prodamount.outerHTML = totalAmount.outerHTML; 5430 t706_slideUp(cartForm, 700); 5434 /*fix IOS11 cursor bug + general IOS background scroll*/ 5435 tcart__unlockScroll(); 5439function t706_slideUp(target, duration) { 5440 if (!target) return; 5441 var targetDuration = !duration && duration !== 0 ? 500 : duration; 5442 target.style.transitionProperty = 'height, margin, padding'; 5443 target.style.transitionDuration = targetDuration + 'ms'; 5444 target.style.boxSizing = 'border-box'; 5445 target.style.height = target.offsetHeight + 'px'; 5446 target.style.overflow = 'hidden'; 5447 target.style.height = '0'; 5448 target.style.paddingTop = '0'; 5449 target.style.paddingBottom = '0'; 5450 target.style.marginTop = '0'; 5451 target.style.marginBottom = '0'; 5452 setTimeout(function () { 5453 target.style.display = 'none'; 5454 target.style.height = ''; 5455 target.style.paddingTop = ''; 5456 target.style.paddingBottom = ''; 5457 target.style.marginTop = ''; 5458 target.style.marginBottom = ''; 5459 target.style.overflow = ''; 5460 target.style.transitionDuration = ''; 5461 target.style.transitionProperty = ''; 5465// Функция временно продублирована из tilda-scrits для избежания проблем с кэшем 5466function t_triggerEvent(el, eventName) { 5469 if (document.createEvent) { 5470 event = document.createEvent('HTMLEvents'); 5471 event.initEvent(eventName, true, false); 5472 } else if (document.createEventObject) { 5473 event = document.createEventObject(); 5474 event.eventType = eventName; 5477 event.eventName = eventName; 5479 if (el.dispatchEvent) { 5480 el.dispatchEvent(event); 5481 } else if (el.fireEvent) { 5482 el.fireEvent('on' + event.eventType, event); 5483 } else if (el[eventName]) { 5485 } else if (el['on' + eventName]) { 5486 el['on' + eventName](); 5490function tcart__getRootZone() { 5491 const allrecords = document.getElementById('allrecords'); 5492 const rootZone = allrecords && allrecords.getAttribute('data-tilda-root-zone'); 5493 return rootZone || 'com';