Каталог файловtilda-members-resources-pageslist.js
601 textStyle += '.tlk-resources__empty-image line, .tlk-resources__empty-image polyline {\n';602 textStyle += ' stroke: ' + mainPage.textColor + ';\n';603 textStyle += '}\n';604 }605 606 if (mainPage.textHoverColor) {607 textStyle += '#allrecords [data-field="tlk-link"]:hover, [data-field="tlk-link"]:hover {\n';608 textStyle += ' color: ' + mainPage.textHoverColor + ';\n';609 textStyle += '}\n';610 }611 612
История файла и сравнение версий
document.head.insertAdjacentHTML(
614 '<style id="tlk-pagelist-style" type="text/css">' + textStyle + '</style>' 619 * Конвертирует hex на rgb цвет 621 * @param {string} hex - цвет в кодировке hex 622 * @returns {array} - цвет в кодировке rgb 624function tma__resources__hexToRgb(hex) { 625 var shorthandRegex = /^#?([a-f\d])([a-f\d])([a-f\d])$/i; 626 var newHex = hex.replace(shorthandRegex, function (m, r, g, b) { 627 return r + r + g + g + b + b; 630 var result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(newHex); 633 r: parseInt(result[1], 16), 634 g: parseInt(result[2], 16), 635 b: parseInt(result[3], 16), 639 return result ? [aaa.r, aaa.g, aaa.b] : []; 643 * Возвращает значение прозрачности 645 * @param {string} opacity - значение opacity 648function tma__resources__getOpacity(opacity) { 649 if (opacity && opacity !== '0') { 650 return +opacity / 100; 651 } else if (opacity === '0') {