Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
template.js.ckeditor.plugins.oembed.libs.jquery.oembed.min.js Maven / Gradle / Ivy
(function(a){function n(b,a){a=a?a:"";return b?n(--b,"0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz".charAt(Math.floor(60*Math.random()))+a):a}function p(b,a){var f=b.apiendpoint,e="",g,f=f+(0>=f.indexOf("?")?"?":"&"),f=f.replace("#","%23");if(null!==b.maxWidth&&("undefined"===typeof b.params.maxwidth||null===b.params.maxwidth))b.params.maxwidth=b.maxWidth;if(null!==b.maxHeight&&("undefined"===typeof b.params.maxheight||null===b.params.maxheight))b.params.maxheight=b.maxHeight;for(g in b.params)g!=
b.callbackparameter&&null!==b.params[g]&&(e+="&"+escape(g)+"="+b.params[g]);f+="format="+b.format+"&url="+escape(a)+e;"json"!=b.dataType&&(f+="&"+b.callbackparameter+"=?");return f}function m(b,k,f){a("#jqoembeddata").data(k,b.code);l.beforeEmbed.call(f,b);l.onEmbed.call(f,b);l.afterEmbed.call(f,b)}function o(b,k,f){if(void 0!=a("#jqoembeddata").data(k)&&"iframe"!=f.embedtag.tag){var e={code:a("#jqoembeddata").data(k)};m(e,k,b)}else if(f.yql){var e=f.yql.from||"htmlstring",g=f.yql.url?f.yql.url(k):
k,d="SELECT * FROM "+e+' WHERE url="'+g+'" and '+(/html/.test(e)?"xpath":"itemPath")+"='"+(f.yql.xpath||"/")+"'";"html"==e&&(d+=" and compat='html5'");e=a.extend({url:"http://query.yahooapis.com/v1/public/yql",dataType:"jsonp",data:{q:d,format:"json",env:"store://datatables.org/alltableswithkeys",callback:"?"},success:function(c){if(f.yql.xpath&&"//meta|//title|//link"==f.yql.xpath){var e={};null==c.query.results&&(c.query.results={meta:[]});for(var d=0,h=c.query.results.meta.length;d ").attr("src",j).attr("width",c).attr("height",h).attr("allowfullscreen",f.embedtag.allowfullscreen||"true").attr("allowscriptaccess",f.embedtag.allowfullscreen||"always").css("max-height",l.maxHeight||"auto").css("max-width",l.maxWidth||"auto");"embed"==d&&c.attr("type",f.embedtag.type||"application/x-shockwave-flash").attr("flashvars",k.replace(f.templateRegex,e));"iframe"==d&&c.attr("scrolling",
f.embedtag.scrolling||"no").attr("frameborder",f.embedtag.frameborder||"0");e={code:c};m(e,k,b)}else f.apiendpoint?(f.apikey&&(f.apiendpoint=f.apiendpoint.replace("_APIKEY_",l.apikeys[f.name])),e=a.extend({url:k.replace(f.templateRegex,f.apiendpoint),dataType:"jsonp",success:function(c){var d=a.extend({},c);d.code=f.templateData(c);m(d,k,b)},error:l.onError.call(b,k,f)},l.ajaxOptions||{}),a.ajax(e)):(e={code:k.replace(f.templateRegex,f.template)},m(e,k,b));else e=p(f,k),e=a.extend({url:e,dataType:f.dataType||
"jsonp",success:function(c){c=a.extend({},c);switch(c.type){case "file":case "photo":c.code=a.fn.oembed.getPhotoCode(k,c);break;case "video":case "rich":c.code=a.fn.oembed.getRichCode(k,c);break;default:c.code=a.fn.oembed.getGenericCode(k,c)}m(c,k,b)},error:l.onError.call(b,k,f)},l.ajaxOptions||{}),a.ajax(e)}function g(b){if(null===b)return null;var a,f={};for(a in b)null!==a&&(f[a.toLowerCase()]=b[a]);return f}a.fn.oembed=function(b,k,f){l=a.extend(!0,a.fn.oembed.defaults,k);var e="0rz.tw 1link.in 1url.com 2.gp 2big.at 2tu.us 3.ly 307.to 4ms.me 4sq.com 4url.cc 6url.com 7.ly a.gg a.nf aa.cx abcurl.net ad.vu adf.ly adjix.com afx.cc all.fuseurl.com alturl.com amzn.to ar.gy arst.ch atu.ca azc.cc b23.ru b2l.me bacn.me bcool.bz binged.it bit.ly bizj.us bloat.me bravo.ly bsa.ly budurl.com canurl.com chilp.it chzb.gr cl.lk cl.ly clck.ru cli.gs cliccami.info clickthru.ca clop.in conta.cc cort.as cot.ag crks.me ctvr.us cutt.us dai.ly decenturl.com dfl8.me digbig.com http://digg.com/[^/]+$ disq.us dld.bz dlvr.it do.my doiop.com dopen.us easyuri.com easyurl.net eepurl.com eweri.com fa.by fav.me fb.me fbshare.me ff.im fff.to fire.to firsturl.de firsturl.net flic.kr flq.us fly2.ws fon.gs freak.to fuseurl.com fuzzy.to fwd4.me fwib.net g.ro.lt gizmo.do gl.am go.9nl.com go.ign.com go.usa.gov goo.gl goshrink.com gurl.es hex.io hiderefer.com hmm.ph href.in hsblinks.com htxt.it huff.to hulu.com hurl.me hurl.ws icanhaz.com idek.net ilix.in is.gd its.my ix.lt j.mp jijr.com kl.am klck.me korta.nu krunchd.com l9k.net lat.ms liip.to liltext.com linkbee.com linkbun.ch liurl.cn ln-s.net ln-s.ru lnk.gd lnk.ms lnkd.in lnkurl.com lru.jp lt.tl lurl.no macte.ch mash.to merky.de migre.me miniurl.com minurl.fr mke.me moby.to moourl.com mrte.ch myloc.me myurl.in n.pr nbc.co nblo.gs nn.nf not.my notlong.com nsfw.in nutshellurl.com nxy.in nyti.ms o-x.fr oc1.us om.ly omf.gd omoikane.net on.cnn.com on.mktw.net onforb.es orz.se ow.ly ping.fm pli.gs pnt.me politi.co post.ly pp.gg profile.to ptiturl.com pub.vitrue.com qlnk.net qte.me qu.tc qy.fi r.im rb6.me read.bi readthis.ca reallytinyurl.com redir.ec redirects.ca redirx.com retwt.me ri.ms rickroll.it riz.gd rt.nu ru.ly rubyurl.com rurl.org rww.tw s4c.in s7y.us safe.mn sameurl.com sdut.us shar.es shink.de shorl.com short.ie short.to shortlinks.co.uk shorturl.com shout.to show.my shrinkify.com shrinkr.com shrt.fr shrt.st shrten.com shrunkin.com simurl.com slate.me smallr.com smsh.me smurl.name sn.im snipr.com snipurl.com snurl.com sp2.ro spedr.com srnk.net srs.li starturl.com su.pr surl.co.uk surl.hu t.cn t.co t.lh.com ta.gd tbd.ly tcrn.ch tgr.me tgr.ph tighturl.com tiniuri.com tiny.cc tiny.ly tiny.pl tinylink.in tinyuri.ca tinyurl.com tk. tl.gd tmi.me tnij.org tnw.to tny.com to.ly togoto.us totc.us toysr.us tpm.ly tr.im tra.kz trunc.it twhub.com twirl.at twitclicks.com twitterurl.net twitterurl.org twiturl.de twurl.cc twurl.nl u.mavrev.com u.nu u76.org ub0.cc ulu.lu updating.me ur1.ca url.az url.co.uk url.ie url360.me url4.eu urlborg.com urlbrief.com urlcover.com urlcut.com urlenco.de urli.nl urls.im urlshorteningservicefortwitter.com urlx.ie urlzen.com usat.ly use.my vb.ly vgn.am vl.am vm.lc w55.de wapo.st wapurl.co.uk wipi.es wp.me x.vu xr.com xrl.in xrl.us xurl.es xurl.jp y.ahoo.it yatuc.com ye.pe yep.it yfrog.com yhoo.it yiyd.com youtu.be yuarel.com z0p.de zi.ma zi.mu zipmyurl.com zud.me zurl.ws zz.gd zzang.kr ›.ws ✩.ws ✿.ws ❥.ws ➔.ws ➞.ws ➡.ws ➨.ws ➯.ws ➹.ws ➽.ws".split(" ");
0===a("#jqoembeddata").length&&a(' ').appendTo("body");return this.each(function(){var k=a(this),d=b&&(!b.indexOf("http://")||!b.indexOf("https://"))?b:k.attr("href"),c;f?l.onEmbed=f:l.onEmbed||(l.onEmbed=function(b){a.fn.oembed.insertCode(this,l.embedMethod,b)});if(null!==d){for(var h=0,j=e.length;h