Некодим логотипНекодим
МодификацииПубликацииНекодИИмЦены
Некодим логотипНекодим

© 2020-2026 Некодим

Готовые модификации для вашего сайта. Улучшайте функциональность и дизайн без программирования.

Компания

  • Контакты
  • Публичная оферта
  • Политика конфиденциальности
  • Согласие на обработку данных
  • Лицензионное соглашение
  • Реферальная программа

Полезное

  • Модификации
  • Публикации
  • Каталог блоков Tilda
  • MCP для агентов
  • Журнал изменений
  • Доска почёта

Личный кабинет

  • Вход
  • Регистрация
  • Цены
Журнал измененийИстория GitФайлыTilda MCP
Каталог файлов

tilda-members-store-other.js

Код файла
Версия от 04.12.2026, 04:03:53 МСК
Оригинал на CDNСнимок 56c3b845Полный текст
1501			textStyle += `font-size: ${mainPage.textSize};\n`;1502		}1503 1504		if (mainPage.backgroundImage) {1505			textStyle += `background-image: url(${mainPage.backgroundImage});\n`;1506			if (mainPage.useBackgroundPattern) {1507				textStyle += 'background-size: auto;\n';1508				textStyle += 'background-repeat: repeat;\n';1509			} else {1510				textStyle += 'background-position: center;\n';1511				textStyle += 'background-size: cover;\n';1512
История файла и сравнение версий
  • 04.12.2026, 04:03:53 · 56c3b845
textStyle += 'background-repeat: no-repeat;\n';
1513 }
1514 }
1515
1516 textStyle += '}\n';
1517 }
1518
1519 if (mainPage.backgroundColor && mainPage.backgroundImage) {
1520 textStyle += '.tlk-app-bg {\n';
1521 textStyle += ` background-color: rgba(${tmst__hexToRgb(mainPage.backgroundColor).join(', ')}, ${tma__getOpacity(mainPage.backgroundColorOpacity)});\n`;
1522 textStyle += '}\n';
1523 }
1524
1525 textStyle += '.tlk-resources__wrap, \n';
1526 textStyle += '.tmst-orders-list__item, \n';
1527 textStyle += '.tmst-addresses__card, \n';
1528 textStyle += '.tmst-purchased__product, \n';
1529 textStyle += '.tmst-order-details__main-info-content, .tmst-order-details__header, \n';
1530 textStyle += '.tmst-profile-content-wrapper, \n';
1531 textStyle += '.tmst-main__card:not(.tmst-main__active-orders-card) {\n';
1532
1533 if (mainPage.boxBackgroundColor || mainPage.boxBackgroundColorOpacity) {
1534 const boxBackgroundColor = mainPage.boxBackgroundColor
1535 ? tmst__hexToRgb(mainPage.boxBackgroundColor).join(', ')
1536 : '255, 255, 255';
1537
1538 textStyle += ` background-color: rgba(${boxBackgroundColor}, ${tma__getOpacity(mainPage.boxBackgroundColorOpacity)});\n`;
1539 }
1540
1541 if (mainPage.boxRadius) {
1542 textStyle += ` border-radius: ${mainPage.boxRadius};\n`;
1543 }
1544
1545 if (mainPage.boxShadowColor || mainPage.boxShadowOpacity) {
1546 const boxShadowColor = mainPage.boxShadowColor
1547 ? tmst__hexToRgb(mainPage.boxShadowColor).join(', ')
1548 : '255, 255, 255';
1549 const boxShadowColorOpacity = tma__getOpacity(mainPage.boxShadowOpacity);
1550 const rgbaColor = `rgba(${boxShadowColor}, ${boxShadowColorOpacity})`;
1551
1552 textStyle += ` border: 1px solid ${rgbaColor};\n`;
1553 }
1554
1555 if (mainPage.textAlign === 'center') {
1556 textStyle += ' text-align: center;\n';
1557 } else if (mainPage.textAlign === 'right') {
1558 textStyle += ' text-align: right;\n';
1559 }
1560
1561 if (mainPage.textSize) {
1562 textStyle += ` font-size: ${mainPage.textSize};\n`;
1563 }
1564
1565 textStyle += '}\n';
1566
1567 if (mainPage.textSizeMobile) {
1568 textStyle += '@media screen and (max-width: 767px) {\n';
1569 textStyle += ' .tlk-resources__wrap {\n';
1570 textStyle += ` font-size: ${mainPage.textSizeMobile};\n`;
1571 textStyle += ' }\n';
1572 textStyle += '}\n';
1573 }
1574
1575 if (mainPage.textColor) {
1576 textStyle +=
1577 '#allrecords, #allrecords [data-field="tlk-link"], [data-field="tlk-link"], .tlk-resources__title, .tlk-resources__empty-text {\n';
1578 textStyle += ` color: ${mainPage.textColor};\n`;
1579 textStyle += '}\n';
1580 textStyle += '.tlk-resources__title span {\n';
1581 textStyle += ` color: rgba(${tmst__hexToRgb(mainPage.textColor).join(', ')}, 0.6);\n`;
1582 textStyle += '}\n';
1583 textStyle += '.tlk-resources__empty-image line, .tlk-resources__empty-image polyline {\n';
1584 textStyle += ` stroke: ${mainPage.textColor};\n`;
1585 textStyle += '}\n';
1586 }
1587
1588 if (mainPage.textHoverColor) {
1589 textStyle += '#allrecords [data-field="tlk-link"]:hover, [data-field="tlk-link"]:hover {\n';
1590 textStyle += ` color: ${mainPage.textHoverColor};\n`;
1591 textStyle += '}\n';
1592 }
1593
1594 document.head.insertAdjacentHTML(
1595 'beforeend',
1596 `<style id="tlk-pagelist-style" type="text/css">${textStyle}</style>`
1597 );
1598}
1599
1600/**
Предыдущие 100 строкСледующие 100 строк