• 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
no message
10-28
resources/front/site/SITE_00000
나의강의실, 마이페이지 퍼블 추가
10-28
.gitignore
퍼블 세팅
09-23
README.md
Update README.md
09-29
File name
Commit message
Commit date
css
나의강의실, 마이페이지 퍼블 추가
10-28
images
나의강의실, 마이페이지 퍼블 추가
10-28
js
파일정리
10-24
vendors/pdfjs
퍼블 세팅
09-23
File name
Commit message
Commit date
common
뷰어 수정
09-27
_layout.js
lnb 추가
10-01
common-custom.js
custom 파일 수정
10-24
common-custom2.js
파일정리
10-24
common.js
파일정리
10-24
yanghyo 10-24 ca54b1f custom 파일 수정 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: 24, slidesPerView: 1, initialSlide: 0, watchSlidesProgress: true, navigation: { prevEl: $btnPrev, nextEl: $btnNext }, }); }); }, }); })(jQuery); $(document).ready(function () { $('.mn-visual').mnVisualSwiper(); $('.mn-course-area .course-area').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