Некодим© 2020-2026 Некодим
Готовые модификации для вашего сайта. Улучшайте функциональность и дизайн без программирования.
Журнал изменений История Git Файлы Tilda MCP Каталог файловtilda-catalog-1.2.js Следить за файлом 9901 if (window.innerWidth > 960 && searchSort && window.getComputedStyle(searchSort).display === 'none') {9902 // TODO ST-2949_1: missing properties on Window/DOM/data objects (TS2339, TS2551)9903 // @ts-expect-error ST-2949_19904 searchSort.style.display = '';9905 }9906 // TODO: else on mobile9907 9908 // For blocks with sidebars9909 // If filters are in sidebar check position in DOM and replace properly9910 // No worries, it works only once on window.width > or < 9609911 const filtersLocation = opts?.filtersStyles?.filtersLocation;История файла и сравнение версий if (!opts.sidebar || filtersLocation === 'above_cards') return;
9914 var controlsWrapper = rec.querySelector('.t-catalog__filter__controls-wrapper');9915 var contWithFiler = rec.querySelector('.js-catalog-cont-w-filter');9918 // TODO ST-2949_1: missing properties on Window/DOM/data objects (TS2339, TS2551)9919 // @ts-expect-error ST-2949_19920 var isSearchOnTop = searchSort.parentNode.classList.contains('js-catalog-cont-w-filter');9922 if (window.innerWidth < 960) {9923 if (isSearchOnTop) {9924 // TODO ST-2949_5: assignability, arguments, calls, return types (TS2345, TS2322, TS2554, TS2769, TS2740, TS2739, TS2353, TS2349, TS2355, TS2366, TS2774, TS18046)9925 // @ts-expect-error ST-2949_59926 t_catalog__removeElement(searchSort);9927 // TODO ST-2949_3: null / undefined (TS18047, TS18048, TS2531, TS2722, TS2454, TS2538)9928 // @ts-expect-error ST-2949_39929 controlsWrapper.insertAdjacentElement('beforeend', searchSort);9931 } else if (!isSearchOnTop) {9932 // TODO ST-2949_5: assignability, arguments, calls, return types (TS2345, TS2322, TS2554, TS2769, TS2740, TS2739, TS2353, TS2349, TS2355, TS2366, TS2774, TS18046)9933 // @ts-expect-error ST-2949_59934 t_catalog__removeElement(searchSort);9935 // TODO ST-2949_3: null / undefined (TS18047, TS18048, TS2531, TS2722, TS2454, TS2538)9936 // @ts-expect-error ST-2949_39937 contWithFiler.insertAdjacentElement('afterbegin', searchSort);9942 /* for listStyle = 'list' */9943 // TODO ST-2949_2: implicit any on params, vars, this, and index access (TS7006, TS7005, TS7008, TS7034, TS2683, TS7053, TS7015)9944 // @ts-expect-error ST-2949_29945 function t_catalog_get_productCard_horizontalStructure(product, edition, options, link, isRelevantsShow, rec) {9949 ((product.gallery[0] && product.gallery[0] !== '') || (product.gallery[0] && product.gallery[0] !== '')) &&9951 options.prodCard.hasImg9954 '<div class="t-catalog__card__imgwrapper_column"' +9955 (options.imageWidth && options.imageWidth !== '0' ? ' style="width: ' + options.imageWidth + 'px;"' : '') +9958 t_catalog_get_productCard_img_html(product, options) +9964 '<div class="t-catalog__card__contentwrapper">' +9965 // TODO ST-2949_5: assignability, arguments, calls, return types (TS2345, TS2322, TS2554, TS2769, TS2740, TS2739, TS2353, TS2349, TS2355, TS2366, TS2774, TS18046)9966 // @ts-expect-error ST-2949_59967 t_catalog_get_horizontalProductCard_txt_html(product, options, link, edition, isRelevantsShow, rec) +9968 t_catalog_get_horizontalProductCard_priceAndButtons(product, options, edition, isRelevantsShow, rec) +9974 // TODO ST-2949_2: implicit any on params, vars, this, and index access (TS7006, TS7005, TS7008, TS7034, TS2683, TS7053, TS7015)9975 // @ts-expect-error ST-2949_29976 function t_catalog_get_horizontalProductCard_txt_html(product, options, link, edition) {9977 var titleName = product.title;9978 if (options.isTitleClip) {9979 titleName = product.title.length > 50 ? product.title.slice(0, 50) + '...' : product.title;9983 const alignClass = options.align === 'center' ? 't-catalog__card__text_align_center' : '';9985 if (product.title) {9986 const fieldId = edition.uid;9987 const titleFieldAttr =9988 product.editions.length === 1 && fieldId9989 ? ' field="st_title__' + fieldId + '" data-redactor-toolbar="no"'9992 '<div class="t-catalog__card__title t-typography__title t-name t-name_md js-catalog-prod-name js-product-name ' +9995 (!options.title_typo && Object.prototype.hasOwnProperty.call(options.typo, 'title')9996 ? ' data-auto-correct-font-size="rem" style="' + options.typo.title + '"'