PageSourceSearch

https://usrussianlawyer.com/wp-content/themes/skybox/style/js/fanc…/helpers/jquery.fancybox-media.js?ver=7.1.2

js usrussianlawyer.com collected 2026-10-10 02:35:00 UTC 3,242 bytes, 89 lines download raw bytes

1 /*!
2 * Media helper for fancyBox
3 * version: 1.0.1
4 * @requires fancyBox v2.0 or later
5 *
6 * Usage:
7 *     $(".fancybox").fancybox({
8 *         media: {}
9 *     });
10 *
11 *  Supports:
12 *      Youtube
13 *          http://www.youtube.com/watch?v=opj24KnzrWo
14 *          http://youtu.be/opj24KnzrWo
15 *      Vimeo
16 *          http://vimeo.com/40648169
17 *          http://vimeo.com/channels/staffpicks/38843628
18 *          http://vimeo.com/groups/surrealism/videos/36516384
19 *      Metacafe
20 *          http://www.metacafe.com/watch/7635964/dr_seuss_the_lorax_movie_trailer/
21 *          http://www.metacafe.com/watch/7635964/
22 *      Dailymotion
23 *          http://www.dailymotion.com/video/xoytqh_dr-seuss-the-lorax-premiere_people
24 *      Twitvid
25 *          http://twitvid.com/QY7MD
26 *      Twitpic
27 *          http://twitpic.com/7p93st
28 *      Instagram
29 *          http://instagr.am/p/IejkuUGxQn/
30 *          http://instagram.com/p/IejkuUGxQn/
31 *      Google maps
32 *          http://maps.google.com/maps?q=Eiffel+Tower,+Avenue+Gustave+Eiffel,+Paris,+France&t=h&z=17
33 *          http://maps.google.com/?ll=48.857995,2.294297&spn=0.007666,0.021136&t=m&z=16
34 *          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
35 */
36(function ($) {
37	//Shortcut for fancyBox object
38	var F = $.fancybox;
39
40	//Add helper object
41	F.helpers.media = {
42		beforeLoad : function(opts, obj) {
43			var href = obj.href || '',
44				type = false,
45				rez;
46
47			if ((rez = href.match(/(youtube\.com|youtu\.be)\/(v\/|u\/|embed\/|watch\?v=)?([^#\&\?]*).*/i))) {
48				href = '//www.youtube.com/embed/' + rez[3] + '?autoplay=1&autohide=1&fs=1&rel=0&enablejsapi=1&hd=1';
49				type = 'iframe';
50
51			} else if ((rez = href.match(/vimeo.com\/((channels|groups)\/(.*)\/)?(\d+)\/?(.*)/))) {
52				href = '//player.vimeo.com/video/' + rez[4] + '?hd=1&autoplay=1&show_title=1&show_byline=1&show_portrait=0&color=&fullscreen=1';
53				type = 'iframe';
54
55			} else if ((rez = href.match(/metacafe.com\/watch\/(\d+)\/?(.*)/))) {
56				href = '//www.metacafe.com/fplayer/' + rez[1] + '/.swf?playerVars=autoPlay=yes';
57				type = 'swf';
58
59			} else if ((rez = href.match(/dailymotion.com\/video\/(.*)\/?(.*)/))) {
60				href = '//www.dailymotion.com/swf/video/' + rez[1] + '?additionalInfos=0&autoStart=1';
61				type = 'swf';
62
63			} else if ((rez = href.match(/twitvid\.com\/([a-zA-Z0-9_\-\?\=]+)/i))) {
64				href = '//www.twitvid.com/embed.php?autoplay=0&guid=' + rez[1];
65				type = 'iframe';
66
67			} else if ((rez = href.match(/twitpic\.com\/(?!(?:place|photos|events)\/)([a-zA-Z0-9\?\=\-]+)/i))) {
68				href = '//twitpic.com/show/full/' + rez[1] + '/';
69				type = 'image';
70
71			} else if ((rez = href.match(/(instagr\.am|instagram\.com)\/p\/([a-zA-Z0-9_\-]+)\/?/i))) {
72				href = '//' + rez[1] + '/p/' + rez[2] + '/media/?size=l';
73				type = 'image';
74
75			} else if ((rez = href.match(/maps\.google\.com\/(\?ll=|maps\/?\?q=)(.*)/i))) {
76				href = '//maps.google.com/' + rez[1] + '' + rez[2] + '&output=' + (rez[2].indexOf('layer=c') > 0 ? 'svembed' : 'embed');
77				type = 'iframe';
78			}
79
80			if (type) {
81				obj.href = href;
82				obj.type = type;
83
84				obj.autoHeight = false;
85			}
86		}
87	}
88
89}(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.