PageSourceSearch

https://youlsys.co.kr/yc/mobile/skin/latest/resource/latest.carousel.js?v2

js youlsys.co.kr collected 2026-10-04 17:04:16 UTC 2,971 bytes, 101 lines download raw bytes

1jQuery(function($){
2    $(document).ready(function(){
3        
4		$(".owl-carousel-wrap .sv_member").off('click').off('focusin');
5		
6		if ($.fn.tooltipster) {
7			var $member_menu_tip = $('.owl-carousel-wrap .sv_member').tooltipster({
8					theme: 'tooltipster-sir',
9					trigger: 'custom',
10					contentAsHTML: true,
11					interactive: true,
12					distance: 5,
13					position:'bottom',
14					coord: {
15						left: 20,
16						bottom: 0
17					},
18					triggerOpen: {
19						click: true,
20						tap: true    // For touch device
21					},
22					triggerClose: {
23						click: true,
24						scroll: true,
25						tap: true
26					},
27					functionBefore: function(instance, helper) {
28						var content = $(helper.origin).parent().find('.sv')[0].outerHTML;
29						instance.content(content);
30					},
31					functionReady : function(instance, helper) {
32						$(helper.tooltip).find(".tooltipster-arrow").css({left:16});
33					},
34					functionPosition: function(instance, helper, position){
35						position.coord.left += 7;
36						return position;
37					}
38			});
39		}
40
41        var carousels = [],
42            is_loop = true;
43
44        function owl_show_page(event){
45
46            if (event.item) {
47                var count = event.item.count,
48                    item_index = event.item.index,
49                    index = 1;
50
51                if( is_loop ){
52                    index = ( 1 + ( event.property.value - Math.ceil( event.item.count / 2 ) ) % event.item.count || 0 ) || 1;
53                } else {
54                    index = event.item.index ? event.item.index + 1 : 1;
55                }
56
57                var str = "<b>"+index+"</b>/"+count;
58
59                $(event.target).next(".lt_page").find(".page_print").html(str);
60            }
61        }
62
63        $(".lt.owl-carousel-wrap").each(function(index, value) {
64
65            var $this = $(this),
66                item_loop_c = ($this.children('.latest-sel').find(".item").length > 1) ? 1 : 0 ;
67            
68            carousels['sel' + index] = $this.children('.latest-sel').addClass("owl-carousel").owlCarousel({
69                items:1,
70                loop: is_loop && item_loop_c,
71                center:true,
72                autoHeight:true,
73                dots:false,
74                onChanged:function(event){
75                    owl_show_page(event);
76                },
77            });
78			
79			carousels['sel' + index].on('changed.owl.carousel', function(event) {
80				
81				if ($.fn.tooltipster) {
82					var instances = $.tooltipster.instances();
83					$.each(instances, function(i, instance){
84						instance.close();
85					});
86				}
87			});
88
89            $this.on("click", ".lt_page_next", function(e) {
90                e.preventDefault();
91                carousels['sel' + index].trigger('next.owl.carousel');
92            });
93
94            $this.on("click", ".lt_page_prev", function(e) {
95                e.preventDefault();
96                carousels['sel' + index].trigger('prev.owl.carousel');
97            });
98
99        });     // each
100    });
101});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.