• Y
  • List All
  • Feedback
    • This Project
    • This Group
    • All Projects
Profile Account settings Log out
  • Favorite
  • Project
  • All
Loading...
  • Log in
  • Sign up
2025_PROJECT / orgasis star
  • Project homeH
  • CodeC
  • IssueI
  • Pull requestP
  • Review R
  • MilestoneM
  • BoardB
  • Files
  • Commit
  • Branches
orgasissrcmainwebapppublishusrscriptcontent.js
Download as .zip file
File name
Commit message
Commit date
src/main
푸터 국/영문 분리
3 days ago
.gitignore
5648 관리자 메인비주얼관리 수정
01-26
GEMINI.md
메뉴관리 > eng 영역 추가
02-04
README.md
first commit
2025-12-11
pom.xml
first commit
2025-12-11
File name
Commit message
Commit date
java/kcc
푸터 국/영문 분리
3 days ago
resources
메뉴관리 > eng 영역 추가
02-04
webapp
푸터 국/영문 분리
3 days ago
File name
Commit message
Commit date
META-INF
first commit
2025-12-11
WEB-INF
푸터 국/영문 분리
3 days ago
ark
first commit
2025-12-11
common
first commit
2025-12-11
css
first commit
2025-12-11
editor
first commit
2025-12-11
font
first commit
2025-12-11
html
영문페이지 작업, ck에디터 i태그 사라지는거
4 days ago
ico
first commit
2025-12-11
images
first commit
2025-12-11
js
서브페이지 snb...
04-15
publish
영문 수정
3 days ago
index.jsp
first commit
2025-12-11
insp.html
first commit
2025-12-11
tempPrint.html
first commit
2025-12-11
File name
Commit message
Commit date
adm
오가시스 관리자페이지 수정
10-26
common
오가시스 관리자페이지 수정
10-26
usr
영문 수정
3 days ago
File name
Commit message
Commit date
achievement
서브페이지 추가
07-21
company
연혁 숫자 수정
07-23
css
영문 수정
3 days ago
guide
서브페이지 추가
07-21
images
영문 수정
3 days ago
layout
반응형 레이아웃 수정
07-27
menu1
오가시스 사용자 페이지
01-20
pipeline
서브페이지 추가
07-21
platform-tech
영문페이지 작업, ck에디터 i태그 사라지는거
4 days ago
script
영문 수정
3 days ago
index.html
오가시스 사용자 페이지
01-20
File name
Commit message
Commit date
common.js
모바일 반응형 및 오류 수정
07-23
content.js
영문 수정
3 days ago
main.js
오가시스 사용자 페이지
01-20
popup.js
오가시스 사용자 페이지
01-20
submenu.js
서브메뉴 경로 proFn 기준으로 조회(영문 메뉴 대응)
4 days ago
tab.js
오가시스 사용자 페이지
01-20
toggleCalendar.js
오가시스 사용자 페이지
01-20
subsub 3 days ago d788dd6 영문 수정 UNIX
Raw Open in browser Change history
/** * 공통 UI 및 메뉴 로직 제어 */ $(function () { // 0. 메뉴 링크 자동 매핑 실행 (하위 첫 번째 메뉴 연결) updateMenuLinks(); // 1. 페이지 타이틀에 따른 컨테이너 레이아웃 클래스 제어 const pageTitle = $(".sub_title").text().trim().toUpperCase(); const $container = $("#container"); if (pageTitle === "COMPANY") { $container.addClass("company"); } else if (pageTitle === "PIPELINE") { $container.addClass("pipeline"); } else if (pageTitle === "PLATFORM TECHNOLOGIES") { $container.addClass("platform_tech"); } else { $container.addClass("achievement"); } // 2. 상대 경로 이미지 주소 치환 (../ -> /publish/usr/) $('[src]').each(function () { const src = $(this).attr('src'); if (src && src.indexOf('../') === 0) { $(this).attr('src', src.replace(/^\.\.\//, '/publish/usr/')); } }); /** * ========================================== * 연혁(History) 스크롤 인터랙션 * ========================================== */ const BREAKPOINT = 1280; function bindHistoryScroll() { // 기존 이벤트 해제 (리사이즈 시 중복 방지) $('.history_month').off('scroll.history'); $(window).off('scroll.history'); // 모바일/태블릿 구간에서는 실행 안 함 if ($(window).width() < BREAKPOINT) return; /** * 1) 연혁 영역 내부 스크롤 시 연도(Year) 활성화 */ $('.history_month').on('scroll.history', function () { let currentId = null; $('.month_ul').each(function () { // 상단 위치를 계산하여 현재 활성화된 영역 감지 if ($(this).position().top <= 1) { currentId = this.id; } }); if (currentId) { $('.year_item, .month_ul').removeClass('active'); $('#' + currentId).addClass('active'); // 월 리스트 활성화 $('#' + currentId.replace('year_', 'year')).addClass('active'); // 연도 버튼 활성화 } }); /** * 2) 윈도우 스크롤 시 연혁 영역 활성화 제어 (스티키 효과 등) */ const TARGET = 719; // 활성화 기준 좌표 const RANGE = 20; // 감지 허용 오차 범위 const $history = $('.history_month'); $(window).on('scroll.history', function () { const scrollTop = $(this).scrollTop(); // 특정 스크롤 위치에 도달했을 때 클래스 부여 if (scrollTop >= TARGET - RANGE && scrollTop <= TARGET + RANGE) { $history.addClass('active'); } else { $history.removeClass('active'); } }); } // 연혁 스크롤 이벤트 초기화 bindHistoryScroll(); // 브라우저 리사이즈 시 대응 $(window).on('resize', function() { bindHistoryScroll(); }); }); /** * 하위 메뉴 구조를 분석하여 상위 메뉴의 href 링크를 자동으로 설정 */ function updateMenuLinks() { // 1. 2Depth 메뉴 링크 업데이트 $('.depth02').each(function () { const $this = $(this); const menuText = $.trim($this.text()); // Selective Autophagy: 하위 메뉴가 아닌 고정 경로로 이동 if (menuText === "Selective Autophagy") { if ($("#lang-eng").is(".active")) { $this.attr('href', '/web/content.do?proFn=998214001'); } else { $this.attr('href', '/web/content.do?proFn=999314000'); } return true; } // 하위 3Depth 중 첫 번째 유효한 링크 탐색 const firstDepth03Href = $this.closest('li').find('.depth03').filter(function () { const href = $(this).attr('href'); return href && href !== '#' && href !== ''; }).first().attr('href'); if (firstDepth03Href) { $this.attr('href', firstDepth03Href); } }); // 2. 1Depth 메뉴 링크 업데이트 $('.depth01').each(function () { // 하위에 업데이트된 2Depth 또는 존재하는 3Depth 중 첫 번째 유효한 링크 탐색 const firstChildHref = $(this).closest('li').find('.depth02, .depth03').filter(function () { const href = $(this).attr('href'); return href && href !== '#' && href !== ''; }).first().attr('href'); if (firstChildHref) { $(this).attr('href', firstChildHref); } }); }

          
        
    
    
Copyright Yona authors & © NAVER Corp. & NAVER LABS Supported by NAVER CLOUD PLATFORM

or
Sign in with github login with Google Sign in with Google
Reset password | Sign up