...
|
...
|
@@ -19,7 +19,7 @@ function intimacyData(data) { |
|
|
var $ul = $('.fan-charts-cont'),
|
|
|
$myIntimacy = $('.my-intimacy'),
|
|
|
$increased = $('.increased'),
|
|
|
signDay = data.signDay,
|
|
|
signDay = data.signDay.split(','),
|
|
|
html = '',
|
|
|
style = '',
|
|
|
nowDate = new Date(),
|
...
|
...
|
@@ -27,13 +27,15 @@ function intimacyData(data) { |
|
|
nowMonth = nowDate.getMonth(),
|
|
|
nowDaysNub = calendar.calculateMonthDays(nowMonth, nowYear);
|
|
|
|
|
|
var i;
|
|
|
var i, j;
|
|
|
|
|
|
if (signDay.length > 0) {
|
|
|
for (i = 0; i < nowDaysNub; i++) {
|
|
|
if (signDay.indexOf(i + 1) > -1) {
|
|
|
$('.now-days').eq(i).addClass('signItem');
|
|
|
}
|
|
|
for (j = 0; j< signDay.length; j++) {
|
|
|
if (i === parseInt(signDay[j])) {
|
|
|
$('.now-days').eq(i - 1).addClass('signItem');
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
...
|
...
|
|