PageSourceSearch

https://xkcolumbia.com/wp-content/themes/autospa/script/jquery.fancybox.launch.js?ver=7.1.2

js xkcolumbia.com collected 2026-10-07 00:54:02 UTC 4,994 bytes, 130 lines download raw bytes

1/******************************************************************************/
2/******************************************************************************/
3
4;(function($,doc,win) 
5{
6	"use strict";
7	
8	var fancyBoxLaunch=function(object,option)
9	{
10		/**********************************************************************/
11		
12		var $this=$(object);
13		
14		var $optionDefault=
15		{
16			type						:	'image'
17		};
18		
19		var $option=$.extend($optionDefault,option);
20
21		/**********************************************************************/
22
23		this.create=function() 
24		{
25			if(String($option.type)==='video') this.createVideoFancybox();
26			if(String($option.type)==='image') this.createImageFancybox();
27		};
28		
29		/**********************************************************************/
30		
31		this.createImageFancybox=function()
32		{
33			if(typeof(themeOption.fancyboxImage)==='undefined') return;
34
35			var helpers={title:{type:'inside'}};
36
37			if(themeOption.fancyboxImage.helper_button_enable)
38			{
39				helpers.buttons={skipSingle:true};
40			}
41			
42			$this.fancybox(
43			{
44				type					:	'image',
45				margin					:	parseInt(themeOption.fancyboxImage.margin),
46				padding					:	parseInt(themeOption.fancyboxImage.padding),
47				minWidth				:	parseInt(themeOption.fancyboxImage.min_width),
48				minHeight				:	parseInt(themeOption.fancyboxImage.min_height),
49				maxWidth				:	parseInt(themeOption.fancyboxImage.max_width),
50				maxHeight				:	parseInt(themeOption.fancyboxImage.max_height),
51				autoResize				:	parseInt(themeOption.fancyboxImage.autoresize)===1 ? true : false,
52				autoCenter				:	parseInt(themeOption.fancyboxImage.autocenter)===1 ? true : false,
53				fitToView				:	parseInt(themeOption.fancyboxImage.fittoview)===1 ? true : false,
54				arrows					:	parseInt(themeOption.fancyboxImage.arrow)===1 ? true : false,
55				closeBtn				:	parseInt(themeOption.fancyboxImage.close_button)===1 ? true : false,
56				closeClick				:	parseInt(themeOption.fancyboxImage.close_click)===1 ? true : false,
57				nextClick				:	parseInt(themeOption.fancyboxImage.next_click)===1 ? true : false,
58				mouseWheel				:	parseInt(themeOption.fancyboxImage.mouse_wheel)===1 ? true : false,
59				autoPlay				:	parseInt(themeOption.fancyboxImage.autoplay)===1 ? true : false,
60				playSpeed				:	parseInt(themeOption.fancyboxImage.playspeed),
61				loop					:	parseInt(themeOption.fancyboxImage.loop)===1 ? true : false,
62				openEffect				:	themeOption.fancyboxImage.animation_effect_open,
63				closeEffect				:	themeOption.fancyboxImage.animation_effect_close,
64				nextEffect				:	themeOption.fancyboxImage.animation_effect_nex,
65				prevEffect				:	themeOption.fancyboxImage.animation_effect_previous,
66				openSpeed				:	themeOption.fancyboxImage.speed_open,
67				closeSpeed				:	themeOption.fancyboxImage.speed_close,
68				nextSpeed				:	themeOption.fancyboxImage.speed_next,
69				prevSpeed				:	themeOption.fancyboxImage.speed_previous,		
70				openEasing				:	themeOption.fancyboxImage.easing_open,
71				closeEasing				:	themeOption.fancyboxImage.easing_close,
72				nextEasing				:	themeOption.fancyboxImage.easing_next,
73				prevEasing				:	themeOption.fancyboxImage.easing_previous,		
74				beforeShow				:	function()
75				{
76                    this.title=$(this.element).children('.theme-image-description').html();
77				},
78				helpers					:	helpers
79			});
80		};
81	
82		/**********************************************************************/
83	
84		this.createVideoFancybox=function()
85		{	
86			if(typeof(themeOption.fancyboxVideo)==='undefined') return;
87
88			var helpers={};
89
90			helpers.media={};
91
92			$this.fancybox(
93			{
94				margin					:	parseInt(themeOption.fancyboxVideo.margin),
95				padding					:	parseInt(themeOption.fancyboxVideo.padding),
96				minWidth				:	parseInt(themeOption.fancyboxVideo.min_width),
97				minHeight				:	parseInt(themeOption.fancyboxVideo.min_height),
98				maxWidth				:	parseInt(themeOption.fancyboxVideo.max_width),
99				maxHeight				:	parseInt(themeOption.fancyboxVideo.max_height),
100				autoResize				:	parseInt(themeOption.fancyboxVideo.autoresize)===1 ? true : false,
101				autoCenter				:	parseInt(themeOption.fancyboxVideo.autocenter)===1 ? true : false,
102				fitToView				:	parseInt(themeOption.fancyboxVideo.fittoview)===1 ? true : false,
103				closeBtn				:	parseInt(themeOption.fancyboxVideo.close_button)===1 ? true : false,
104				openEffect				:	'none',
105				closeEffect				:	'none',
106				beforeShow				:	function()
107				{
108
109				},
110				helpers					:	helpers
111			});
112		};
113
114		/**********************************************************************/
115	};
116	
117	/**************************************************************************/
118	
119	$.fn.fancyBoxLaunch=function(option) 
120	{
121		var element=new fancyBoxLaunch(this,option);
122		element.create();
123	};
124	
125	/**************************************************************************/
126
127})(jQuery,document,window);
128
129/******************************************************************************/
130/******************************************************************************/

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.