annotate bns_website/static/js/fancybox/jquery.easing-1.3.pack.js @ 60:a0d3bc630ebd

For issue #8, create a videos application to randomize videos in the playlist. This commit now adds a dependency to the Google Python GData library. The admin enters a playlist URL in the admin. Then the admin uses an admin action to synchronize the playlist with YouTube. This reads the playlist title and retrieves the video list from YouTube. The view function reads all the playlist objects to get the complete list of videos, then shuffles them up. The template generates Javascript to create a YouTube player with the shuffled list. A fixture is included for convenience and for the tests. I also committed a test tool I wrote to prove out this idea in case it is useful for future enhancements or experimentation.
author Brian Neal <bgneal@gmail.com>
date Sat, 19 Nov 2011 14:19:00 -0600
parents 04991ccaf30c
children
rev   line source
bgneal@5 1 /*
bgneal@5 2 * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
bgneal@5 3 *
bgneal@5 4 * Uses the built in easing capabilities added In jQuery 1.1
bgneal@5 5 * to offer multiple easing options
bgneal@5 6 *
bgneal@5 7 * TERMS OF USE - jQuery Easing
bgneal@5 8 *
bgneal@5 9 * Open source under the BSD License.
bgneal@5 10 *
bgneal@5 11 * Copyright © 2008 George McGinley Smith
bgneal@5 12 * All rights reserved.
bgneal@5 13 *
bgneal@5 14 * Redistribution and use in source and binary forms, with or without modification,
bgneal@5 15 * are permitted provided that the following conditions are met:
bgneal@5 16 *
bgneal@5 17 * Redistributions of source code must retain the above copyright notice, this list of
bgneal@5 18 * conditions and the following disclaimer.
bgneal@5 19 * Redistributions in binary form must reproduce the above copyright notice, this list
bgneal@5 20 * of conditions and the following disclaimer in the documentation and/or other materials
bgneal@5 21 * provided with the distribution.
bgneal@5 22 *
bgneal@5 23 * Neither the name of the author nor the names of contributors may be used to endorse
bgneal@5 24 * or promote products derived from this software without specific prior written permission.
bgneal@5 25 *
bgneal@5 26 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
bgneal@5 27 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
bgneal@5 28 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
bgneal@5 29 * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
bgneal@5 30 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
bgneal@5 31 * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
bgneal@5 32 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
bgneal@5 33 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
bgneal@5 34 * OF THE POSSIBILITY OF SUCH DAMAGE.
bgneal@5 35 *
bgneal@5 36 */
bgneal@5 37
bgneal@5 38 // t: current time, b: begInnIng value, c: change In value, d: duration
bgneal@5 39 eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('h.i[\'1a\']=h.i[\'z\'];h.O(h.i,{y:\'D\',z:9(x,t,b,c,d){6 h.i[h.i.y](x,t,b,c,d)},17:9(x,t,b,c,d){6 c*(t/=d)*t+b},D:9(x,t,b,c,d){6-c*(t/=d)*(t-2)+b},13:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t+b;6-c/2*((--t)*(t-2)-1)+b},X:9(x,t,b,c,d){6 c*(t/=d)*t*t+b},U:9(x,t,b,c,d){6 c*((t=t/d-1)*t*t+1)+b},R:9(x,t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e(a<8.w(c)){a=c;f s=p/4}m f s=p/(2*8.g)*8.r(c/a);6 a*8.j(2,-10*t)*8.n((t*d-s)*(2*8.g)/p)+c+b},T:9(x,t,b,c,d){f s=1.l;f p=0;f a=c;e(t==0)6 b;e((t/=d/2)==2)6 b+c;e(!p)p=d*(.3*1.5);e(a<8.w(c)){a=c;f s=p/4}m f s=p/(2*8.g)*8.r(c/a);e(t<1)6-.5*(a*8.j(2,10*(t-=1))*8.n((t*d-s)*(2*8.g)/p))+b;6 a*8.j(2,-10*(t-=1))*8.n((t*d-s)*(2*8.g)/p)*.5+c+b},F:9(x,t,b,c,d,s){e(s==u)s=1.l;6 c*(t/=d)*t*((s+1)*t-s)+b},E:9(x,t,b,c,d,s){e(s==u)s=1.l;6 c*((t=t/d-1)*t*((s+1)*t+s)+1)+b},16:9(x,t,b,c,d,s){e(s==u)s=1.l;e((t/=d/2)<1)6 c/2*(t*t*(((s*=(1.B))+1)*t-s))+b;6 c/2*((t-=2)*t*(((s*=(1.B))+1)*t+s)+2)+b},A:9(x,t,b,c,d){6 c-h.i.v(x,d-t,0,c,d)+b},v:9(x,t,b,c,d){e((t/=d)<(1/2.k)){6 c*(7.q*t*t)+b}m e(t<(2/2.k)){6 c*(7.q*(t-=(1.5/2.k))*t+.k)+b}m e(t<(2.5/2.k)){6 c*(7.q*(t-=(2.14/2.k))*t+.11)+b}m{6 c*(7.q*(t-=(2.18/2.k))*t+.19)+b}},1b:9(x,t,b,c,d){e(t<d/2)6 h.i.A(x,t*2,0,c,d)*.5+b;6 h.i.v(x,t*2-d,0,c,d)*.5+c*.5+b}});',62,74,'||||||return||Math|function|||||if|var|PI|jQuery|easing|pow|75|70158|else|sin|sqrt||5625|asin|||undefined|easeOutBounce|abs||def|swing|easeInBounce|525|cos|easeOutQuad|easeOutBack|easeInBack|easeInSine|easeOutElastic|easeInOutQuint|easeOutQuint|easeInQuint|easeInOutQuart|easeOutQuart|easeInQuart|extend|easeInElastic|easeInOutCirc|easeInOutCubic|easeOutCirc|easeInOutElastic|easeOutCubic|easeInCirc|easeInOutExpo|easeInCubic|easeOutExpo|easeInExpo||9375|easeInOutSine|easeInOutQuad|25|easeOutSine|easeInOutBack|easeInQuad|625|984375|jswing|easeInOutBounce'.split('|'),0,{}))
bgneal@5 40
bgneal@5 41 /*
bgneal@5 42 *
bgneal@5 43 * TERMS OF USE - EASING EQUATIONS
bgneal@5 44 *
bgneal@5 45 * Open source under the BSD License.
bgneal@5 46 *
bgneal@5 47 * Copyright © 2001 Robert Penner
bgneal@5 48 * All rights reserved.
bgneal@5 49 *
bgneal@5 50 * Redistribution and use in source and binary forms, with or without modification,
bgneal@5 51 * are permitted provided that the following conditions are met:
bgneal@5 52 *
bgneal@5 53 * Redistributions of source code must retain the above copyright notice, this list of
bgneal@5 54 * conditions and the following disclaimer.
bgneal@5 55 * Redistributions in binary form must reproduce the above copyright notice, this list
bgneal@5 56 * of conditions and the following disclaimer in the documentation and/or other materials
bgneal@5 57 * provided with the distribution.
bgneal@5 58 *
bgneal@5 59 * Neither the name of the author nor the names of contributors may be used to endorse
bgneal@5 60 * or promote products derived from this software without specific prior written permission.
bgneal@5 61 *
bgneal@5 62 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
bgneal@5 63 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
bgneal@5 64 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
bgneal@5 65 * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
bgneal@5 66 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
bgneal@5 67 * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
bgneal@5 68 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
bgneal@5 69 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
bgneal@5 70 * OF THE POSSIBILITY OF SUCH DAMAGE.
bgneal@5 71 *
bgneal@5 72 */