PageSourceSearch

https://alps-chiba.jp/_lib/owl.js

js alps-chiba.jp collected 2026-10-08 21:02:50 UTC 2,327 bytes, 87 lines download raw bytes

1function owl_lang_dir(){
2	r=window.location.href.match(/\/\.(.*?)\//);
3	if(r===null){
4		return '';
5	}
6	return '/.'+r[1];
7}
8
9function owl_jquery_plugin()
10{
11	if($('.owl-datepicker').length){
12		$('.owl-datepicker').datepicker({dateFormat:'yy-mm-dd'});
13	}
14
15	$('.owl-image_slider').each(function(){
16		var images=$(this).find('.owl-image_slider-images ul');
17		var thumbnail=$(this).find('.owl-image_slider-thumbnail ul');
18		var op={
19			auto: true
20			,mode: images.attr('data-mode')
21			,captions: images.attr('data-captions')==1?true:false
22			,controls: images.attr('data-controls')==1?true:false
23			,speed: images.attr('data-speed')
24			,pause: images.attr('data-pause')
25			,infiniteLoop:true
26			,autoHover: true
27			,responsive: true
28		};
29		if(thumbnail.length>0){
30			op.pagerCustom=thumbnail;
31		}
32		if(
33			$(this).hasClass('owl-image_slider-thumbnail_right')
34			||$(this).hasClass('owl-image_slider-thumbnail_left')
35		){
36			var thumbnail_wrapper_height=$(this).find('.owl-image_slider-thumbnail').height();
37			var thumbnail_count=thumbnail.children('li').length;
38			var thumbnail_height=thumbnail.height()/thumbnail_count;
39			var scroll_limit=thumbnail.height()-thumbnail_wrapper_height;
40			op.onSlideBefore=function($slideElement, oldIndex, newIndex){
41				var m=thumbnail_height*newIndex-thumbnail_wrapper_height/2+thumbnail_height/2;
42				if(m<0){
43					m=0;
44				}else if(m>scroll_limit){
45					m=scroll_limit;
46				}
47				thumbnail.animate({
48					marginTop:-m
49				},200);
50			};
51		}
52		images.bxSlider(op);
53	});
54
55	$('.owl-gallery_slider').each(function(){
56		var images=$(this).find('.owl-gallery_slider-images');
57		var op={
58			mode: images.attr('data-mode')
59			,captions: images.attr('data-captions')==1?true:false
60			,controls: images.attr('data-controls')==1?true:false
61			,speed: images.attr('data-speed')
62			,pause: images.attr('data-pause')
63			,ticker: true
64			,minSlides: 3
65			,maxSlides: 10
66			,slideWidth: 400
67		};
68		images.bxSlider(op);
69	});
70
71	$(".owl-tabs .owl-tabs-container").tabs();
72}
73
74$(document).ready(function(){
75	$(document).on({
76		mouseenter:function(){
77			$(this).attr('src',$(this).attr('src').replace('roll_off','roll_on'));
78		}
79		,mouseleave:function(){
80			$(this).attr('src',$(this).attr('src').replace('roll_on','roll_off'));
81		}
82	},'.owl-img-roll');
83});
84
85$(window).on("load",function(){
86	owl_jquery_plugin();
87});

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.