PageSourceSearch

https://radiovideo.music/wp-content/plugins/wp-lightbox-ultimate/l…/helpers/jquery.fancybox-media.js?ver=2.3.6

js radiovideo.music collected 2026-10-09 05:13:35 UTC 5,378 bytes, 201 lines download raw bytes

vendor: 5,378 bytes, lines 1-201
1/*!
2 * Media helper for fancyBox
3 * version: 1.0.6 (Fri, 14 Jun 2013)
4 * @requires fancyBox v2.0 or later
5 *
6 * Usage:
7 *     $(".fancybox").fancybox({
8 *         helpers : {
9 *             media: true
10 *         }
11 *     });
12 *
13 * Set custom URL parameters:
14 *     $(".fancybox").fancybox({
15 *         helpers : {
16 *             media: {
17 *                 youtube : {
18 *                     params : {
19 *                         autoplay : 0
20 *                     }
21 *                 }
22 *             }
23 *         }
24 *     });
25 *
26 * Or:
27 *     $(".fancybox").fancybox({,
28 *         helpers : {
29 *             media: true
30 *         },
31 *         youtube : {
32 *             autoplay: 0
33 *         }
34 *     });
35 *
36 *  Supports:
37 *
38 *      Youtube
39 *          http://www.youtube.com/watch?v=opj24KnzrWo
40 *          http://www.youtube.com/embed/opj24KnzrWo
41 *          http://youtu.be/opj24KnzrWo
42 *			http://www.youtube-nocookie.com/embed/opj24KnzrWo
43 *      Vimeo
44 *          http://vimeo.com/40648169
45 *          http://vimeo.com/channels/staffpicks/38843628
46 *          http://vimeo.com/groups/surrealism/videos/36516384
47 *          http://player.vimeo.com/video/45074303
48 *      Metacafe
49 *          http://www.metacafe.com/watch/7635964/dr_seuss_the_lorax_movie_trailer/
50 *          http://www.metacafe.com/watch/7635964/
51 *      Dailymotion
52 *          http://www.dailymotion.com/video/xoytqh_dr-seuss-the-lorax-premiere_people
53 *      Twitvid
54 *          http://twitvid.com/QY7MD
55 *      Twitpic
56 *          http://twitpic.com/7p93st
57 *      Instagram
58 *          http://instagr.am/p/IejkuUGxQn/
59 *          http://instagram.com/p/IejkuUGxQn/
60 *      Google maps
61 *          http://maps.google.com/maps?q=Eiffel+Tower,+Avenue+Gustave+Eiffel,+Paris,+France&t=h&z=17
62 *          http://maps.google.com/?ll=48.857995,2.294297&spn=0.007666,0.021136&t=m&z=16
63 *          http://maps.google.com/?ll=48.859463,2.292626&spn=0.000965,0.002642&t=m&z=19&layer=c&cbll=48.859524,2.292532&panoid=YJ0lq28OOy3VT2IqIuVY0g&cbp=12,151.58,,0,-15.56
64 */
65;(function ($) {
66	"use strict";
67
68	//Shortcut for fancyBox object
69	var F = $.fancybox,
70		format = function( url, rez, params ) {
71			params = params || '';
72
73			if ( $.type( params ) === "object" ) {
74				params = $.param(params, true);
75			}
76
77			$.each(rez, function(key, value) {
78				url = url.replace( '$' + key, value || '' );
79			});
80
81			if (params.length) {
82				url += ( url.indexOf('?') > 0 ? '&' : '?' ) + params;
83			}
84
85			return url;
86		};
87
88	//Add helper object
89	F.helpers.media = {
90		defaults : {
91			youtube : {
92				matcher : /(youtube\.com|youtu\.be|youtube-nocookie\.com)\/(watch\?v=|v\/|u\/|embed\/?)?(videoseries\?list=(.*)|[\w-]{11}|\?listType=(.*)&list=(.*)).*/i,
93				params  : {
94					autoplay    : 1,
95					autohide    : 1,
96					fs          : 1,
97					rel         : 0,
98					hd          : 1,
99					wmode       : 'opaque',
100					enablejsapi : 1,
101                    			ps: 'docs',
102                    			controls: 1
103				},
104				type : 'iframe',
105				url  : '//www.youtube.com/embed/$3'
106			},
107			vimeo : {
108				matcher : /(?:vimeo(?:pro)?.com)\/(?:[^\d]+)?(\d+)(?:.*)/,
109				params  : {
110					autoplay      : 1,
111					hd            : 1,
112					show_title    : 1,
113					show_byline   : 1,
114					show_portrait : 0,
115					fullscreen    : 1
116				},
117				type : 'iframe',
118				url  : '//player.vimeo.com/video/$1'
119			},
120			metacafe : {
121				matcher : /metacafe.com\/(?:watch|fplayer)\/([\w\-]{1,10})/,
122				params  : {
123					autoPlay : 'yes'
124				},
125				type : 'swf',
126				url  : function( rez, params, obj ) {
127					obj.swf.flashVars = 'playerVars=' + $.param( params, true );
128
129					return '//www.metacafe.com/fplayer/' + rez[1] + '/.swf';
130				}
131			},
132			dailymotion : {
133				matcher : /dailymotion.com\/video\/(.*)\/?(.*)/,
134				params  : {
135					additionalInfos : 0,
136					autoStart : 1
137				},
138				type : 'swf',
139				url  : '//www.dailymotion.com/swf/video/$1'
140			},
141			twitvid : {
142				matcher : /twitvid\.com\/([a-zA-Z0-9_\-\?\=]+)/i,
143				params  : {
144					autoplay : 0
145				},
146				type : 'iframe',
147				url  : '//www.twitvid.com/embed.php?guid=$1'
148			},
149			twitpic : {
150				matcher : /twitpic\.com\/(?!(?:place|photos|events)\/)([a-zA-Z0-9\?\=\-]+)/i,
151				type : 'image',
152				url  : '//twitpic.com/show/full/$1/'
153			},
154			instagram : {
155				matcher : /(instagr\.am|instagram\.com)\/p\/([a-zA-Z0-9_\-]+)\/?/i,
156				type : 'image',
157				url  : '//$1/p/$2/media/?size=l'
158			},
159			google_maps : {
160				matcher : /maps\.google\.([a-z]{2,3}(\.[a-z]{2})?)\/(\?ll=|maps\?)(.*)/i,
161				type : 'iframe',
162				url  : function( rez ) {
163					return '//maps.google.' + rez[1] + '/' + rez[3] + '' + rez[4] + '&output=' + (rez[4].indexOf('layer=c') > 0 ? 'svembed' : 'embed');
164				}
165			}
166		},
167
168		beforeLoad : function(opts, obj) {
169			var url   = obj.href || '',
170				type  = false,
171				what,
172				item,
173				rez,
174				params;
175
176			for (what in opts) {
177				if (opts.hasOwnProperty(what)) {
178					item = opts[ what ];
179					rez  = url.match( item.matcher );
180
181					if (rez) {
182						type   = item.type;
183						params = $.extend(true, {}, item.params, obj[ what ] || ($.isPlainObject(opts[ what ]) ? opts[ what ].params : null));
184
185						url = $.type( item.url ) === "function" ? item.url.call( this, rez, params, obj ) : format( item.url, rez, params );
186
187						break;
188					}
189				}
190			}
191
192			if (type) {
193				obj.href = url;
194				obj.type = type;
195
196				obj.autoHeight = false;
197			}
198		}
199	};
200
201}(jQuery));

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.