§
※
☆
);
$("#si4").val("000000000004");
$("#q1").val("");
$("#q2").val("");
$("#q3").val("");
$("#q4").val("");
$("#b0").val("and");
$("#b1").val("and");
$("#b2").val("and");
$("#b3").val("and");
$("#lmt0").prop("checked", false);
$("#lmt0_0").prop("checked", false);
$("#lmt0_1").prop("checked", false);
$("#lmt0_2").prop("checked", false);
$("#lmt0_3").prop("checked", false);
$("#lmt0_4").prop("checked", false);
$("#popSearchTerm1").val("");
$("#popSearchTerm2").val("");
$("#popSearchTerm3").val("");
$("#popGubun1").val("");
$("#popGubun2").val("TX");
$("#popGubun3").val("TX");
$("#popAon1").val("AND");
$("#popAon2").val("AND");
$("#popLmtFT").prop("checked", false);
$("#popLmtPR").prop("checked", false);
$("#popLmtAL").prop("checked", false);
$("#popExpThesaurus").prop("checked", false);
$("#popExpFulltext" ).prop("checked", false);
$("#popExpRelatedsubjects").prop("checked", false);
$("#popLmtRf").val("");
$("#popLmtRt").val("");
$("#cpp").val("10");
$("#lmt0").prop("checked", true);
$("#lmt0").change();
}
document.addEventListener("DOMContentLoaded", function() {
});
$(document).ready(function(){
$("#lmt0").change(function(){
if($("#lmt0").is(":checked")){
$("#lmt0_0").prop("checked", true);
$("#lmt0_1").prop("checked", true);
$("#lmt0_2").prop("checked", true);
$("#lmt0_3").prop("checked", true);
$("#lmt0_4").prop("checked", true);
}else{
$("#lmt0_0").prop("checked", false);
$("#lmt0_1").prop("checked", false);
$("#lmt0_2").prop("checked", false);
$("#lmt0_3").prop("checked", false);
$("#lmt0_4").prop("checked", false);
}
});
$("#lmt0_0, #lmt0_1, #lmt0_2, #lmt0_3, #lmt0_4").change(function(){
if($(this).is(":checked")){
}else{
$("#lmt0").prop("checked", false);
}
});
$("#lmt0").prop("checked", true);
$("#lmt0").change();
//상세검색1 클리어버튼
const schInp1 = document.getElementById("q1");
const btnClr1 = document.getElementById("detail_btnClear1");
schInp1.addEventListener("input", function() {
const inputVal = schInp1.value.trim();
if (inputVal !== "") {
btnClr1.classList.add("active");
} else {
btnClr1.classList.remove("active");
}
});
btnClr1.addEventListener("click", function() {
schInp1.value = "";
schInp1.focus();
btnClr1.classList.remove("active");
});
//상세검색2 클리어버튼
const schInp2 = document.getElementById("q2");
const btnClr2 = document.getElementById("detail_btnClear2");
schInp2.addEventListener("input", function() {
const inputVal = schInp2.value.trim();
if (inputVal !== "") {
btnClr2.classList.add("active");
} else {
btnClr2.classList.remove("active");
}
});
btnClr2.addEventListener("click", function() {
schInp2.value = "";
schInp2.focus();
btnClr2.classList.remove("active");
});
//상세검색3 클리어버튼
const schInp3 = document.getElementById("q3");
const btnClr3 = document.getElementById("detail_btnClear3");
schInp3.addEventListener("input", function() {
const inputVal = schInp3.value.trim();
if (inputVal !== "") {
btnClr3.classList.add("active");
} else {
btnClr3.classList.remove("active");
}
});
btnClr3.addEventListener("click", function() {
schInp3.value = "";
schInp3.focus();
btnClr3.classList.remove("active");
});
//상세검색4 클리어버튼
const schInp4 = document.getElementById("q4");
const btnClr4 = document.getElementById("detail_btnClear4");
schInp4.addEventListener("input", function() {
const inputVal = schInp4.value.trim();
if (inputVal !== "") {
btnClr4.classList.add("active");
} else {
btnClr4.classList.remove("active");
}
});
btnClr4.addEventListener("click", function() {
schInp4.value = "";
schInp4.focus();
btnClr4.classList.remove("active");
});
//상세검색-학술논문1 클리어버튼
const schTrm1 = document.getElementById("popSearchTerm1");
const stbClr1 = document.getElementById("searchTerm_btnClear1");
schTrm1.addEventListener("input", function() {
const inputVal = schTrm1.value.trim();
if (inputVal !== "") {
stbClr1.classList.add("active");
} else {
stbClr1.classList.remove("active");
}
});
stbClr1.addEventListener("click", function() {
schTrm1.value = "";
schTrm1.focus();
stbClr1.classList.remove("active");
});
//상세검색-학술논문2 클리어버튼
const schTrm2 = document.getElementById("popSearchTerm2");
const stbClr2 = document.getElementById("searchTerm_btnClear2");
schTrm2.addEventListener("input", function() {
const inputVal = schTrm2.value.trim();
if (inputVal !== "") {
stbClr2.classList.add("active");
} else {
stbClr2.classList.remove("active");
}
});
stbClr2.addEventListener("click", function() {
schTrm2.value = "";
schTrm2.focus();
stbClr2.classList.remove("active");
});
//상세검색-학술논문2 클리어버튼
const schTrm3 = document.getElementById("popSearchTerm3");
const stbClr3 = document.getElementById("searchTerm_btnClear3");
schTrm3.addEventListener("input", function() {
const inputVal = schTrm3.value.trim();
if (inputVal !== "") {
stbClr3.classList.add("active");
} else {
stbClr3.classList.remove("active");
}
});
stbClr3.addEventListener("click", function() {
schTrm3.value = "";
schTrm3.focus();
stbClr3.classList.remove("active");
});
});