대문: 두 판 사이의 차이
보이기
편집 요약 없음 |
편집 요약 없음 |
||
| 32번째 줄: | 32번째 줄: | ||
</form> | </form> | ||
<script> | |||
document.getElementById('radioSearch').onsubmit = function () { | |||
const q = document.getElementById('query'); | |||
const scope = document.querySelector('input[name="scope"]:checked').value; | |||
if (scope === 'site') { | |||
q.value += ' incategory:유적'; | |||
} else if (scope === 'concept') { | |||
q.value += ' incategory:개념'; | |||
} | |||
}; | |||
</script> | |||
</html> | </html> | ||


