• Y
  • List All
  • Feedback
    • This Project
    • All Projects
Profile Account settings Log out
  • Favorite
  • Project
  • All
Loading...
  • Log in
  • Sign up
yangart / sejongOn_publish star
  • Project homeH
  • CodeC
  • IssueI
  • Pull requestP
  • Review R
  • MilestoneM
  • BoardB 1
  • Files
  • Commit
  • Branches
sejongOn_publishresourcesfrontsiteSITE_00000jscommon-custom.js
Download as .zip file
File name
Commit message
Commit date
html
수강신청 클래스 수정
10-30
resources/front/site/SITE_00000
캠공 메인 추가
10-30
.gitignore
퍼블 세팅
09-23
README.md
Update README.md
09-29
File name
Commit message
Commit date
css
캠공 메인 추가
10-30
images
캠공 메인 추가
10-30
js
메인 수정
10-28
vendors/pdfjs
퍼블 세팅
09-23
File name
Commit message
Commit date
common
뷰어 수정
09-27
_layout.js
lnb 추가
10-01
common-custom.js
캠공 세팅 중
10-28
common-custom2.js
메인 수정
10-28
common.js
메인 수정
10-28
yanghyo 10-28 63985a2 캠공 세팅 중 UNIX
Raw Open in browser Change history
/* Author : hyojeong yang Date : 2025-09-22 Project : 온세종 */ if (jQuery) (function ($) { $.extend($.fn, { mnVisualSwiper: function (obj) { return this.each(function () { var $container = $(this); var $el = $container.find('.swiper'); var $btnPrev = $container.find('.swiper-button-prev')[0]; var $btnNext = $container.find('.swiper-button-next')[0]; var $btnsPagination = $container.find('.swiper-pagination')[0]; var $btnPlayStop = $container.find('.swiper-btn-playstop-toggle')[0]; var isPaused = false; // 재생 상태 변수 (컨테이너별) var swiper = new Swiper($el[0], { preloadImages: true, autoplay: { delay: 3000, disableOnInteraction: false, }, loop: true, speed: 1000, slidesPerView: 1, initialSlide: 0, watchSlidesProgress: true, navigation: { prevEl: $btnPrev, nextEl: $btnNext }, pagination: { el: $btnsPagination, type: "custom", renderCustom: function (swiper, current, total) { return ` <em>${current}</em> <span>${total}</span> `; }, }, }); // 재생/중지 버튼 $($btnPlayStop).on('click', function () { if (isPaused) { swiper.autoplay.start(); $(this).removeClass('is-stop').text('중지'); isPaused = false; } else { swiper.autoplay.stop(); $(this).addClass('is-stop').text('재생'); isPaused = true; } }); }); }, mnCourseSwiper: function (obj) { return this.each(function () { var $container = $(this); var $el = $container.find('.swiper'); var $btnPrev = $container.find('.swiper-button-prev')[0]; var $btnNext = $container.find('.swiper-button-next')[0]; var swiper = new Swiper($el[0], { preloadImages: true, loop: true, // effect: "fade", // fadeEffect: { // crossFade: true, // }, speed: 1000, spaceBetween: 48, slidesPerView: 2, initialSlide: 0, watchSlidesProgress: true, navigation: { prevEl: $btnPrev, nextEl: $btnNext }, }); }); }, }); })(jQuery); $(document).ready(function () { $('.mn-visual').mnVisualSwiper(); $('.mn-course .mn-cont').mnCourseSwiper(); });

          
        
    
    
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