폰트 크기 축소

문단 체크박스 이벤트 추가.
cks
강석 최 2023-11-17 16:53:31 +09:00
parent 36eb847b15
commit 447bd509a8
2 changed files with 16 additions and 4 deletions

View File

@ -43,7 +43,7 @@ a:link, a:visited, a:hover, a:active {text-decoration: none;}
.blind {position: absolute; left: -9999px; top: -9999px;} .blind {position: absolute; left: -9999px; top: -9999px;}
.skip {position: absolute; left: -9999px; top: -9999px;} .skip {position: absolute; left: -9999px; top: -9999px;}
body {font-family: 'Noto Sans KR', sans-serif; font-size: 16px;} body {font-family: 'Noto Sans KR', sans-serif; font-size: 14px;}
button, textarea {font-family: 'Noto Sans KR', sans-serif;} button, textarea {font-family: 'Noto Sans KR', sans-serif;}
button {cursor: pointer;} button {cursor: pointer;}

View File

@ -76,6 +76,11 @@ function CodeViewer(props) {
} }
); );
} }
const chkboxControll = () => {
debugger
}
const getCodeDetailInfo = useCallback((docCode) => { const getCodeDetailInfo = useCallback((docCode) => {
console.groupCollapsed("EgovMain.getCodeDetailInfo()"); console.groupCollapsed("EgovMain.getCodeDetailInfo()");
EgovNet.requestFetch( EgovNet.requestFetch(
@ -125,7 +130,14 @@ function CodeViewer(props) {
} }
lastLevel = item.cont_level; lastLevel = item.cont_level;
parentContCd = parentContCd.trim(); parentContCd = parentContCd.trim();
item.full_content = "<input type='checkbox' class='"+parentContCd+"' id='"+item.cont_type_cd+"chk'>"+item.full_content; item.full_content = "<input type='checkbox' " +
"class='titleCheckBox "+parentContCd+"' " +
"id='"+item.cont_type_cd+"chk' " +
`onclick="const flag = this.checked; document.querySelectorAll('.'+this.id.replace('chk', '')).forEach((input)=>{input.checked = flag})"` +
">"+item.full_content;
if(item.cont_level===1 && item.cont_order !== 1){
item.full_content = "<br>"+item.full_content;
}
} }
if(docLinkReg.test(item.full_content)){ if(docLinkReg.test(item.full_content)){
const docCodeAry = item.full_content.match(docLinkReg); const docCodeAry = item.full_content.match(docLinkReg);
@ -235,8 +247,8 @@ function CodeViewer(props) {
} }
CodeViewer.defaultProps = { CodeViewer.defaultProps = {
docCode: 'KDS 24 14 30', docCode: 'KDS 10 10 00',
docName: '강교 설계기준(허용응력설계법)' docName: '설계기준 총칙'
} }
export default CodeViewer; export default CodeViewer;