Как поменять цвет в календаре "встречи". Что бы завершенные были синие, а текущие красные. Заранее благодарю!
Нашел такую строку в calendar.js
shadeColor: function (color, percent) {
var f = parseInt(color.slice(1),16),t=percent<0?0:255,p=pe rcent<0?percent*-1
ercent,R=f>>16,G=f>>8&0x00FF,B=f&0x0000FF;
return "#"+(0x1000000+(Math.round((t-R)*p)+R)*0x10000+(Math.round((t-G)*p)+G)*0x100+(Math.round((t-B)*p)+B)).toString(16).slice(1);
},
Нашел такую строку в calendar.js
shadeColor: function (color, percent) {
var f = parseInt(color.slice(1),16),t=percent<0?0:255,p=pe rcent<0?percent*-1

return "#"+(0x1000000+(Math.round((t-R)*p)+R)*0x10000+(Math.round((t-G)*p)+G)*0x100+(Math.round((t-B)*p)+B)).toString(16).slice(1);
},
Comment