// 메뉴바 그림자 $('#mainNavbar').affix({ offset: { top: 40 } }); // jQuery 시작 jQuery(function ($) { 'use strict'; // 스크롤 애니메이션 (function () { $('li a[href*=#]').bind("click", function (e) { var anchor = $(this); $('html, body').stop().animate({ scrollTop: $(anchor.attr('href')).offset().top - 136 }, 700); e.preventDefault(); }); }()); // 탑 가기 버튼 표시/숨김 (function () { $(window).scroll(function () { if ($(this).scrollTop() > 100) { $('.scroll-up').fadeIn(); } else { $('.scroll-up').fadeOut(); } }); }()); }); // 토글 $(document).ready(function () { $(".navbar-toggle").on("click", function () { $(this).toggleClass("active"); }); }); // AOS AOS.init({ duration: 800, delay: 15, }); $("img").each(function(i, elem) { // Get the current src attribute var currentSrc = $(this).attr("src"); // Check each condition and update the src accordingly if (currentSrc === "/cimg/arr_page_go.gif") { $(this).attr("src", "../img/vdata/inc/images/par1.png"); } else if (currentSrc === "/cimg/arr_page_next.gif") { $(this).attr("src", "../img/vdata/inc/images/par2.png"); } else if (currentSrc === "/cimg/arr_page_back.gif") { $(this).attr("src", "../img/vdata/inc/images/pal1.png"); } else if (currentSrc === "/cimg/arr_page_pre.gif") { $(this).attr("src", "../img/vdata/inc/images/pal2.png"); } }); $(".mstx-inw").hide().fadeIn(1000);