송성진 부장 수정 요청건 반영
메인: 홈 배경 이미지 교체 및 회사 주요 지표 영역 비노출 기술 역량: 카테고리를 AUTOMOTIVE > SOLUTION > SI > ROBOTICS 순으로 변경하고 키보드·이전/다음·자동 순환 순서를 동기화, PATENTS 및 전장 ETC 항목 비노출, 검색용 콘텐츠 재동기화 ESG: 안전보건 목표·담당자 정보·고충처리 문의 및 운영 정보 일부 비노출 문의하기: 서울 지사 명칭과 지도 레이블 통일 및 Office Hour 영역 비노출 공통: 페이지별 푸터 회사 정보 정리
This commit is contained in:
11
js/main.js
11
js/main.js
@@ -602,13 +602,14 @@
|
||||
|
||||
const labels = {
|
||||
automotive: "Automotive",
|
||||
robotics: "Robotics",
|
||||
solution: "Solution",
|
||||
si: "SI",
|
||||
certifications: "Patents"
|
||||
robotics: "Robotics",
|
||||
};
|
||||
const orderedFilters = Array.from(filterButtons, (button) => button.dataset.filter)
|
||||
.filter((type) => labels[type] && projects.some((item) => item.type === type));
|
||||
const hash = location.hash.replace("#", "");
|
||||
let currentFilter = labels[hash] ? hash : "automotive";
|
||||
let currentFilter = orderedFilters.includes(hash) ? hash : orderedFilters[0];
|
||||
let currentProjects = [];
|
||||
let currentIndex = 0;
|
||||
let wheelLocked = false;
|
||||
@@ -894,7 +895,7 @@
|
||||
|
||||
// 기술 역량: 이전/다음 이동. 카테고리 끝에서는 다음 카테고리로 순환.
|
||||
function projectCategories() {
|
||||
return Object.keys(labels).filter((type) => projects.some((item) => item.type === type));
|
||||
return orderedFilters;
|
||||
}
|
||||
|
||||
function moveCategory(direction, startAtEnd = false) {
|
||||
@@ -994,7 +995,7 @@
|
||||
|
||||
window.addEventListener("hashchange", () => {
|
||||
const filter = location.hash.slice(1);
|
||||
if (labels[filter] && filter !== currentFilter) {
|
||||
if (orderedFilters.includes(filter) && filter !== currentFilter) {
|
||||
currentFilter = filter;
|
||||
renderProjects(filter);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user