回答編集履歴
1
修正
answer
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
$('#calendar').fullCalendar({
|
4
4
|
...省略...
|
5
5
|
eventRender: function(event, element) {
|
6
|
-
if(event.source
|
6
|
+
if(event.source.googleCalendarId == 'japanese__ja@holiday.calendar.google.com') {
|
7
7
|
$('.fc-day-top[data-date=' + event.start._i + ']').css('color', '#FF0066');
|
8
8
|
element.hide();
|
9
9
|
}
|
@@ -12,5 +12,5 @@
|
|
12
12
|
});
|
13
13
|
```
|
14
14
|
1. 休日のeventのみ処理(4行目のif)
|
15
|
-
2. 休日のeventが設定されている日付の数字部分(.fc-day-top)の文字色を変える
|
15
|
+
2. 休日のeventが設定されている日付の数字部分(.fc-day-top)の文字色を変える(5行目)
|
16
|
-
3. 休日のeventを非表示
|
16
|
+
3. 休日のeventを非表示(6行目)
|