2024/01/23 fullcalendar 웹접근성 수정

This commit is contained in:
subsub 2024-01-23 17:07:08 +09:00
parent 632df71794
commit 9fa9caf538
3 changed files with 25 additions and 4 deletions

View File

@ -43,6 +43,7 @@
<script type="text/javaScript" language="javascript">
var ex_s_todate;// = info.startStr;
var calendar;
@ -166,6 +167,24 @@
},
});
calendar.render();
var dayText = $(".fc-header-toolbar .fc-toolbar-chunk .fc-toolbar-title").text();
$(".fc-scrollgrid.fc-scrollgrid-liquid").prepend("<caption>"+dayText+" 달력입니다.</caption>");
$(".fc-col-header").prepend("<caption>일, 월, 화, 수, 목, 금, 토 요일 정보 제공</caption>");
$(".fc-scrollgrid-sync-table").prepend("<caption>날짜별 강의목록 정보 제공</caption>");
// 달력 웹접근성
$(".fc-prev-button").attr("title","이전달로 이동");
$(".fc-next-button").attr("title","다음달로 이동");
$(".fc-next-button").on("click",function(){
var changeDay = $(".fc-header-toolbar .fc-toolbar-chunk .fc-toolbar-title").text();
$(".fc-scrollgrid.fc-scrollgrid-liquid>caption").text(changeDay+" 달력입니다.");
});
$(".fc-prev-button").on("click",function(){
var changeDay = $(".fc-header-toolbar .fc-toolbar-chunk .fc-toolbar-title").text();
$(".fc-scrollgrid.fc-scrollgrid-liquid>caption").text(changeDay+" 달력입니다.");
})
});
function dtPsblTmQnttyPop(

View File

@ -98,12 +98,12 @@ $(document).ready(function(){
$(".fc-next-button").on("click",function(){
var changeDay = $(".fc-header-toolbar .fc-toolbar-chunk .fc-toolbar-title").text();
$(".fc-scrollgrid.fc-scrollgrid-liquid").find("caption").text(changeDay+" 달력입니다.");
$(".fc-scrollgrid.fc-scrollgrid-liquid>caption").text(changeDay+" 달력입니다.");
});
$(".fc-prev-button").on("click",function(){
var changeDay = $(".fc-header-toolbar .fc-toolbar-chunk .fc-toolbar-title").text();
$(".fc-scrollgrid.fc-scrollgrid-liquid").find("caption").text(changeDay+" 달력입니다.");
$(".fc-scrollgrid.fc-scrollgrid-liquid>caption").text(changeDay+" 달력입니다.");
})
@ -216,7 +216,9 @@ $(document).ready(function(){
});
calendar.render();
var dayText = $(".fc-header-toolbar .fc-toolbar-chunk .fc-toolbar-title").text();
$(".fc-scrollgrid.fc-scrollgrid-liquid").prepend("<caption>"+dayText+" 달력입니다.</caption>")
$(".fc-scrollgrid.fc-scrollgrid-liquid").prepend("<caption>"+dayText+" 달력입니다.</caption>");
$(".fc-col-header").prepend("<caption>일, 월, 화, 수, 목, 금, 토 요일 정보 제공</caption>");
$(".fc-scrollgrid-sync-table").prepend("<caption>날짜별 강의목록 정보 제공</caption>");
});

View File

@ -14029,7 +14029,7 @@ var FullCalendar = (function (exports) {
var classNames = ['fc-list-day'].concat(getDayClassNames(dayMeta, theme));
// TODO: make a reusable HOC for dayHeader (used in daygrid/timegrid too)
return (createElement(RenderHook, { hookProps: hookProps, classNames: options.dayHeaderClassNames, content: options.dayHeaderContent, defaultContent: renderInnerContent, didMount: options.dayHeaderDidMount, willUnmount: options.dayHeaderWillUnmount }, function (rootElRef, customClassNames, innerElRef, innerContent) { return (createElement("tr", { ref: rootElRef, className: classNames.concat(customClassNames).join(' '), "data-date": formatDayString(dayDate) },
createElement("th", { colSpan: 3 },
createElement("td", { colSpan: 3 },
createElement("div", { className: 'fc-list-day-cushion ' + theme.getClass('tableCellShaded'), ref: innerElRef }, innerContent)))); }));
};
return ListViewHeaderRow;