'<div class="t706__cartwin-prodamount-currency">' + window.tcart['currency_txt_r'].trim() + '</div>';
4320 * fix IOS11 cursor bug + general IOS background scroll 4322function tcart__lockScroll() { 4324 window.t_cart__isiOS && 4325 window.t_cart__iOSMajorVersion === 11 && 4327 !document.body.classList.contains('t-body_scroll-locked') 4330 typeof window.pageYOffset !== 'undefined' 4331 ? window.pageYOffset 4332 : (document.documentElement || document.body.parentNode || document.body).scrollTop; 4333 document.body.classList.add('t-body_scroll-locked'); 4334 document.body.style.top = '-' + bodyScrollTop + 'px'; 4335 document.body.setAttribute('data-popup-scrolltop', bodyScrollTop); 4339function tcart__unlockScroll() { 4341 window.t_cart__isiOS && 4342 window.t_cart__iOSMajorVersion === 11 && 4344 !document.body.classList.contains('t-body_scroll-locked') 4346 var bodyScrollTop = document.body.getAttribute('data-popup-scrolltop'); 4347 document.body.classList.remove('t-body_scroll-locked'); 4348 document.body.style.top = ''; 4349 document.body.removeAttribute('data-popup-scrolltop'); 4350 window.scrollTo(0, bodyScrollTop); 4354function tcart__clearProdUrl() { 4355 var currentUrl = window.location.href; 4356 // проверяет стандартный product url 4357 var indexToRemove = currentUrl.indexOf('#!/tproduct/'); 4358 if (window.isiOS && indexToRemove < 0) { 4359 indexToRemove = currentUrl.indexOf('%23!/tproduct/'); 4360 if (indexToRemove < 0) { 4361 indexToRemove = currentUrl.indexOf('#%21%2Ftproduct%2F'); 4364 if (indexToRemove > -1) { 4367 window.history.replaceState('', '', currentUrl.substring(0, indexToRemove)); 4371 // проверяет product url каталога 4372 var indexToRemove = currentUrl.indexOf('/tproduct/'); 4373 if (indexToRemove < 0) { 4374 indexToRemove = currentUrl.indexOf('%2Ftproduct%2F'); 4376 if (indexToRemove > -1) { 4378 var urlBeforePopupOpen = window.urlBeforePopupOpen; 4379 if (urlBeforePopupOpen) { 4381 window.history.pushState(null, null, urlBeforePopupOpen); 4387function tcart__onFuncLoad(funcName, okFunc, time) { 4388 if (typeof window[funcName] === 'function') { 4391 var startTime = Date.now(); 4392 var error = new Error(funcName + ' is undefined'); 4393 var callbackError = function () { 4396 setTimeout(function checkFuncExist() { 4397 var currentTime = Date.now(); 4398 if (typeof window[funcName] === 'function') {