Sync plugins from current page
Signed-off-by: Adrian Nöthlich <git@promasu.tech>
This commit is contained in:
1
wp-content/plugins/wp-youtube-lyte/lyte/index.html
Normal file
1
wp-content/plugins/wp-youtube-lyte/lyte/index.html
Normal file
@@ -0,0 +1 @@
|
||||
<html><body><p><a href="http://wordpress.org/extend/plugins/wp-youtube-lyte/">WP-YouTube-Lyte</a> is a WordPress plugin that inserts "Lite YouTube Embeds" in your blog. These look and feel like normal embedded YouTube, but don't use Flash unless clicked on, thereby <a href="http://blog.futtta.be/2010/04/23/high-performance-youtube-embeds/" title="performance tests comparing youtube embeds with lyte embeds">reducing download size & rendering time substantially</a>. The plugin can optionally use <a href="http://apiblog.youtube.com/2010/07/new-way-to-embed-youtube-videos.html">YouTube's new experimental HTML5 embed code</a>, meaning you can have an entirely flash-less YouTube experience on your blog.</p><p>Up to date info on WP-YouTube-Lyte <a href="http://blog.futtta.be/tag/lyte/" title="more about Lyte on my blog">can be found on blog.futtta.be</a>, where you can also find <a href="http://blog.futtta.be/tag/wordpress" title="blog.futtta.be about WordPress">posts about WordPress</a> and <a href="http://blog.futtta.be/category/internet/" title="about browsers, development and mobile web on blog.futtta.be">Web Technology in general</a>.</p></body></html>
|
||||
1
wp-content/plugins/wp-youtube-lyte/lyte/lyte-min.js
vendored
Normal file
1
wp-content/plugins/wp-youtube-lyte/lyte/lyte-min.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
(function(e){var t=document;var n="https";e.te=function(){if(!r){var r=1;lts=e.getElementsByClassName("lyMe","div");for(var s=0,o=lts.length;s<o;s+=1){p=lts[s];vid=p.id.substring(4);if(mOs===null){cN=p.className.replace(/lyMe/,"lyte")+" lP";p.className=cN;sprite=bU+"lytesprite.png";e.addCss(".lyte .ctrl, .lyte .Rctrl, .lyte .Lctrl, .lyte .play { background-image: url("+sprite+"); }");if(cN.indexOf("audio")===-1){bgId="lyte_"+vid;thumb=t.getElementById(bgId).getAttribute("data-src");if(thumb!==""){bgCss="#"+bgId+" { background-image: url("+thumb+"); }";e.addCss(bgCss)}else{scr=t.createElement("script");scr.src=n+"://gdata.youtube.com/feeds/api/playlists/"+vid+"?v=2&alt=json-in-script&callback=ly.parsePL&fields=id,entry";scr.type="text/javascript";t.getElementsByTagName("head")[0].appendChild(scr)}}p.onclick=e.play}else{e.play(p.id)}}}var r=""};e.parsePL=function(t){thumb=t.feed.entry[0].media$group.media$thumbnail[1].url;if(n=="https"&&thumb.indexOf("https"==-1)){thumb=thumb.replace("http://","https://")}t_id=t.feed.id.$t.match(/:playlist:(PL[a-zA-Z0-9_]+)/);id="lyte_"+t_id[1];bgCss="#"+id+" { background-image: url("+thumb+"); }";e.addCss(bgCss)};e.getQ=function(e){qsa="";if(rqs=e.className.match(/qsa_(.*)\s/,"$1"))qsa=rqs[1].replace(/\\([\&\=\?])/g,"$1");return qsa};e.play=function(r){if(typeof r==="string"){tH=t.getElementById(r);aP=0}else{tH=this;tH.onclick="";aP=1}vid=tH.id.substring(4);hidef=0;if(tH.className.indexOf("hidef")!==-1){hidef="1&vq=hd720"}if(tH.className.indexOf("playlist")===-1){eU=n+"://www.youtube-nocookie.com/embed/"+vid+"?"}else{eU=n+"://www.youtube-nocookie.com/embed/videoseries?list="+vid+"&"}qsa=e.getQ(tH);if(tH.className.indexOf("audio")!==-1&&aP==1){qsa+="&autohide=0";aHgh="438";aSt="position:relative;top:-400px;"}else if(tH.className.indexOf("audio")!==-1&&aP==0){tH.parentNode.style.height="";tH.style.height="";aHgh=tH.clientHeight;aSt="height:"+aHgh+"px !important;"}else{aHgh=tH.clientHeight;aSt=""}tH.innerHTML='<iframe id="iF_'+vid+'" width="'+tH.clientWidth*2+'" height="'+aHgh+'" src="'+eU+"autoplay="+aP+"&controls=1&wmode=opaque&rel=0&egm=0&iv_load_policy=3&hd="+hidef+qsa+'" frameborder="0" style="'+aSt+'" allowfullscreen allow="autoplay"></iframe>';if(typeof tH.firstChild.getAttribute("kabl")=="string")tH.innerHTML="Please check Karma Blocker's config.";if(aP==0){window.addEventListener("orientationchange",function(){t.getElementById(r).width=t.getElementById(r).parentNode.clientWidth},false)}};e.getElementsByClassName=function(e,n,r){if(t.getElementsByClassName){getElementsByClassName=function(e,n,r){r=r||t;var i=r.getElementsByClassName(e),s=n?new RegExp("\\b"+n+"\\b","i"):null,o=[],u;for(var a=0,f=i.length;a<f;a+=1){u=i[a];if(!s||s.test(u.nodeName)){o.push(u)}}return o}}else if(t.evaluate){getElementsByClassName=function(e,n,r){n=n||"*";r=r||t;var i=e.split(" "),s="",o="http://www.w3.org/1999/xhtml",u=t.documentElement.namespaceURI===o?o:null,a=[],f,l;for(var c=0,h=i.length;c<h;c+=1){s+="[contains(concat(' ', @class, ' '), ' "+i[c]+" ')]"}try{f=t.evaluate(".//"+n+s,r,u,0,null)}catch(p){f=t.evaluate(".//"+n+s,r,null,0,null)}while(l=f.iterateNext()){a.push(l)}return a}}else{getElementsByClassName=function(e,n,r){n=n||"*";r=r||t;var i=e.split(" "),s=[],o=n==="*"&&r.all?r.all:r.getElementsByTagName(n),u,a=[],f;for(var l=0,c=i.length;l<c;l+=1){s.push(new RegExp("(^|\\s)"+i[l]+"(\\s|$)"))}for(var h=0,p=o.length;h<p;h+=1){u=o[h];f=false;for(var v=0,m=s.length;v<m;v+=1){f=s[v].test(u.className);if(!f){break}}if(f){a.push(u)}}return a}}return getElementsByClassName(e,n,r)};e.addCss=function(e){var n=t.createElement("style");n.type="text/css";if(n.styleSheet){n.styleSheet.cssText=e}else{n.appendChild(document.createTextNode(e))}t.getElementsByTagName("head")[0].appendChild(n)}})(window.ly=window.ly||{});(function(){var e=window;var t=document;if(e.addEventListener){e.addEventListener("load",ly.te,false);t.addEventListener("DomContentLoaded",function(){setTimeout("ly.te()",750)},false)}else{e.onload=ly.te;setTimeout("ly.te()",1e3)}})()
|
||||
191
wp-content/plugins/wp-youtube-lyte/lyte/lyte.js
Normal file
191
wp-content/plugins/wp-youtube-lyte/lyte/lyte.js
Normal file
@@ -0,0 +1,191 @@
|
||||
(function( ly ) {
|
||||
var d = document;
|
||||
|
||||
var sch="https";
|
||||
|
||||
ly.te = function() {
|
||||
if (!rn) {
|
||||
var rn=1;
|
||||
lts = ly.getElementsByClassName("lyMe", "div");
|
||||
|
||||
for (var i = 0, lln = lts.length; i < lln; i += 1) {
|
||||
p = lts[i];
|
||||
vid = p.id.substring(4);
|
||||
if (mOs === null) {
|
||||
cN = p.className.replace(/lyMe/, "lyte")+ " lP";
|
||||
p.className = cN;
|
||||
sprite=(bU+"lytesprite.png");
|
||||
ly.addCss(".lyte .ctrl, .lyte .Rctrl, .lyte .Lctrl, .lyte .play { background-image: url("+sprite+"); }");
|
||||
if (cN.indexOf('audio') === -1) {
|
||||
bgId="lyte_"+vid;
|
||||
thumb=d.getElementById(bgId).getAttribute("data-src");
|
||||
if (thumb !== "") {
|
||||
bgCss="#"+bgId+" { background-image: url("+thumb+"); }";
|
||||
ly.addCss(bgCss);
|
||||
} else {
|
||||
scr = d.createElement('script');
|
||||
scr.src = sch+"://gdata.youtube.com/feeds/api/playlists/"+ vid +"?v=2&alt=json-in-script&callback=ly.parsePL&fields=id,entry";
|
||||
scr.type = "text/javascript";
|
||||
d.getElementsByTagName('head')[0].appendChild(scr);
|
||||
}
|
||||
}
|
||||
p.onclick = ly.play;
|
||||
} else {
|
||||
ly.play(p.id);
|
||||
}
|
||||
}
|
||||
}
|
||||
var rn="";
|
||||
}
|
||||
|
||||
ly.parsePL = function(r) {
|
||||
thumb=r.feed.entry[0].media$group.media$thumbnail[1].url;
|
||||
if ((sch=="https")&&(thumb.indexOf('https'==-1))) {thumb=thumb.replace("http://","https://");}
|
||||
t_id=r.feed.id.$t.match(/:playlist:(PL[a-zA-Z0-9_]+)/);
|
||||
id="lyte_"+t_id[1];
|
||||
bgCss="#"+id+" { background-image: url("+thumb+"); }";
|
||||
ly.addCss(bgCss);
|
||||
}
|
||||
|
||||
ly.getQ = function(nD) {
|
||||
qsa="";
|
||||
if (rqs=nD.className.match(/qsa_(.*)\s/,"$1")) qsa=rqs[1].replace(/\\([\&\=\?])/g, "$1");
|
||||
return qsa;
|
||||
}
|
||||
|
||||
ly.play = function(id) {
|
||||
if (typeof id === 'string') {
|
||||
tH=d.getElementById(id);
|
||||
aP=0;
|
||||
} else {
|
||||
tH=this;
|
||||
tH.onclick="";
|
||||
aP=1;
|
||||
}
|
||||
|
||||
vid=tH.id.substring(4);
|
||||
|
||||
hidef=0;
|
||||
if (tH.className.indexOf("hidef") !== -1) { hidef="1&vq=hd720" }
|
||||
|
||||
if (tH.className.indexOf("playlist") === -1) {
|
||||
eU=sch+"://www.youtube-nocookie.com/embed/" + vid + "?"
|
||||
} else {
|
||||
eU=sch+"://www.youtube-nocookie.com/embed/videoseries?list=" + vid + "&"
|
||||
}
|
||||
|
||||
qsa=ly.getQ(tH);
|
||||
|
||||
if ((tH.className.indexOf("audio") !== -1) && (aP == 1)) {
|
||||
qsa+="&autohide=0";aHgh="438";aSt="position:relative;top:-400px;"
|
||||
} else if ((tH.className.indexOf("audio") !== -1) && (aP == 0)) {
|
||||
tH.parentNode.style.height="";
|
||||
tH.style.height="";
|
||||
aHgh=tH.clientHeight;
|
||||
aSt="height:"+aHgh+"px !important;";
|
||||
} else {
|
||||
aHgh=tH.clientHeight;
|
||||
aSt="";
|
||||
}
|
||||
|
||||
tH.innerHTML="<iframe id=\"iF_" + vid + "\" width=\"" + tH.clientWidth*2 + "\" height=\"" + aHgh + "\" src=\""+eU+"autoplay="+aP+"&controls=1&wmode=opaque&rel=0&egm=0&iv_load_policy=3&hd="+hidef+qsa+"\" frameborder=\"0\" style=\"" + aSt + "\" allow="autoplay" allowfullscreen></iframe>"
|
||||
|
||||
if(typeof tH.firstChild.getAttribute('kabl')=="string") tH.innerHTML="Please check Karma Blocker's config.";
|
||||
|
||||
if (aP==0){window.addEventListener("orientationchange", function() {d.getElementById(id).width=d.getElementById(id).parentNode.clientWidth;}, false);}
|
||||
}
|
||||
|
||||
ly.getElementsByClassName = function(className, tag, elm) {
|
||||
if (d.getElementsByClassName) {
|
||||
getElementsByClassName = function (className, tag, elm) {
|
||||
elm = elm || d;
|
||||
var elements = elm.getElementsByClassName(className),
|
||||
nodeName = (tag) ? new RegExp("\\b" + tag + "\\b", "i") : null,
|
||||
returnElements = [],
|
||||
current;
|
||||
for (var i = 0, il = elements.length; i < il; i += 1) {
|
||||
current = elements[i];
|
||||
if (!nodeName || nodeName.test(current.nodeName)) {
|
||||
returnElements.push(current)
|
||||
}
|
||||
}
|
||||
return returnElements
|
||||
}
|
||||
} else if (d.evaluate) {
|
||||
getElementsByClassName = function (className, tag, elm) {
|
||||
tag = tag || "*";
|
||||
elm = elm || d;
|
||||
var classes = className.split(" "),
|
||||
classesToCheck = "",
|
||||
xhtmlNamespace = "http://www.w3.org/1999/xhtml",
|
||||
namespaceResolver = (d.documentElement.namespaceURI === xhtmlNamespace) ? xhtmlNamespace : null,
|
||||
returnElements = [],
|
||||
elements, node;
|
||||
for (var j = 0, jl = classes.length; j < jl; j += 1) {
|
||||
classesToCheck += "[contains(concat(' ', @class, ' '), ' " + classes[j] + " ')]"
|
||||
}
|
||||
try {
|
||||
elements = d.evaluate(".//" + tag + classesToCheck, elm, namespaceResolver, 0, null)
|
||||
} catch (e) {
|
||||
elements = d.evaluate(".//" + tag + classesToCheck, elm, null, 0, null)
|
||||
}
|
||||
while ((node = elements.iterateNext())) {
|
||||
returnElements.push(node)
|
||||
}
|
||||
return returnElements
|
||||
}
|
||||
} else {
|
||||
getElementsByClassName = function (className, tag, elm) {
|
||||
tag = tag || "*";
|
||||
elm = elm || d;
|
||||
var classes = className.split(" "),
|
||||
classesToCheck = [],
|
||||
elements = (tag === "*" && elm.all) ? elm.all : elm.getElementsByTagName(tag),
|
||||
current, returnElements = [],
|
||||
match;
|
||||
for (var k = 0, kl = classes.length; k < kl; k += 1) {
|
||||
classesToCheck.push(new RegExp("(^|\\s)" + classes[k] + "(\\s|$)"))
|
||||
}
|
||||
for (var l = 0, ll = elements.length; l < ll; l += 1) {
|
||||
current = elements[l];
|
||||
match = false;
|
||||
for (var m = 0, ml = classesToCheck.length; m < ml; m += 1) {
|
||||
match = classesToCheck[m].test(current.className);
|
||||
if (!match) {
|
||||
break
|
||||
}
|
||||
}
|
||||
if (match) {
|
||||
returnElements.push(current)
|
||||
}
|
||||
}
|
||||
return returnElements
|
||||
}
|
||||
}
|
||||
return getElementsByClassName(className, tag, elm)
|
||||
};
|
||||
|
||||
ly.addCss = function(cssCode) {
|
||||
var stEl = d.createElement("style");
|
||||
stEl.type = "text/css";
|
||||
if (stEl.styleSheet) {
|
||||
stEl.styleSheet.cssText = cssCode;
|
||||
} else {
|
||||
stEl.appendChild(document.createTextNode(cssCode));
|
||||
}
|
||||
d.getElementsByTagName("head")[0].appendChild(stEl);
|
||||
}
|
||||
}
|
||||
( window.ly = window.ly || {} ));
|
||||
|
||||
(function(){
|
||||
var w = window;
|
||||
var d = document;
|
||||
|
||||
if(w.addEventListener) {
|
||||
w.addEventListener('load', ly.te, false);
|
||||
d.addEventListener('DomContentLoaded', function(){setTimeout("ly.te()",750)}, false);
|
||||
} else {
|
||||
w.onload=ly.te;
|
||||
setTimeout("ly.te()",1000);
|
||||
}}())
|
||||
BIN
wp-content/plugins/wp-youtube-lyte/lyte/lytesprite.png
Normal file
BIN
wp-content/plugins/wp-youtube-lyte/lyte/lytesprite.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.7 KiB |
BIN
wp-content/plugins/wp-youtube-lyte/lyte/lytesprite_2014.png
Normal file
BIN
wp-content/plugins/wp-youtube-lyte/lyte/lytesprite_2014.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.8 KiB |
BIN
wp-content/plugins/wp-youtube-lyte/lyte/lytesprite_claes.png
Normal file
BIN
wp-content/plugins/wp-youtube-lyte/lyte/lytesprite_claes.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 9.8 KiB |
Reference in New Issue
Block a user