Changeset 718422
- Timestamp:
- 05/26/2013 08:49:14 AM (13 years ago)
- Location:
- javascript-flickr-badge
- Files:
-
- 1 deleted
- 3 edited
- 7 copied
-
tags/2.2 (copied) (copied from javascript-flickr-badge/trunk)
-
tags/2.2/javascript-flickr-badge-es_ES.mo (copied) (copied from javascript-flickr-badge/trunk/javascript-flickr-badge-es_ES.mo)
-
tags/2.2/javascript-flickr-badge-es_ES.po (copied) (copied from javascript-flickr-badge/trunk/javascript-flickr-badge-es_ES.po)
-
tags/2.2/javascript-flickr-badge.js (deleted)
-
tags/2.2/javascript-flickr-badge.min.js (copied) (copied from javascript-flickr-badge/trunk/javascript-flickr-badge.min.js) (1 diff)
-
tags/2.2/javascript-flickr-badge.php (copied) (copied from javascript-flickr-badge/trunk/javascript-flickr-badge.php) (1 diff)
-
tags/2.2/readme.txt (copied) (copied from javascript-flickr-badge/trunk/readme.txt) (2 diffs)
-
tags/2.2/screenshot-1.png (copied) (copied from javascript-flickr-badge/trunk/screenshot-1.png)
-
trunk/javascript-flickr-badge.min.js (modified) (1 diff)
-
trunk/javascript-flickr-badge.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
javascript-flickr-badge/tags/2.2/javascript-flickr-badge.min.js
r717927 r718422 1 1 var jsfbcb=0; 2 function jsFlickrBadge( u,g){var b,h;b=encodeURIComponent(g.flickrId);var m=g.size,A=g.rows,p=g.columns,s=g.animation,x=1E3*g.animationSpeed,v=1E3*g.animationPause,t=function(a,C){var b=Math.floor(Math.random()*a);return 1<a&&b==C?t(a,C):b},y=function(a,C){var b,g;for(b in a)if(a.hasOwnProperty(b)&&(g=C(a[b],b),void 0!==g))break;return g},J=function(a){var b=a?a.split("px"):[];return 1<b.length?Number(b[0]):a},q=function(a){return!a||isNaN(a)?0:Number(a)},K=function(a){return a&&"[object Array]"==Object.prototype.toString.apply(a)},3 V=function(a){var b=0,g=a.length;return function(){var m=a[b];b=(b+1)%g;return m}},n=function(a){var b=document.documentElement;return K(a)?y(a,function(a){return b.style.hasOwnProperty(a)?a:void 0}):n(["-webkit-"+a,"-moz-"+a,"-o-"+a,a])},D=n("transition"),W=n("perspective"),O=n("backface-visibility"),E=n("transform"),P=n("transform-style"),F=n("box-shadow");"random"==s&&(s=["shuffle","zoom","vscroll","flipX","flipY"][t(3)]);"group"==g.feed?b="groups_pool.gne?id="+b:"contacts"==g.feed?b="photos_friends.gne?user_id="+4 b:"contactsAll"== g.feed?b="photos_friends.gne?user_id="+b+"&displayAll=1":"friends"==g.feed?b="photos_friends.gne?user_id="+b+"&friends=1":"friendsAll"==g.feed?b="photos_friends.gne?user_id="+b+"&friends=1&displayAll=1":"favorites"==g.feed?b="photos_faves.gne?id="+b:(b="photos_public.gne?id="+b,g.tags&&(b+="&tags=".join(",",g.tags)));h="jsFlickrBadge"+jsfbcb++;window[h]=function(a){function b(L,k){var d;d=L.currentStyle?L.currentStyle[k]:window.getComputedStyle(L,null)[k];return J(d)}function g(b,5 k,d,c){var a=d/1E3+"s ease-in-out",e=[];console.info("animate",k);K(b)||(b=[b]);y(k,function(b,d){e.push(d+" "+a)});y(b,function(b){b.style[D]=e.join(",");b.img&&(b.img.style[D]=e.join(","));y(k,function(d,c){c==F&&b.img?b.img.style[c]=d:b.style[c]=d;if(("width"==c||"height"==c)&&b.img)b.img.style[c]=d})});c&&window.setTimeout(c,d)}function h(a,k,d,c){K(a)||(a=[a]);y(a,function(c){g(c,{top:q(b(c,"top"))+k.y+"px",left:q(b(c,"left"))+k.x+"px"},d)});window.setTimeout(c,d)}function n(a,k,d){var c=document.createElement("a"); 6 null!=k&&null!=d&&(G.appendChild(c),e||(e={left:q(b(c,"marginLeft")),right:q(b(c,"marginRight")),top:q(b(c,"marginTop")),bottom:q(b(c,"marginBottom")),boxShadow:b(c,F)||"",zIndex:q(b(c,"zIndex"))},e.height=e.top+m+e.bottom,e.width=e.left+m+e.right,u.style.height=A*e.height+"px",u.style.width=p*e.width+"px"),a.coords={row:k,col:d});c.href=a.link;c.target="_blank";c.title=a.title;c.rel="nofollow";c.style.position="absolute";k&&(c.style.top=k*e.height+"px");d&&(c.style.left=d*e.width+"px");c.style.width= 7 m+"px";c.style.height=m+"px";c.style.border="none";c.style.padding="0";c.style.margin="0";c.img=document.createElement("img");c.img.alt=c.img.title=a.title;c.img.src=a.media.m.replace(/_m\.jpg/,"_s.jpg");c.img.style.width=m+"px";c.img.style.maxWidth="100%";c.img.style.height=m+"px";c.img.style.border="none";c.img.style.padding="0";c.img.style.margin="0";c.appendChild(c.img);c.photo=a;return c}function M(b){var a=t(w.length,B.index),d=w[a],c=d.photo.coords,f=Q.splice(0,1)[0],l=n(f,c.row,c.col),m={},8 h={};B.index=a;d.style.zIndex=e.zIndex+1;l.img.style[E]="rotate"+b+"(-180deg)";l.img.style.position="absolute";l.img.style.top="0";l.img.style.left="0";l.img.style.zIndex=e.zIndex+2;d.style[W]="200px";d.img.style[O]=l.img.style[O]="hidden";d.img.style[P]=l.img.style[P]="preserve-3d";d.img.style.zIndex=e.zIndex+3;m[E]="rotate"+b+"(180deg)";h[E]="rotate"+b+"(0deg)";d.appendChild(l.img);window.setTimeout(function(){g(l.img,h,x);g(d.img,m,x,function(){d.style[D]="inherit";d.style[E]="inherit";var e=n(f,9 c.row,c.col);d.parentNode.replaceChild(e,d);w.splice(a,1,e);Q.push(d.photo);M(b)})},v)}function R(){var a=t(p,B.x),k=t(p,B.y),d=r[k][a],c=1==t(2),f=1==t(2),l={height:m+"px",width:m+"px"},h={height:2*m+e.top+e.bottom+"px",width:2*m+e.left+e.right+"px"};l[F]=e.boxShadow;h[F]="5px 5px 10px rgba(0, 0, 0, 0.75)";B={x:a,y:k};0==a?f=!1:a==p-1&&(f=!0);0==k?c=!1:k==A-1&&(c=!0);c&&(l.top=q(b(d,"top"))+"px",h.top=J(l.top)-e.height+"px");f&&(l.left=q(b(d,"left"))+"px",h.left=J(l.left)-e.width+"px");d.style.zIndex= 10 e.zIndex+1;g(d,h,x,function(){window.setTimeout(function(){g(d,l,x,function(){d.style.zIndex=e.zIndex;window.setTimeout(R,v)})},v)})}function S(){var b=[],a;for(a=0;a<p;a++)b[a]=n(T(),A,a),w.push(b[a]);window.setTimeout(function(){h(w,{x:0,y:-e.height},x,function(){y(w.splice(0,p),function(b){b.parentNode.removeChild(b)});S()})},v)}function U(){var b=[],a,d={};0<f.row&&"d"!=f.last&&b.push({row:f.row-1,col:f.col,last:"u"});f.row+1<r.length&&"u"!=f.last&&b.push({row:f.row+1,col:f.col,last:"d"});0<f.col&& 11 "r"!=f.last&&b.push({row:f.row,col:f.col-1,last:"l"});f.col+1<r[0].length&&"l"!=f.last&&b.push({row:f.row,col:f.col+1,last:"r"});a=b[t(b.length)];f.col>a.col?(d.x=e.width,d.y=0):f.col<a.col?(d.x=-e.width,d.y=0):f.row>a.row?(d.x=0,d.y=e.height):f.row<a.row&&(d.x=0,d.y=-e.height);h(r[a.row][a.col],d,x,function(){r[f.row][f.col]=r[a.row][a.col];delete r[a.row][a.col];f=a;window.setTimeout(U,v)})}var T=V(a.items),e,N=A*p,Q=a.items.slice(N),B={},f,r=[],w=[],G,z,H,I;"shuffle"==s&&(N--,f={row:A-1,col:p- 12 1});for(;u.firstChild;)u.removeChild(u.firstChild);G=document.createElement("div");G.style.position="relative";u.appendChild(G);for(a=0;a<N;a++)z=T(),H=Math.floor(a/p),I=a%p,z=n(z,H,I),0==I?r[H]=[z]:r[H][I]=z,w.push(z);D&&("shuffle"==s?window.setTimeout(U,v):"vscroll"==s?(u.style.overflow="hidden",S()):"zoom"==s?window.setTimeout(R,v):"flipX"==s?M("X"):"flipY"==s&&M("Y"))};b="http://api.flickr.com/services/feeds/"+b+"&lang=en-us&format=json&jsoncallback="+h;h=document.createElement("script");h.type= 13 "text/javascript";h.async=!0;h.src=b;document.body.appendChild(h)};2 function jsFlickrBadge(t,f){var b,k;b=encodeURIComponent(f.flickrId);var h=f.size,z=f.rows,n=f.columns,r=f.animation,w=1E3*f.animationSpeed,u=1E3*f.animationPause,s=function(a,M){var b=Math.floor(Math.random()*a);return 1<a&&b==M?s(a,M):b},x=function(a,b){var f,h;for(f in a)if(a.hasOwnProperty(f)&&(h=b(a[f],f),void 0!==h))break;return h},I=function(a){var b=a?a.split("px"):[];return 1<b.length?Number(b[0]):a},p=function(a){return!a||isNaN(a)?0:Number(a)},B=function(a){return a&&"[object Array]"==Object.prototype.toString.apply(a)}, 3 U=function(a){var b=0,f=a.length;return function(){var h=a[b];b=(b+1)%f;return h}},m=function(a){var b=document.documentElement;return B(a)?x(a,function(a){return b.style.hasOwnProperty(a)?a:void 0}):m(["-webkit-"+a,"-moz-"+a,"-o-"+a,a])},C=m("transition"),V=m("perspective"),N=m("backface-visibility"),D=m("transform"),O=m("transform-style"),E=m("box-shadow");"random"==r&&(r=["shuffle","zoom","vscroll","flipX","flipY"][s(3)]);"group"==f.feed?b="groups_pool.gne?id="+b:"contacts"==f.feed?b="photos_friends.gne?user_id="+ 4 b:"contactsAll"==f.feed?b="photos_friends.gne?user_id="+b+"&displayAll=1":"friends"==f.feed?b="photos_friends.gne?user_id="+b+"&friends=1":"friendsAll"==f.feed?b="photos_friends.gne?user_id="+b+"&friends=1&displayAll=1":"favorites"==f.feed?b="photos_faves.gne?id="+b:(b="photos_public.gne?id="+b,f.tags&&(B(f.tags)?b+="&tags="+f.tags.join(","):f.tags.split&&(b+="&tags="+f.tags.split(/ ,;/).join(","))));k="jsFlickrBadge"+jsfbcb++;window[k]=function(a){function b(J,l){var d;d=J.currentStyle?J.currentStyle[l]: 5 window.getComputedStyle(J,null)[l];return I(d)}function f(b,l,d,c){var a=d/1E3+"s ease-in-out",e=[];console.info("animate",l);B(b)||(b=[b]);x(l,function(b,d){e.push(d+" "+a)});x(b,function(b){b.style[C]=e.join(",");b.img&&(b.img.style[C]=e.join(","));x(l,function(d,c){c==E&&b.img?b.img.style[c]=d:b.style[c]=d;if(("width"==c||"height"==c)&&b.img)b.img.style[c]=d})});c&&window.setTimeout(c,d)}function k(a,l,d,c){B(a)||(a=[a]);x(a,function(c){f(c,{top:p(b(c,"top"))+l.y+"px",left:p(b(c,"left"))+l.x+"px"}, 6 d)});window.setTimeout(c,d)}function m(a,l,d){var c=document.createElement("a");null!=l&&null!=d&&(F.appendChild(c),e||(e={left:p(b(c,"marginLeft")),right:p(b(c,"marginRight")),top:p(b(c,"marginTop")),bottom:p(b(c,"marginBottom")),boxShadow:b(c,E)||"",zIndex:p(b(c,"zIndex"))},e.height=e.top+h+e.bottom,e.width=e.left+h+e.right,t.style.height=z*e.height+"px",t.style.width=n*e.width+"px"),a.coords={row:l,col:d});c.href=a.link;c.target="_blank";c.title=a.title;c.rel="nofollow";c.style.position="absolute"; 7 l&&(c.style.top=l*e.height+"px");d&&(c.style.left=d*e.width+"px");c.style.width=h+"px";c.style.height=h+"px";c.style.border="none";c.style.padding="0";c.style.margin="0";c.img=document.createElement("img");c.img.alt=c.img.title=a.title;c.img.src=a.media.m.replace(/_m\.jpg/,"_s.jpg");c.img.style.width=h+"px";c.img.style.maxWidth="100%";c.img.style.height=h+"px";c.img.style.border="none";c.img.style.padding="0";c.img.style.margin="0";c.appendChild(c.img);c.photo=a;return c}function K(b){var a=s(v.length, 8 A.index),d=v[a],c=d.photo.coords,g=P.splice(0,1)[0],h=m(g,c.row,c.col),k={},n={};A.index=a;d.style.zIndex=e.zIndex+1;h.img.style[D]="rotate"+b+"(-180deg)";h.img.style.position="absolute";h.img.style.top="0";h.img.style.left="0";h.img.style.zIndex=e.zIndex+2;d.style[V]="200px";d.img.style[N]=h.img.style[N]="hidden";d.img.style[O]=h.img.style[O]="preserve-3d";d.img.style.zIndex=e.zIndex+3;k[D]="rotate"+b+"(180deg)";n[D]="rotate"+b+"(0deg)";d.appendChild(h.img);window.setTimeout(function(){f(h.img,n, 9 w);f(d.img,k,w,function(){d.style[C]="inherit";d.style[D]="inherit";var e=m(g,c.row,c.col);d.parentNode.replaceChild(e,d);v.splice(a,1,e);P.push(d.photo);K(b)})},u)}function Q(){var a=s(n,A.x),l=s(n,A.y),d=q[l][a],c=1==s(2),g=1==s(2),k={height:h+"px",width:h+"px"},m={height:2*h+e.top+e.bottom+"px",width:2*h+e.left+e.right+"px"};k[E]=e.boxShadow;m[E]="5px 5px 10px rgba(0, 0, 0, 0.75)";A={x:a,y:l};0==a?g=!1:a==n-1&&(g=!0);0==l?c=!1:l==z-1&&(c=!0);c&&(k.top=p(b(d,"top"))+"px",m.top=I(k.top)-e.height+ 10 "px");g&&(k.left=p(b(d,"left"))+"px",m.left=I(k.left)-e.width+"px");d.style.zIndex=e.zIndex+1;f(d,m,w,function(){window.setTimeout(function(){f(d,k,w,function(){d.style.zIndex=e.zIndex;window.setTimeout(Q,u)})},u)})}function R(){var b=[],a;for(a=0;a<n;a++)b[a]=m(S(),z,a),v.push(b[a]);window.setTimeout(function(){k(v,{x:0,y:-e.height},w,function(){x(v.splice(0,n),function(b){b.parentNode.removeChild(b)});R()})},u)}function T(){var b=[],a,d={};0<g.row&&"d"!=g.last&&b.push({row:g.row-1,col:g.col,last:"u"}); 11 g.row+1<q.length&&"u"!=g.last&&b.push({row:g.row+1,col:g.col,last:"d"});0<g.col&&"r"!=g.last&&b.push({row:g.row,col:g.col-1,last:"l"});g.col+1<q[0].length&&"l"!=g.last&&b.push({row:g.row,col:g.col+1,last:"r"});a=b[s(b.length)];g.col>a.col?(d.x=e.width,d.y=0):g.col<a.col?(d.x=-e.width,d.y=0):g.row>a.row?(d.x=0,d.y=e.height):g.row<a.row&&(d.x=0,d.y=-e.height);k(q[a.row][a.col],d,w,function(){q[g.row][g.col]=q[a.row][a.col];delete q[a.row][a.col];g=a;window.setTimeout(T,u)})}var S=U(a.items),e,L=z*n, 12 P=a.items.slice(L),A={},g,q=[],v=[],F,y,G,H;"shuffle"==r&&(L--,g={row:z-1,col:n-1});for(;t.firstChild;)t.removeChild(t.firstChild);F=document.createElement("div");F.style.position="relative";t.appendChild(F);for(a=0;a<L;a++)y=S(),G=Math.floor(a/n),H=a%n,y=m(y,G,H),0==H?q[G]=[y]:q[G][H]=y,v.push(y);C&&("shuffle"==r?window.setTimeout(T,u):"vscroll"==r?(t.style.overflow="hidden",R()):"zoom"==r?window.setTimeout(Q,u):"flipX"==r?K("X"):"flipY"==r&&K("Y"))};b="http://api.flickr.com/services/feeds/"+b+"&lang=en-us&format=json&jsoncallback="+ 13 k;k=document.createElement("script");k.type="text/javascript";k.async=!0;k.src=b;document.body.appendChild(k)}; -
javascript-flickr-badge/tags/2.2/javascript-flickr-badge.php
r717932 r718422 4 4 Plugin URI: http://blog.jyst.us/javascript-flickr-badge?utm_source=Wordpress&utm_medium=Plugin%2BAdmin&utm_campaign=Javascript%2BFlickr%2BBadge 5 5 Description: Displays photos from Flickr, with optional tag filtering, with client-side javascript. Several eye-catching effects available. 6 Version: 2. 16 Version: 2.2 7 7 Author: Jyst 8 8 Author URI: http://jyst.us/ -
javascript-flickr-badge/tags/2.2/readme.txt
r717932 r718422 4 4 Requires at least: 2.0.2 5 5 Tested up to: 3.5.1 6 Stable tag: 2. 16 Stable tag: 2.2 7 7 8 8 Displays photos from Flickr, with optional tag filtering, with pure client-side javascript. Several eye-catching effects available. … … 75 75 * Allowed animation speed and pause adjustments. 76 76 * Minified javascript. 77 = 2.1 = 78 * Fixed bug with shuffle animation 79 = 2.2 = 80 * Fixed bug with tag filtering -
javascript-flickr-badge/trunk/javascript-flickr-badge.min.js
r717927 r718422 1 1 var jsfbcb=0; 2 function jsFlickrBadge( u,g){var b,h;b=encodeURIComponent(g.flickrId);var m=g.size,A=g.rows,p=g.columns,s=g.animation,x=1E3*g.animationSpeed,v=1E3*g.animationPause,t=function(a,C){var b=Math.floor(Math.random()*a);return 1<a&&b==C?t(a,C):b},y=function(a,C){var b,g;for(b in a)if(a.hasOwnProperty(b)&&(g=C(a[b],b),void 0!==g))break;return g},J=function(a){var b=a?a.split("px"):[];return 1<b.length?Number(b[0]):a},q=function(a){return!a||isNaN(a)?0:Number(a)},K=function(a){return a&&"[object Array]"==Object.prototype.toString.apply(a)},3 V=function(a){var b=0,g=a.length;return function(){var m=a[b];b=(b+1)%g;return m}},n=function(a){var b=document.documentElement;return K(a)?y(a,function(a){return b.style.hasOwnProperty(a)?a:void 0}):n(["-webkit-"+a,"-moz-"+a,"-o-"+a,a])},D=n("transition"),W=n("perspective"),O=n("backface-visibility"),E=n("transform"),P=n("transform-style"),F=n("box-shadow");"random"==s&&(s=["shuffle","zoom","vscroll","flipX","flipY"][t(3)]);"group"==g.feed?b="groups_pool.gne?id="+b:"contacts"==g.feed?b="photos_friends.gne?user_id="+4 b:"contactsAll"== g.feed?b="photos_friends.gne?user_id="+b+"&displayAll=1":"friends"==g.feed?b="photos_friends.gne?user_id="+b+"&friends=1":"friendsAll"==g.feed?b="photos_friends.gne?user_id="+b+"&friends=1&displayAll=1":"favorites"==g.feed?b="photos_faves.gne?id="+b:(b="photos_public.gne?id="+b,g.tags&&(b+="&tags=".join(",",g.tags)));h="jsFlickrBadge"+jsfbcb++;window[h]=function(a){function b(L,k){var d;d=L.currentStyle?L.currentStyle[k]:window.getComputedStyle(L,null)[k];return J(d)}function g(b,5 k,d,c){var a=d/1E3+"s ease-in-out",e=[];console.info("animate",k);K(b)||(b=[b]);y(k,function(b,d){e.push(d+" "+a)});y(b,function(b){b.style[D]=e.join(",");b.img&&(b.img.style[D]=e.join(","));y(k,function(d,c){c==F&&b.img?b.img.style[c]=d:b.style[c]=d;if(("width"==c||"height"==c)&&b.img)b.img.style[c]=d})});c&&window.setTimeout(c,d)}function h(a,k,d,c){K(a)||(a=[a]);y(a,function(c){g(c,{top:q(b(c,"top"))+k.y+"px",left:q(b(c,"left"))+k.x+"px"},d)});window.setTimeout(c,d)}function n(a,k,d){var c=document.createElement("a"); 6 null!=k&&null!=d&&(G.appendChild(c),e||(e={left:q(b(c,"marginLeft")),right:q(b(c,"marginRight")),top:q(b(c,"marginTop")),bottom:q(b(c,"marginBottom")),boxShadow:b(c,F)||"",zIndex:q(b(c,"zIndex"))},e.height=e.top+m+e.bottom,e.width=e.left+m+e.right,u.style.height=A*e.height+"px",u.style.width=p*e.width+"px"),a.coords={row:k,col:d});c.href=a.link;c.target="_blank";c.title=a.title;c.rel="nofollow";c.style.position="absolute";k&&(c.style.top=k*e.height+"px");d&&(c.style.left=d*e.width+"px");c.style.width= 7 m+"px";c.style.height=m+"px";c.style.border="none";c.style.padding="0";c.style.margin="0";c.img=document.createElement("img");c.img.alt=c.img.title=a.title;c.img.src=a.media.m.replace(/_m\.jpg/,"_s.jpg");c.img.style.width=m+"px";c.img.style.maxWidth="100%";c.img.style.height=m+"px";c.img.style.border="none";c.img.style.padding="0";c.img.style.margin="0";c.appendChild(c.img);c.photo=a;return c}function M(b){var a=t(w.length,B.index),d=w[a],c=d.photo.coords,f=Q.splice(0,1)[0],l=n(f,c.row,c.col),m={},8 h={};B.index=a;d.style.zIndex=e.zIndex+1;l.img.style[E]="rotate"+b+"(-180deg)";l.img.style.position="absolute";l.img.style.top="0";l.img.style.left="0";l.img.style.zIndex=e.zIndex+2;d.style[W]="200px";d.img.style[O]=l.img.style[O]="hidden";d.img.style[P]=l.img.style[P]="preserve-3d";d.img.style.zIndex=e.zIndex+3;m[E]="rotate"+b+"(180deg)";h[E]="rotate"+b+"(0deg)";d.appendChild(l.img);window.setTimeout(function(){g(l.img,h,x);g(d.img,m,x,function(){d.style[D]="inherit";d.style[E]="inherit";var e=n(f,9 c.row,c.col);d.parentNode.replaceChild(e,d);w.splice(a,1,e);Q.push(d.photo);M(b)})},v)}function R(){var a=t(p,B.x),k=t(p,B.y),d=r[k][a],c=1==t(2),f=1==t(2),l={height:m+"px",width:m+"px"},h={height:2*m+e.top+e.bottom+"px",width:2*m+e.left+e.right+"px"};l[F]=e.boxShadow;h[F]="5px 5px 10px rgba(0, 0, 0, 0.75)";B={x:a,y:k};0==a?f=!1:a==p-1&&(f=!0);0==k?c=!1:k==A-1&&(c=!0);c&&(l.top=q(b(d,"top"))+"px",h.top=J(l.top)-e.height+"px");f&&(l.left=q(b(d,"left"))+"px",h.left=J(l.left)-e.width+"px");d.style.zIndex= 10 e.zIndex+1;g(d,h,x,function(){window.setTimeout(function(){g(d,l,x,function(){d.style.zIndex=e.zIndex;window.setTimeout(R,v)})},v)})}function S(){var b=[],a;for(a=0;a<p;a++)b[a]=n(T(),A,a),w.push(b[a]);window.setTimeout(function(){h(w,{x:0,y:-e.height},x,function(){y(w.splice(0,p),function(b){b.parentNode.removeChild(b)});S()})},v)}function U(){var b=[],a,d={};0<f.row&&"d"!=f.last&&b.push({row:f.row-1,col:f.col,last:"u"});f.row+1<r.length&&"u"!=f.last&&b.push({row:f.row+1,col:f.col,last:"d"});0<f.col&& 11 "r"!=f.last&&b.push({row:f.row,col:f.col-1,last:"l"});f.col+1<r[0].length&&"l"!=f.last&&b.push({row:f.row,col:f.col+1,last:"r"});a=b[t(b.length)];f.col>a.col?(d.x=e.width,d.y=0):f.col<a.col?(d.x=-e.width,d.y=0):f.row>a.row?(d.x=0,d.y=e.height):f.row<a.row&&(d.x=0,d.y=-e.height);h(r[a.row][a.col],d,x,function(){r[f.row][f.col]=r[a.row][a.col];delete r[a.row][a.col];f=a;window.setTimeout(U,v)})}var T=V(a.items),e,N=A*p,Q=a.items.slice(N),B={},f,r=[],w=[],G,z,H,I;"shuffle"==s&&(N--,f={row:A-1,col:p- 12 1});for(;u.firstChild;)u.removeChild(u.firstChild);G=document.createElement("div");G.style.position="relative";u.appendChild(G);for(a=0;a<N;a++)z=T(),H=Math.floor(a/p),I=a%p,z=n(z,H,I),0==I?r[H]=[z]:r[H][I]=z,w.push(z);D&&("shuffle"==s?window.setTimeout(U,v):"vscroll"==s?(u.style.overflow="hidden",S()):"zoom"==s?window.setTimeout(R,v):"flipX"==s?M("X"):"flipY"==s&&M("Y"))};b="http://api.flickr.com/services/feeds/"+b+"&lang=en-us&format=json&jsoncallback="+h;h=document.createElement("script");h.type= 13 "text/javascript";h.async=!0;h.src=b;document.body.appendChild(h)};2 function jsFlickrBadge(t,f){var b,k;b=encodeURIComponent(f.flickrId);var h=f.size,z=f.rows,n=f.columns,r=f.animation,w=1E3*f.animationSpeed,u=1E3*f.animationPause,s=function(a,M){var b=Math.floor(Math.random()*a);return 1<a&&b==M?s(a,M):b},x=function(a,b){var f,h;for(f in a)if(a.hasOwnProperty(f)&&(h=b(a[f],f),void 0!==h))break;return h},I=function(a){var b=a?a.split("px"):[];return 1<b.length?Number(b[0]):a},p=function(a){return!a||isNaN(a)?0:Number(a)},B=function(a){return a&&"[object Array]"==Object.prototype.toString.apply(a)}, 3 U=function(a){var b=0,f=a.length;return function(){var h=a[b];b=(b+1)%f;return h}},m=function(a){var b=document.documentElement;return B(a)?x(a,function(a){return b.style.hasOwnProperty(a)?a:void 0}):m(["-webkit-"+a,"-moz-"+a,"-o-"+a,a])},C=m("transition"),V=m("perspective"),N=m("backface-visibility"),D=m("transform"),O=m("transform-style"),E=m("box-shadow");"random"==r&&(r=["shuffle","zoom","vscroll","flipX","flipY"][s(3)]);"group"==f.feed?b="groups_pool.gne?id="+b:"contacts"==f.feed?b="photos_friends.gne?user_id="+ 4 b:"contactsAll"==f.feed?b="photos_friends.gne?user_id="+b+"&displayAll=1":"friends"==f.feed?b="photos_friends.gne?user_id="+b+"&friends=1":"friendsAll"==f.feed?b="photos_friends.gne?user_id="+b+"&friends=1&displayAll=1":"favorites"==f.feed?b="photos_faves.gne?id="+b:(b="photos_public.gne?id="+b,f.tags&&(B(f.tags)?b+="&tags="+f.tags.join(","):f.tags.split&&(b+="&tags="+f.tags.split(/ ,;/).join(","))));k="jsFlickrBadge"+jsfbcb++;window[k]=function(a){function b(J,l){var d;d=J.currentStyle?J.currentStyle[l]: 5 window.getComputedStyle(J,null)[l];return I(d)}function f(b,l,d,c){var a=d/1E3+"s ease-in-out",e=[];console.info("animate",l);B(b)||(b=[b]);x(l,function(b,d){e.push(d+" "+a)});x(b,function(b){b.style[C]=e.join(",");b.img&&(b.img.style[C]=e.join(","));x(l,function(d,c){c==E&&b.img?b.img.style[c]=d:b.style[c]=d;if(("width"==c||"height"==c)&&b.img)b.img.style[c]=d})});c&&window.setTimeout(c,d)}function k(a,l,d,c){B(a)||(a=[a]);x(a,function(c){f(c,{top:p(b(c,"top"))+l.y+"px",left:p(b(c,"left"))+l.x+"px"}, 6 d)});window.setTimeout(c,d)}function m(a,l,d){var c=document.createElement("a");null!=l&&null!=d&&(F.appendChild(c),e||(e={left:p(b(c,"marginLeft")),right:p(b(c,"marginRight")),top:p(b(c,"marginTop")),bottom:p(b(c,"marginBottom")),boxShadow:b(c,E)||"",zIndex:p(b(c,"zIndex"))},e.height=e.top+h+e.bottom,e.width=e.left+h+e.right,t.style.height=z*e.height+"px",t.style.width=n*e.width+"px"),a.coords={row:l,col:d});c.href=a.link;c.target="_blank";c.title=a.title;c.rel="nofollow";c.style.position="absolute"; 7 l&&(c.style.top=l*e.height+"px");d&&(c.style.left=d*e.width+"px");c.style.width=h+"px";c.style.height=h+"px";c.style.border="none";c.style.padding="0";c.style.margin="0";c.img=document.createElement("img");c.img.alt=c.img.title=a.title;c.img.src=a.media.m.replace(/_m\.jpg/,"_s.jpg");c.img.style.width=h+"px";c.img.style.maxWidth="100%";c.img.style.height=h+"px";c.img.style.border="none";c.img.style.padding="0";c.img.style.margin="0";c.appendChild(c.img);c.photo=a;return c}function K(b){var a=s(v.length, 8 A.index),d=v[a],c=d.photo.coords,g=P.splice(0,1)[0],h=m(g,c.row,c.col),k={},n={};A.index=a;d.style.zIndex=e.zIndex+1;h.img.style[D]="rotate"+b+"(-180deg)";h.img.style.position="absolute";h.img.style.top="0";h.img.style.left="0";h.img.style.zIndex=e.zIndex+2;d.style[V]="200px";d.img.style[N]=h.img.style[N]="hidden";d.img.style[O]=h.img.style[O]="preserve-3d";d.img.style.zIndex=e.zIndex+3;k[D]="rotate"+b+"(180deg)";n[D]="rotate"+b+"(0deg)";d.appendChild(h.img);window.setTimeout(function(){f(h.img,n, 9 w);f(d.img,k,w,function(){d.style[C]="inherit";d.style[D]="inherit";var e=m(g,c.row,c.col);d.parentNode.replaceChild(e,d);v.splice(a,1,e);P.push(d.photo);K(b)})},u)}function Q(){var a=s(n,A.x),l=s(n,A.y),d=q[l][a],c=1==s(2),g=1==s(2),k={height:h+"px",width:h+"px"},m={height:2*h+e.top+e.bottom+"px",width:2*h+e.left+e.right+"px"};k[E]=e.boxShadow;m[E]="5px 5px 10px rgba(0, 0, 0, 0.75)";A={x:a,y:l};0==a?g=!1:a==n-1&&(g=!0);0==l?c=!1:l==z-1&&(c=!0);c&&(k.top=p(b(d,"top"))+"px",m.top=I(k.top)-e.height+ 10 "px");g&&(k.left=p(b(d,"left"))+"px",m.left=I(k.left)-e.width+"px");d.style.zIndex=e.zIndex+1;f(d,m,w,function(){window.setTimeout(function(){f(d,k,w,function(){d.style.zIndex=e.zIndex;window.setTimeout(Q,u)})},u)})}function R(){var b=[],a;for(a=0;a<n;a++)b[a]=m(S(),z,a),v.push(b[a]);window.setTimeout(function(){k(v,{x:0,y:-e.height},w,function(){x(v.splice(0,n),function(b){b.parentNode.removeChild(b)});R()})},u)}function T(){var b=[],a,d={};0<g.row&&"d"!=g.last&&b.push({row:g.row-1,col:g.col,last:"u"}); 11 g.row+1<q.length&&"u"!=g.last&&b.push({row:g.row+1,col:g.col,last:"d"});0<g.col&&"r"!=g.last&&b.push({row:g.row,col:g.col-1,last:"l"});g.col+1<q[0].length&&"l"!=g.last&&b.push({row:g.row,col:g.col+1,last:"r"});a=b[s(b.length)];g.col>a.col?(d.x=e.width,d.y=0):g.col<a.col?(d.x=-e.width,d.y=0):g.row>a.row?(d.x=0,d.y=e.height):g.row<a.row&&(d.x=0,d.y=-e.height);k(q[a.row][a.col],d,w,function(){q[g.row][g.col]=q[a.row][a.col];delete q[a.row][a.col];g=a;window.setTimeout(T,u)})}var S=U(a.items),e,L=z*n, 12 P=a.items.slice(L),A={},g,q=[],v=[],F,y,G,H;"shuffle"==r&&(L--,g={row:z-1,col:n-1});for(;t.firstChild;)t.removeChild(t.firstChild);F=document.createElement("div");F.style.position="relative";t.appendChild(F);for(a=0;a<L;a++)y=S(),G=Math.floor(a/n),H=a%n,y=m(y,G,H),0==H?q[G]=[y]:q[G][H]=y,v.push(y);C&&("shuffle"==r?window.setTimeout(T,u):"vscroll"==r?(t.style.overflow="hidden",R()):"zoom"==r?window.setTimeout(Q,u):"flipX"==r?K("X"):"flipY"==r&&K("Y"))};b="http://api.flickr.com/services/feeds/"+b+"&lang=en-us&format=json&jsoncallback="+ 13 k;k=document.createElement("script");k.type="text/javascript";k.async=!0;k.src=b;document.body.appendChild(k)}; -
javascript-flickr-badge/trunk/javascript-flickr-badge.php
r717932 r718422 4 4 Plugin URI: http://blog.jyst.us/javascript-flickr-badge?utm_source=Wordpress&utm_medium=Plugin%2BAdmin&utm_campaign=Javascript%2BFlickr%2BBadge 5 5 Description: Displays photos from Flickr, with optional tag filtering, with client-side javascript. Several eye-catching effects available. 6 Version: 2. 16 Version: 2.2 7 7 Author: Jyst 8 8 Author URI: http://jyst.us/ -
javascript-flickr-badge/trunk/readme.txt
r717932 r718422 4 4 Requires at least: 2.0.2 5 5 Tested up to: 3.5.1 6 Stable tag: 2. 16 Stable tag: 2.2 7 7 8 8 Displays photos from Flickr, with optional tag filtering, with pure client-side javascript. Several eye-catching effects available. … … 75 75 * Allowed animation speed and pause adjustments. 76 76 * Minified javascript. 77 = 2.1 = 78 * Fixed bug with shuffle animation 79 = 2.2 = 80 * Fixed bug with tag filtering
Note: See TracChangeset
for help on using the changeset viewer.