"LCWHA"의 두 판 사이의 차이
North Korea Humanities
| 7번째 줄: | 7번째 줄: | ||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
| − | max-width: | + | max-width: 400px; /* 최대 너비 설정 */ |
margin: 20px auto; /* 가운데 정렬 */ | margin: 20px auto; /* 가운데 정렬 */ | ||
} | } | ||
| 39번째 줄: | 39번째 줄: | ||
<form id="searchForm"> | <form id="searchForm"> | ||
| − | <input type="text" id="searchInput" placeholder=" | + | <input type="text" id="searchInput" placeholder="검색어를 입력하세요" required> |
<input type="submit" value="검색"> | <input type="submit" value="검색"> | ||
</form> | </form> | ||
| 55번째 줄: | 55번째 줄: | ||
additionalKeywords.push(searchInput); // 사용자 입력 추가 | additionalKeywords.push(searchInput); // 사용자 입력 추가 | ||
| − | var advancedSearch = '{"options":{"plain":["' + additionalKeywords.join('","') + '"]},"namespaces":["0 | + | var advancedSearch = '{"options":{"plain":["' + additionalKeywords.join('","') + '"]},"namespaces":["0"]}'; |
// 최종 URL 생성 | // 최종 URL 생성 | ||
| 62번째 줄: | 62번째 줄: | ||
'&profile=' + encodeURIComponent(profile) + | '&profile=' + encodeURIComponent(profile) + | ||
'&fulltext=' + fulltext + | '&fulltext=' + fulltext + | ||
| − | '&advancedSearch-current=' + encodeURIComponent(advancedSearch); | + | '&advancedSearch-current=' + encodeURIComponent(advancedSearch) + |
| + | '&ns0=1'; // ns0=1 추가 | ||
// 새로운 URL로 리디렉션 | // 새로운 URL로 리디렉션 | ||
2024년 10월 24일 (목) 19:37 판