PageSourceSearch

https://opennetworking.org/wp-content/cache/autoptimize/js/autopti…?ver=3beab9d260aa9fa03844f766a78b3fb9

js opennetworking.org collected 2026-10-01 10:45:03 UTC 4,347 bytes, 69 lines download raw bytes

vendor: 4,347 bytes, lines 1-69
1;
2/*!
3 * Media helper for fancyBox
4 * version: 1.0.6 (Fri, 14 Jun 2013)
5 * @requires fancyBox v2.0 or later
6 *
7 * Usage:
8 *     $(".fancybox").fancybox({
9 *         helpers : {
10 *             media: true
11 *         }
12 *     });
13 *
14 * Set custom URL parameters:
15 *     $(".fancybox").fancybox({
16 *         helpers : {
17 *             media: {
18 *                 youtube : {
19 *                     params : {
20 *                         autoplay : 0
21 *                     }
22 *                 }
23 *             }
24 *         }
25 *     });
26 *
27 * Or:
28 *     $(".fancybox").fancybox({,
29 *         helpers : {
30 *             media: true
31 *         },
32 *         youtube : {
33 *             autoplay: 0
34 *         }
35 *     });
36 *
37 *  Supports:
38 *
39 *      Youtube
40 *          http://www.youtube.com/watch?v=opj24KnzrWo
41 *          http://www.youtube.com/embed/opj24KnzrWo
42 *          http://youtu.be/opj24KnzrWo
43 *   http://www.youtube-nocookie.com/embed/opj24KnzrWo
44 *      Vimeo
45 *          http://vimeo.com/40648169
46 *          http://vimeo.com/channels/staffpicks/38843628
47 *          http://vimeo.com/groups/surrealism/videos/36516384
48 *          http://player.vimeo.com/video/45074303
49 *      Metacafe
50 *          http://www.metacafe.com/watch/7635964/dr_seuss_the_lorax_movie_trailer/
51 *          http://www.metacafe.com/watch/7635964/
52 *      Dailymotion
53 *          http://www.dailymotion.com/video/xoytqh_dr-seuss-the-lorax-premiere_people
54 *      Twitvid
55 *          http://twitvid.com/QY7MD
56 *      Twitpic
57 *          http://twitpic.com/7p93st
58 *      Instagram
59 *          http://instagr.am/p/IejkuUGxQn/
60 *          http://instagram.com/p/IejkuUGxQn/
61 *      Google maps
62 *          http://maps.google.com/maps?q=Eiffel+Tower,+Avenue+Gustave+Eiffel,+Paris,+France&t=h&z=17
63 *          http://maps.google.com/?ll=48.857995,2.294297&spn=0.007666,0.021136&t=m&z=16
64 *          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
65 */
66(function($){"use strict";var F=$.fancybox,format=function(url,rez,params){params=params||'';if($.type(params)==="object"){params=$.param(params,true);}
67$.each(rez,function(key,value){url=url.replace('$'+key,value||'');});if(params.length){url+=(url.indexOf('?')>0?'&':'?')+params;}
68return url;};F.helpers.media={defaults:{youtube:{matcher:/(youtube\.com|youtu\.be|youtube-nocookie\.com)\/(watch\?v=|v\/|u\/|embed\/?)?(videoseries\?list=(.*)|[\w-]{11}|\?listType=(.*)&list=(.*)).*/i,params:{autoplay:1,autohide:1,fs:1,rel:0,hd:1,wmode:'opaque',enablejsapi:1,ps:'docs',controls:1},type:'iframe',url:'//www.youtube.com/embed/$3'},vimeo:{matcher:/(?:vimeo(?:pro)?.com)\/(?:[^\d]+)?(\d+)(?:.*)/,params:{autoplay:1,hd:1,show_title:1,show_byline:1,show_portrait:0,fullscreen:1},type:'iframe',url:'//player.vimeo.com/video/$1'},metacafe:{matcher:/metacafe.com\/(?:watch|fplayer)\/([\w\-]{1,10})/,params:{autoPlay:'yes'},type:'swf',url:function(rez,params,obj){obj.swf.flashVars='playerVars='+$.param(params,true);return'//www.metacafe.com/fplayer/'+rez[1]+'/.swf';}},dailymotion:{matcher:/dailymotion.com\/video\/(.*)\/?(.*)/,params:{additionalInfos:0,autoStart:1},type:'swf',url:'//www.dailymotion.com/swf/video/$1'},twitvid:{matcher:/twitvid\.com\/([a-zA-Z0-9_\-\?\=]+)/i,params:{autoplay:0},type:'iframe',url:'//www.twitvid.com/embed.php?guid=$1'},twitpic:{matcher:/twitpic\.com\/(?!(?:place|photos|events)\/)([a-zA-Z0-9\?\=\-]+)/i,type:'image',url:'//twitpic.com/show/full/$1/'},instagram:{matcher:/(instagr\.am|instagram\.com)\/p\/([a-zA-Z0-9_\-]+)\/?/i,type:'image',url:'//$1/p/$2/media/?size=l'},google_maps:{matcher:/maps\.google\.([a-z]{2,3}(\.[a-z]{2})?)\/(\?ll=|maps\?)(.*)/i,type:'iframe',url:function(rez){return'//maps.google.'+rez[1]+'/'+rez[3]+''+rez[4]+'&output='+(rez[4].indexOf('layer=c')>0?'svembed':'embed');}}},beforeLoad:function(opts,obj){var url=obj.href||'',type=false,what,item,rez,params;for(what in opts){if(opts.hasOwnProperty(what)){item=opts[what];rez=url.match(item.matcher);if(rez){type=item.type;params=$.extend(true,{},item.params,obj[what]||($.isPlainObject(opts[what])?opts[what].params:null));url=$.type(item.url)==="function"?item.url.call(this,rez,params,obj):format(item.url,rez,params);break;}}}
69if(type){obj.href=url;obj.type=type;obj.autoHeight=false;}}};}(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.