Changeset 717880
- Timestamp:
- 05/24/2013 04:32:46 PM (13 years ago)
- Location:
- javascript-flickr-badge
- Files:
-
- 2 edited
-
tags/2.0/javascript-flickr-badge.min.js (modified) (1 diff)
-
trunk/javascript-flickr-badge.min.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
javascript-flickr-badge/tags/2.0/javascript-flickr-badge.min.js
r717867 r717880 1 1 var jsfbcb=0; 2 function jsFlickrBadge(s,f){function q(h,A){var a=Math.floor(Math.random()*h);return 1<h&&a==A?q(h,A):a}function v(h,A){var a,f;for(a in h)if(h.hasOwnProperty(a)&&(f=A(h[a],a),void 0!==f))break;return f}function G(h){var a=h?h.split("px"):[];return 1<a.length?Number(a[0]):h}function H(h){return h&&"[object Array]"== toString.apply(h)}function T(h){var a=0,f=h.length;return function(){var l=h[a];a=(a+1)%f;return l}}function k(a){var f=document.documentElement;return H(a)?v(a,function(a){return a in f.style?3 a:void 0}):k(["-webkit-"+a,"-moz-"+a,"-o-"+a,a])}var a,m;a=encodeURIComponent(f.flickrId);var l=f.size,x=f.rows,n=f.columns,r=f.animation,w=1E3*f.animationSpeed,t=1E3*f.animationPause,B=k("transition"),U=k("perspective"),M=k("backface-visibility"),C=k("transform"),N=k("transform-style"),D=k("box-shadow");"random"==r&&(r=["shuffle","zoom","vscroll","flipX","flipY"][q(3)]);"group"==f.feed?a="groups_pool.gne?id="+a:"contacts"==f.feed?a="photos_friends.gne?user_id="+a:"contactsAll"==f.feed?a="photos_friends.gne?user_id="+ 4 a+"&displayAll=1":"friends"==f.feed?a="photos_friends.gne?user_id="+a+"&friends=1":"friendsAll"==f.feed?a="photos_friends.gne?user_id="+a+"&friends=1&displayAll=1":"favorites"==f.feed?a="photos_faves.gne?id="+a:(a="photos_public.gne?id="+a,f.tags&&(a+="&tags=".join(",",f.tags)));m="jsFlickrBadge"+jsfbcb++;window[m]=function(a){function f(a,d){var c;c=a.currentStyle?a.currentStyle[d]:window.getComputedStyle(a,null)[d];return G(c)}function m(a,d,c,b){var f=c/1E3+"s ease-in-out",g=[];H(a)||(a=[a]);v(d,5 function(a,c){g.push(c+" "+f)});v(a,function(a){a.style[B]=g.join(",");a.img&&(a.img.style[B]=g.join(","));v(d,function(c,b){b==D&&a.img?a.img.style[b]=c:a.style[b]=c;if(("width"==b||"height"==b)&&a.img)a.img.style[b]=c})});b&&window.setTimeout(b,c)}function k(a,d,c,b){H(a)||(a=[a]);v(a,function(a){m(a,{top:f(a,"top")+d.y+"px",left:f(a,"left")+d.x+"px"},c)});window.setTimeout(b,c)}function E(a,d,c){var b=document.createElement("a");null!=d&&null!=c&&(F.appendChild(b),g||(g={left:f(b,"marginLeft"), 6 right:f(b,"marginRight"),top:f(b,"marginTop"),bottom:f(b,"marginBottom"),boxShadow:f(b,D)||"",zIndex:Number(f(b,"zIndex"))||0},g.height=g.top+l+g.bottom,g.width=g.left+l+g.right,s.style.height=x*g.height+"px",s.style.width=n*g.width+"px"),a.coords={row:d,col:c});b.href=a.link;b.target="_blank";b.title=a.title;b.rel="nofollow";b.style.position="absolute";d&&(b.style.top=d*g.height+"px");c&&(b.style.left=c*g.width+"px");b.style.width=l+"px";b.style.height=l+"px";b.style.border="none";b.style.padding=7 " 0";b.style.margin="0";b.img=document.createElement("img");b.img.alt=b.img.title=a.title;b.img.src=a.media.m.replace(/_m\.jpg/,"_s.jpg");b.img.style.width=l+"px";b.img.style.maxWidth="100%";b.img.style.height=l+"px";b.img.style.border="none";b.img.style.padding="0";b.img.style.margin="0";b.appendChild(b.img);b.photo=a;return b}function I(a){var d=q(u.length,y.index),c=u[d],b=c.photo.coords,f=O.splice(0,1)[0],e=E(f,b.row,b.col),h={},l={};y.index=d;c.style.zIndex=g.zIndex+1;e.img.style[C]="rotate"+8 a+"(-180deg)";e.img.style.position="absolute";e.img.style.top="0";e.img.style.left="0";e.img.style.zIndex=g.zIndex+2;c.style[U]="200px";c.img.style[M]=e.img.style[M]="hidden";c.img.style[N]=e.img.style[N]="preserve-3d";c.img.style.zIndex=g.zIndex+3;h[C]="rotate"+a+"(180deg)";l[C]="rotate"+a+"(0deg)";c.appendChild(e.img);window.setTimeout(function(){m(e.img,l,w);m(c.img,h,w,function(){c.style[B]="inherit";c.style[C]="inherit";var e=E(f,b.row,b.col);c.parentNode.replaceChild(e,c);u.splice(d,1,e);O.push(c.photo); 9 I(a)})},t)}function P(){var a=q(n,y.x),d=q(n,y.y),c=p[d][a],b=1==q(2),e=1==q(2),h={height:l+"px",width:l+"px"},k={height:2*l+g.top+g.bottom+"px",width:2*l+g.left+g.right+"px"};h[D]=g.boxShadow;k[D]="5px 5px 10px rgba(0, 0, 0, 0.75)";y={x:a,y:d};0==a?e=!1:a==n-1&&(e=!0);0==d?b=!1:d==x-1&&(b=!0);b&&(h.top=f(c,"top")+"px",k.top=G(h.top)-g.height+"px");e&&(h.left=f(c,"left")+"px",k.left=G(h.left)-g.width+"px");c.style.zIndex=g.zIndex+1;m(c,k,w,function(){window.setTimeout(function(){m(c,h,w,function(){c.style.zIndex= 10 g.zIndex;window.setTimeout(P,t)})},t)})}function Q(){var a=[],d;for(d=0;d<n;d++)a[d]=E(R(),x,d),u.push(a[d]);window.setTimeout(function(){k(u,{x:0,y:-g.height},w,function(){v(u.splice(0,n),function(a){a.parentNode.removeChild(a)});Q()})},t)}function S(){var a=[],d,c={};0<e.row&&"d"!=e.last&&a.push(function(){return{row:e.row-1,col:e.col,last:"u"}});e.row+1<p.length&&"u"!=e.last&&a.push(function(){return{row:e.row+1,col:e.col,last:"d"}});0<e.col&&"r"!=e.last&&a.push(function(){return{row:e.row,col:e.col- 11 1,last:"l"}});e.col+1<p[0].length&&"l"!=e.last&&a.push(function(){return{row:e.row,col:e.col+1,last:"r"}});d=a[q(a.length)]();e.col>d.col?(c.x=g.width,c.y=0):e.col<d.col?(c.x=-g.width,c.y=0):e.row>d.row?(c.x=0,c.y=g.height):e.row<d.row&&(c.x=0,c.y=-g.height);k(p[d.row][d.col],c,w,function(){p[e.row][e.col]=p[d.row][d.col];delete p[d.row][d.col];e=d;window.setTimeout(S,t)})}var R=T(a.items),g,J=x*n,O=a.items.slice(J),y={},e,p=[],u=[],F;"shuffle"==r&&(J--,e={row:x-1,col:n-1});for(;s.firstChild;)s.removeChild(s.firstChild);2 function jsFlickrBadge(s,f){function q(h,A){var a=Math.floor(Math.random()*h);return 1<h&&a==A?q(h,A):a}function v(h,A){var a,f;for(a in h)if(h.hasOwnProperty(a)&&(f=A(h[a],a),void 0!==f))break;return f}function G(h){var a=h?h.split("px"):[];return 1<a.length?Number(a[0]):h}function H(h){return h&&"[object Array]"==Object.prototype.toString.apply(h)}function T(h){var a=0,f=h.length;return function(){var l=h[a];a=(a+1)%f;return l}}function k(a){var f=document.documentElement;return H(a)?v(a,function(a){return a in 3 f.style?a:void 0}):k(["-webkit-"+a,"-moz-"+a,"-o-"+a,a])}var a,m;a=encodeURIComponent(f.flickrId);var l=f.size,x=f.rows,n=f.columns,r=f.animation,w=1E3*f.animationSpeed,t=1E3*f.animationPause,B=k("transition"),U=k("perspective"),M=k("backface-visibility"),C=k("transform"),N=k("transform-style"),D=k("box-shadow");"random"==r&&(r=["shuffle","zoom","vscroll","flipX","flipY"][q(3)]);"group"==f.feed?a="groups_pool.gne?id="+a:"contacts"==f.feed?a="photos_friends.gne?user_id="+a:"contactsAll"==f.feed?a= 4 "photos_friends.gne?user_id="+a+"&displayAll=1":"friends"==f.feed?a="photos_friends.gne?user_id="+a+"&friends=1":"friendsAll"==f.feed?a="photos_friends.gne?user_id="+a+"&friends=1&displayAll=1":"favorites"==f.feed?a="photos_faves.gne?id="+a:(a="photos_public.gne?id="+a,f.tags&&(a+="&tags=".join(",",f.tags)));m="jsFlickrBadge"+jsfbcb++;window[m]=function(a){function f(a,d){var c;c=a.currentStyle?a.currentStyle[d]:window.getComputedStyle(a,null)[d];return G(c)}function m(a,d,c,b){var f=c/1E3+"s ease-in-out", 5 g=[];H(a)||(a=[a]);v(d,function(a,c){g.push(c+" "+f)});v(a,function(a){a.style[B]=g.join(",");a.img&&(a.img.style[B]=g.join(","));v(d,function(c,b){b==D&&a.img?a.img.style[b]=c:a.style[b]=c;if(("width"==b||"height"==b)&&a.img)a.img.style[b]=c})});b&&window.setTimeout(b,c)}function k(a,d,c,b){H(a)||(a=[a]);v(a,function(a){m(a,{top:f(a,"top")+d.y+"px",left:f(a,"left")+d.x+"px"},c)});window.setTimeout(b,c)}function E(a,d,c){var b=document.createElement("a");null!=d&&null!=c&&(F.appendChild(b),g||(g= 6 {left:f(b,"marginLeft"),right:f(b,"marginRight"),top:f(b,"marginTop"),bottom:f(b,"marginBottom"),boxShadow:f(b,D)||"",zIndex:Number(f(b,"zIndex"))||0},g.height=g.top+l+g.bottom,g.width=g.left+l+g.right,s.style.height=x*g.height+"px",s.style.width=n*g.width+"px"),a.coords={row:d,col:c});b.href=a.link;b.target="_blank";b.title=a.title;b.rel="nofollow";b.style.position="absolute";d&&(b.style.top=d*g.height+"px");c&&(b.style.left=c*g.width+"px");b.style.width=l+"px";b.style.height=l+"px";b.style.border= 7 "none";b.style.padding="0";b.style.margin="0";b.img=document.createElement("img");b.img.alt=b.img.title=a.title;b.img.src=a.media.m.replace(/_m\.jpg/,"_s.jpg");b.img.style.width=l+"px";b.img.style.maxWidth="100%";b.img.style.height=l+"px";b.img.style.border="none";b.img.style.padding="0";b.img.style.margin="0";b.appendChild(b.img);b.photo=a;return b}function I(a){var d=q(u.length,y.index),c=u[d],b=c.photo.coords,f=O.splice(0,1)[0],e=E(f,b.row,b.col),h={},l={};y.index=d;c.style.zIndex=g.zIndex+1;e.img.style[C]= 8 "rotate"+a+"(-180deg)";e.img.style.position="absolute";e.img.style.top="0";e.img.style.left="0";e.img.style.zIndex=g.zIndex+2;c.style[U]="200px";c.img.style[M]=e.img.style[M]="hidden";c.img.style[N]=e.img.style[N]="preserve-3d";c.img.style.zIndex=g.zIndex+3;h[C]="rotate"+a+"(180deg)";l[C]="rotate"+a+"(0deg)";c.appendChild(e.img);window.setTimeout(function(){m(e.img,l,w);m(c.img,h,w,function(){c.style[B]="inherit";c.style[C]="inherit";var e=E(f,b.row,b.col);c.parentNode.replaceChild(e,c);u.splice(d, 9 1,e);O.push(c.photo);I(a)})},t)}function P(){var a=q(n,y.x),d=q(n,y.y),c=p[d][a],b=1==q(2),e=1==q(2),h={height:l+"px",width:l+"px"},k={height:2*l+g.top+g.bottom+"px",width:2*l+g.left+g.right+"px"};h[D]=g.boxShadow;k[D]="5px 5px 10px rgba(0, 0, 0, 0.75)";y={x:a,y:d};0==a?e=!1:a==n-1&&(e=!0);0==d?b=!1:d==x-1&&(b=!0);b&&(h.top=f(c,"top")+"px",k.top=G(h.top)-g.height+"px");e&&(h.left=f(c,"left")+"px",k.left=G(h.left)-g.width+"px");c.style.zIndex=g.zIndex+1;m(c,k,w,function(){window.setTimeout(function(){m(c, 10 h,w,function(){c.style.zIndex=g.zIndex;window.setTimeout(P,t)})},t)})}function Q(){var a=[],d;for(d=0;d<n;d++)a[d]=E(R(),x,d),u.push(a[d]);window.setTimeout(function(){k(u,{x:0,y:-g.height},w,function(){v(u.splice(0,n),function(a){a.parentNode.removeChild(a)});Q()})},t)}function S(){var a=[],d,c={};0<e.row&&"d"!=e.last&&a.push(function(){return{row:e.row-1,col:e.col,last:"u"}});e.row+1<p.length&&"u"!=e.last&&a.push(function(){return{row:e.row+1,col:e.col,last:"d"}});0<e.col&&"r"!=e.last&&a.push(function(){return{row:e.row, 11 col:e.col-1,last:"l"}});e.col+1<p[0].length&&"l"!=e.last&&a.push(function(){return{row:e.row,col:e.col+1,last:"r"}});d=a[q(a.length)]();e.col>d.col?(c.x=g.width,c.y=0):e.col<d.col?(c.x=-g.width,c.y=0):e.row>d.row?(c.x=0,c.y=g.height):e.row<d.row&&(c.x=0,c.y=-g.height);k(p[d.row][d.col],c,w,function(){p[e.row][e.col]=p[d.row][d.col];delete p[d.row][d.col];e=d;window.setTimeout(S,t)})}var R=T(a.items),g,J=x*n,O=a.items.slice(J),y={},e,p=[],u=[],F;"shuffle"==r&&(J--,e={row:x-1,col:n-1});for(;s.firstChild;)s.removeChild(s.firstChild); 12 12 F=document.createElement("div");F.style.position="relative";s.appendChild(F);for(a=0;a<J;a++){var z=R(),K=Math.floor(a/n),L=a%n,z=E(z,K,L);0==L?p[K]=[z]:p[K][L]=z;u.push(z)}B&&("shuffle"==r?window.setTimeout(S,t):"vscroll"==r?(s.style.overflow="hidden",Q()):"zoom"==r?window.setTimeout(P,t):"flipX"==r?I("X"):"flipY"==r&&I("Y"))};a="http://api.flickr.com/services/feeds/"+a+"&lang=en-us&format=json&jsoncallback="+m;m=document.createElement("script");m.type="text/javascript";m.async=!0;m.src=a;document.body.appendChild(m)} 13 13 ; -
javascript-flickr-badge/trunk/javascript-flickr-badge.min.js
r717866 r717880 1 1 var jsfbcb=0; 2 function jsFlickrBadge(s,f){function q(h,A){var a=Math.floor(Math.random()*h);return 1<h&&a==A?q(h,A):a}function v(h,A){var a,f;for(a in h)if(h.hasOwnProperty(a)&&(f=A(h[a],a),void 0!==f))break;return f}function G(h){var a=h?h.split("px"):[];return 1<a.length?Number(a[0]):h}function H(h){return h&&"[object Array]"== toString.apply(h)}function T(h){var a=0,f=h.length;return function(){var l=h[a];a=(a+1)%f;return l}}function k(a){var f=document.documentElement;return H(a)?v(a,function(a){return a in f.style?3 a:void 0}):k(["-webkit-"+a,"-moz-"+a,"-o-"+a,a])}var a,m;a=encodeURIComponent(f.flickrId);var l=f.size,x=f.rows,n=f.columns,r=f.animation,w=1E3*f.animationSpeed,t=1E3*f.animationPause,B=k("transition"),U=k("perspective"),M=k("backface-visibility"),C=k("transform"),N=k("transform-style"),D=k("box-shadow");"random"==r&&(r=["shuffle","zoom","vscroll","flipX","flipY"][q(3)]);"group"==f.feed?a="groups_pool.gne?id="+a:"contacts"==f.feed?a="photos_friends.gne?user_id="+a:"contactsAll"==f.feed?a="photos_friends.gne?user_id="+ 4 a+"&displayAll=1":"friends"==f.feed?a="photos_friends.gne?user_id="+a+"&friends=1":"friendsAll"==f.feed?a="photos_friends.gne?user_id="+a+"&friends=1&displayAll=1":"favorites"==f.feed?a="photos_faves.gne?id="+a:(a="photos_public.gne?id="+a,f.tags&&(a+="&tags=".join(",",f.tags)));m="jsFlickrBadge"+jsfbcb++;window[m]=function(a){function f(a,d){var c;c=a.currentStyle?a.currentStyle[d]:window.getComputedStyle(a,null)[d];return G(c)}function m(a,d,c,b){var f=c/1E3+"s ease-in-out",g=[];H(a)||(a=[a]);v(d,5 function(a,c){g.push(c+" "+f)});v(a,function(a){a.style[B]=g.join(",");a.img&&(a.img.style[B]=g.join(","));v(d,function(c,b){b==D&&a.img?a.img.style[b]=c:a.style[b]=c;if(("width"==b||"height"==b)&&a.img)a.img.style[b]=c})});b&&window.setTimeout(b,c)}function k(a,d,c,b){H(a)||(a=[a]);v(a,function(a){m(a,{top:f(a,"top")+d.y+"px",left:f(a,"left")+d.x+"px"},c)});window.setTimeout(b,c)}function E(a,d,c){var b=document.createElement("a");null!=d&&null!=c&&(F.appendChild(b),g||(g={left:f(b,"marginLeft"), 6 right:f(b,"marginRight"),top:f(b,"marginTop"),bottom:f(b,"marginBottom"),boxShadow:f(b,D)||"",zIndex:Number(f(b,"zIndex"))||0},g.height=g.top+l+g.bottom,g.width=g.left+l+g.right,s.style.height=x*g.height+"px",s.style.width=n*g.width+"px"),a.coords={row:d,col:c});b.href=a.link;b.target="_blank";b.title=a.title;b.rel="nofollow";b.style.position="absolute";d&&(b.style.top=d*g.height+"px");c&&(b.style.left=c*g.width+"px");b.style.width=l+"px";b.style.height=l+"px";b.style.border="none";b.style.padding=7 " 0";b.style.margin="0";b.img=document.createElement("img");b.img.alt=b.img.title=a.title;b.img.src=a.media.m.replace(/_m\.jpg/,"_s.jpg");b.img.style.width=l+"px";b.img.style.maxWidth="100%";b.img.style.height=l+"px";b.img.style.border="none";b.img.style.padding="0";b.img.style.margin="0";b.appendChild(b.img);b.photo=a;return b}function I(a){var d=q(u.length,y.index),c=u[d],b=c.photo.coords,f=O.splice(0,1)[0],e=E(f,b.row,b.col),h={},l={};y.index=d;c.style.zIndex=g.zIndex+1;e.img.style[C]="rotate"+8 a+"(-180deg)";e.img.style.position="absolute";e.img.style.top="0";e.img.style.left="0";e.img.style.zIndex=g.zIndex+2;c.style[U]="200px";c.img.style[M]=e.img.style[M]="hidden";c.img.style[N]=e.img.style[N]="preserve-3d";c.img.style.zIndex=g.zIndex+3;h[C]="rotate"+a+"(180deg)";l[C]="rotate"+a+"(0deg)";c.appendChild(e.img);window.setTimeout(function(){m(e.img,l,w);m(c.img,h,w,function(){c.style[B]="inherit";c.style[C]="inherit";var e=E(f,b.row,b.col);c.parentNode.replaceChild(e,c);u.splice(d,1,e);O.push(c.photo); 9 I(a)})},t)}function P(){var a=q(n,y.x),d=q(n,y.y),c=p[d][a],b=1==q(2),e=1==q(2),h={height:l+"px",width:l+"px"},k={height:2*l+g.top+g.bottom+"px",width:2*l+g.left+g.right+"px"};h[D]=g.boxShadow;k[D]="5px 5px 10px rgba(0, 0, 0, 0.75)";y={x:a,y:d};0==a?e=!1:a==n-1&&(e=!0);0==d?b=!1:d==x-1&&(b=!0);b&&(h.top=f(c,"top")+"px",k.top=G(h.top)-g.height+"px");e&&(h.left=f(c,"left")+"px",k.left=G(h.left)-g.width+"px");c.style.zIndex=g.zIndex+1;m(c,k,w,function(){window.setTimeout(function(){m(c,h,w,function(){c.style.zIndex= 10 g.zIndex;window.setTimeout(P,t)})},t)})}function Q(){var a=[],d;for(d=0;d<n;d++)a[d]=E(R(),x,d),u.push(a[d]);window.setTimeout(function(){k(u,{x:0,y:-g.height},w,function(){v(u.splice(0,n),function(a){a.parentNode.removeChild(a)});Q()})},t)}function S(){var a=[],d,c={};0<e.row&&"d"!=e.last&&a.push(function(){return{row:e.row-1,col:e.col,last:"u"}});e.row+1<p.length&&"u"!=e.last&&a.push(function(){return{row:e.row+1,col:e.col,last:"d"}});0<e.col&&"r"!=e.last&&a.push(function(){return{row:e.row,col:e.col- 11 1,last:"l"}});e.col+1<p[0].length&&"l"!=e.last&&a.push(function(){return{row:e.row,col:e.col+1,last:"r"}});d=a[q(a.length)]();e.col>d.col?(c.x=g.width,c.y=0):e.col<d.col?(c.x=-g.width,c.y=0):e.row>d.row?(c.x=0,c.y=g.height):e.row<d.row&&(c.x=0,c.y=-g.height);k(p[d.row][d.col],c,w,function(){p[e.row][e.col]=p[d.row][d.col];delete p[d.row][d.col];e=d;window.setTimeout(S,t)})}var R=T(a.items),g,J=x*n,O=a.items.slice(J),y={},e,p=[],u=[],F;"shuffle"==r&&(J--,e={row:x-1,col:n-1});for(;s.firstChild;)s.removeChild(s.firstChild);2 function jsFlickrBadge(s,f){function q(h,A){var a=Math.floor(Math.random()*h);return 1<h&&a==A?q(h,A):a}function v(h,A){var a,f;for(a in h)if(h.hasOwnProperty(a)&&(f=A(h[a],a),void 0!==f))break;return f}function G(h){var a=h?h.split("px"):[];return 1<a.length?Number(a[0]):h}function H(h){return h&&"[object Array]"==Object.prototype.toString.apply(h)}function T(h){var a=0,f=h.length;return function(){var l=h[a];a=(a+1)%f;return l}}function k(a){var f=document.documentElement;return H(a)?v(a,function(a){return a in 3 f.style?a:void 0}):k(["-webkit-"+a,"-moz-"+a,"-o-"+a,a])}var a,m;a=encodeURIComponent(f.flickrId);var l=f.size,x=f.rows,n=f.columns,r=f.animation,w=1E3*f.animationSpeed,t=1E3*f.animationPause,B=k("transition"),U=k("perspective"),M=k("backface-visibility"),C=k("transform"),N=k("transform-style"),D=k("box-shadow");"random"==r&&(r=["shuffle","zoom","vscroll","flipX","flipY"][q(3)]);"group"==f.feed?a="groups_pool.gne?id="+a:"contacts"==f.feed?a="photos_friends.gne?user_id="+a:"contactsAll"==f.feed?a= 4 "photos_friends.gne?user_id="+a+"&displayAll=1":"friends"==f.feed?a="photos_friends.gne?user_id="+a+"&friends=1":"friendsAll"==f.feed?a="photos_friends.gne?user_id="+a+"&friends=1&displayAll=1":"favorites"==f.feed?a="photos_faves.gne?id="+a:(a="photos_public.gne?id="+a,f.tags&&(a+="&tags=".join(",",f.tags)));m="jsFlickrBadge"+jsfbcb++;window[m]=function(a){function f(a,d){var c;c=a.currentStyle?a.currentStyle[d]:window.getComputedStyle(a,null)[d];return G(c)}function m(a,d,c,b){var f=c/1E3+"s ease-in-out", 5 g=[];H(a)||(a=[a]);v(d,function(a,c){g.push(c+" "+f)});v(a,function(a){a.style[B]=g.join(",");a.img&&(a.img.style[B]=g.join(","));v(d,function(c,b){b==D&&a.img?a.img.style[b]=c:a.style[b]=c;if(("width"==b||"height"==b)&&a.img)a.img.style[b]=c})});b&&window.setTimeout(b,c)}function k(a,d,c,b){H(a)||(a=[a]);v(a,function(a){m(a,{top:f(a,"top")+d.y+"px",left:f(a,"left")+d.x+"px"},c)});window.setTimeout(b,c)}function E(a,d,c){var b=document.createElement("a");null!=d&&null!=c&&(F.appendChild(b),g||(g= 6 {left:f(b,"marginLeft"),right:f(b,"marginRight"),top:f(b,"marginTop"),bottom:f(b,"marginBottom"),boxShadow:f(b,D)||"",zIndex:Number(f(b,"zIndex"))||0},g.height=g.top+l+g.bottom,g.width=g.left+l+g.right,s.style.height=x*g.height+"px",s.style.width=n*g.width+"px"),a.coords={row:d,col:c});b.href=a.link;b.target="_blank";b.title=a.title;b.rel="nofollow";b.style.position="absolute";d&&(b.style.top=d*g.height+"px");c&&(b.style.left=c*g.width+"px");b.style.width=l+"px";b.style.height=l+"px";b.style.border= 7 "none";b.style.padding="0";b.style.margin="0";b.img=document.createElement("img");b.img.alt=b.img.title=a.title;b.img.src=a.media.m.replace(/_m\.jpg/,"_s.jpg");b.img.style.width=l+"px";b.img.style.maxWidth="100%";b.img.style.height=l+"px";b.img.style.border="none";b.img.style.padding="0";b.img.style.margin="0";b.appendChild(b.img);b.photo=a;return b}function I(a){var d=q(u.length,y.index),c=u[d],b=c.photo.coords,f=O.splice(0,1)[0],e=E(f,b.row,b.col),h={},l={};y.index=d;c.style.zIndex=g.zIndex+1;e.img.style[C]= 8 "rotate"+a+"(-180deg)";e.img.style.position="absolute";e.img.style.top="0";e.img.style.left="0";e.img.style.zIndex=g.zIndex+2;c.style[U]="200px";c.img.style[M]=e.img.style[M]="hidden";c.img.style[N]=e.img.style[N]="preserve-3d";c.img.style.zIndex=g.zIndex+3;h[C]="rotate"+a+"(180deg)";l[C]="rotate"+a+"(0deg)";c.appendChild(e.img);window.setTimeout(function(){m(e.img,l,w);m(c.img,h,w,function(){c.style[B]="inherit";c.style[C]="inherit";var e=E(f,b.row,b.col);c.parentNode.replaceChild(e,c);u.splice(d, 9 1,e);O.push(c.photo);I(a)})},t)}function P(){var a=q(n,y.x),d=q(n,y.y),c=p[d][a],b=1==q(2),e=1==q(2),h={height:l+"px",width:l+"px"},k={height:2*l+g.top+g.bottom+"px",width:2*l+g.left+g.right+"px"};h[D]=g.boxShadow;k[D]="5px 5px 10px rgba(0, 0, 0, 0.75)";y={x:a,y:d};0==a?e=!1:a==n-1&&(e=!0);0==d?b=!1:d==x-1&&(b=!0);b&&(h.top=f(c,"top")+"px",k.top=G(h.top)-g.height+"px");e&&(h.left=f(c,"left")+"px",k.left=G(h.left)-g.width+"px");c.style.zIndex=g.zIndex+1;m(c,k,w,function(){window.setTimeout(function(){m(c, 10 h,w,function(){c.style.zIndex=g.zIndex;window.setTimeout(P,t)})},t)})}function Q(){var a=[],d;for(d=0;d<n;d++)a[d]=E(R(),x,d),u.push(a[d]);window.setTimeout(function(){k(u,{x:0,y:-g.height},w,function(){v(u.splice(0,n),function(a){a.parentNode.removeChild(a)});Q()})},t)}function S(){var a=[],d,c={};0<e.row&&"d"!=e.last&&a.push(function(){return{row:e.row-1,col:e.col,last:"u"}});e.row+1<p.length&&"u"!=e.last&&a.push(function(){return{row:e.row+1,col:e.col,last:"d"}});0<e.col&&"r"!=e.last&&a.push(function(){return{row:e.row, 11 col:e.col-1,last:"l"}});e.col+1<p[0].length&&"l"!=e.last&&a.push(function(){return{row:e.row,col:e.col+1,last:"r"}});d=a[q(a.length)]();e.col>d.col?(c.x=g.width,c.y=0):e.col<d.col?(c.x=-g.width,c.y=0):e.row>d.row?(c.x=0,c.y=g.height):e.row<d.row&&(c.x=0,c.y=-g.height);k(p[d.row][d.col],c,w,function(){p[e.row][e.col]=p[d.row][d.col];delete p[d.row][d.col];e=d;window.setTimeout(S,t)})}var R=T(a.items),g,J=x*n,O=a.items.slice(J),y={},e,p=[],u=[],F;"shuffle"==r&&(J--,e={row:x-1,col:n-1});for(;s.firstChild;)s.removeChild(s.firstChild); 12 12 F=document.createElement("div");F.style.position="relative";s.appendChild(F);for(a=0;a<J;a++){var z=R(),K=Math.floor(a/n),L=a%n,z=E(z,K,L);0==L?p[K]=[z]:p[K][L]=z;u.push(z)}B&&("shuffle"==r?window.setTimeout(S,t):"vscroll"==r?(s.style.overflow="hidden",Q()):"zoom"==r?window.setTimeout(P,t):"flipX"==r?I("X"):"flipY"==r&&I("Y"))};a="http://api.flickr.com/services/feeds/"+a+"&lang=en-us&format=json&jsoncallback="+m;m=document.createElement("script");m.type="text/javascript";m.async=!0;m.src=a;document.body.appendChild(m)} 13 13 ;
Note: See TracChangeset
for help on using the changeset viewer.