first commit 2
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
(function($) {
|
||||
"use strict";
|
||||
|
||||
$(function() {
|
||||
// 각 비주얼 모듈에 대해 개별적으로 Cycle2를 초기화합니다.
|
||||
$('.new-main-visual').each(function() {
|
||||
var $this = $(this);
|
||||
var $slider = $this.find('.visual-slider');
|
||||
|
||||
// 이미 초기화되었다면 중복 실행 방지
|
||||
if ($slider.data('cycle.opts')) {
|
||||
return;
|
||||
}
|
||||
|
||||
$slider.cycle();
|
||||
});
|
||||
});
|
||||
|
||||
})(jQuery);
|
||||
Reference in New Issue
Block a user