parallaxis/voices/js/plugins/CSSRulePlugin.min.js

15 lines
1.4 KiB
JavaScript
Executable File

/*!
* VERSION: beta 0.5
* DATE: 2012-12-20
* JavaScript
* UPDATES AND DOCS AT: http://www.greensock.com
*
* Copyright (c) 2008-2013, GreenSock. All rights reserved.
* This work is subject to the terms in http://www.greensock.com/terms_of_use.html or for
* Club GreenSock members, the software agreement that was issued with your membership.
*
* @author: Jack Doyle, jack@greensock.com
*/
(window._gsQueue||(window._gsQueue=[])).push(function(){_gsDefine("plugins.CSSRulePlugin",["plugins.TweenPlugin","TweenLite","plugins.CSSPlugin"],function(l,a,d){a=function(){l.call(this,"cssRule");this._overwriteProps.length=0};var g=window.document,m=d.prototype.setRatio,b=a.prototype=new d;b._propName="cssRule";b.constructor=a;a.API=2;a.getRule=function(c){var a=g.all?"rules":"cssRules",b=g.styleSheets,e=b.length,d=":"===c.charAt(0),h,j,f,k;c=(d?"":",")+c.toLowerCase()+",";for(d&&(k=[]);-1<--e;){j=
b[e][a];for(h=j.length;-1<--h;)if(f=j[h],f.selectorText&&-1!==(","+f.selectorText.split("::").join(":").toLowerCase()+",").indexOf(c))if(d)k.push(f.style);else return f.style}return k};b._onInitTween=function(c,a,b){if(void 0===c.cssText)return!1;var e=g.createElement("div");this._ss=c;this._proxy=e.style;e.style.cssText=c.cssText;d.prototype._onInitTween.call(this,e,a,b);return!0};b.setRatio=function(a){m.call(this,a);this._ss.cssText=this._proxy.cssText};l.activate([a]);return a},!0)});
window._gsDefine&&_gsQueue.pop()();