Skip to content
Browse files

Corrected tpl with #

  • Loading branch information...
1 parent fca995c commit 011a8eb5fb4f5be2a916d2f36f33a7eea28fde6e @molokoloco committed
Showing with 7 additions and 6 deletions.
  1. +7 −6 js/jquery.boxFx.tools.min.js
View
13 js/jquery.boxFx.tools.min.js
@@ -4,13 +4,14 @@
// Dependancy to moderniz.js for $.fn.crossCss
*/
-var db=function(){"console"in window&&console.log.call(console,arguments)},die=function(b){throw b?b:"Oh my god, moonWalker is down...";};
+var db=function(){"console"in window&&console.log.call(console,arguments)};
(function(b,f){b.toolsLoaded=!0;b.cubicBeziers={bounce:"cubic-bezier(0.000,0.350,0.500,1.300)",snap:"cubic-bezier(0.000,1.000,0.500,1.000)",easeInQuad:"cubic-bezier(0.550,0.085,0.680,0.530)",easeInCubic:"cubic-bezier(0.550,0.055,0.675,0.190)",easeInQuart:"cubic-bezier(0.895,0.030,0.685,0.220)",easeInQuint:"cubic-bezier(0.755,0.050,0.855,0.060)",easeInSine:"cubic-bezier(0.470,0.000,0.745,0.715)",easeInExpo:"cubic-bezier(0.950,0.050,0.795,0.035)",easeInCirc:"cubic-bezier(0.600,0.040,0.980,0.335)",easeOutQuad:"cubic-bezier(0.250,0.460,0.450,0.940)",
easeOutCubic:"cubic-bezier(0.215,0.610,0.355,1.000)",easeOutQuart:"cubic-bezier(0.165,0.840,0.440,1.000)",easeOutQuint:"cubic-bezier(0.230,1.000,0.320,1.000)",easeOutSine:"cubic-bezier(0.390,0.575,0.565,1.000)",easeOutExpo:"cubic-bezier(0.190,1.000,0.220,1.000)",easeOutCirc:"cubic-bezier(0.075,0.820,0.165,1.000)",easeInOutQuad:"cubic-bezier(0.455,0.030,0.515,0.955)",easeInOutCubic:"cubic-bezier(0.645,0.045,0.355,1.000)",easeInOutQuart:"cubic-bezier(0.770,0.000,0.175,1.000)",easeInOutQuint:"cubic-bezier(0.860,0.000,0.070,1.000)",
easeInOutSine:"cubic-bezier(0.445,0.050,0.550,0.950)",easeInOutExpo:"cubic-bezier(1.000,0.000,0.000,1.000)",easeInOutCirc:"cubic-bezier(0.785,0.135,0.150,0.860)"};String.prototype.toCamel=function(){return this.replace(/(\-[a-z])/g,function(a){return a.toUpperCase().replace("-","")})};String.prototype.toDash=function(){return this.replace(/([A-Z])/g,function(a){return"-"+a.toLowerCase()})};f.requestAnimFrame=function(){return f.requestAnimationFrame||f.webkitRequestAnimationFrame||f.mozRequestAnimationFrame||
-f.oRequestAnimationFrame||f.msRequestAnimationFrame||function(a){f.setTimeout(a,1E3/60)}}();b.getRand=function(a,b){return parseInt(a+Math.random()*(b-a),10)};b.getTpl=function(a,b){for(var c in b)a=a.replace(RegExp("({"+c+"})","g"),b[c]||"");return a};var i=null;b.getUniqueName=function(a){i||(i=(new Date).getTime());return(a?a:"id_")+i++};b.removeObjEmptyValue=function(a){b.each(a,function(e,c){!c&&0!==c&&!1!==c?delete a[e]:"object"==typeof a[e]&&b.removeObjEmptyValue(a[e])})};b.getJs=function(a,
-b){var c=document.createElement("script");c.type="text/javascript";c.src=a;if(b)c.async=!0;document.getElementsByTagName("head")[0].appendChild(c)};b.browserPrefix=function(a){var b={firefox:"moz",applewebkit:"webkit",webkit:"webkit",opera:"o",msie:"ms"},c;for(c in b)if(-1!==a.indexOf(c))return b[c];return!1}(navigator.userAgent.toLowerCase());b.transitionEnd={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",msTransition:"msTransitionEnd",transition:"transitionEnd"}[Modernizr.prefixed("transition")];
-b.getSize=function(a,b){a&&"%"==(""+a).substr(-1)&&(a=parseFloat(a)/100*b);return parseInt(a,10)};var j="width minWidth maxWidth left right marginLeft marginRight maxSize".split(" "),k="height minHeight maxHeight top bottom marginTop marginBottom".split(" ");b.fixCssUnit=function(a,e,c){b.each(j,function(c,g){g in a&&a[g]&&(a[g]=b.getSize(a[g],e))});b.each(k,function(e,g){g in a&&a[g]&&(a[g]=b.getSize(a[g],c))})};b.addCssUnit=function(a){b.each(j,function(b,c){c in a&&a[c]&&"number"==typeof a[c]&&
-(a[c]+="px")});b.each(k,function(b,c){c in a&&a[c]&&"number"==typeof a[c]&&(a[c]+="px")})};var h=b("style#cssAnimation");b.setCssClass=function(a){if(!h||1>h.length)h=b('<style type="text/css" id="cssAnimation"></style>').appendTo("head");h.html(h.html()+a)};b.buildKeyframeClass=function(a){var e=[],c=[],f=[];b.each(a,function(a,d){if(!d.name)d.name=b.getUniqueName("boxFxAnim");if(!d.delay||1>parseInt(d.delay,10))d.delay="";c.push(d.name+" "+d.duration+" "+d.timingFunction+" "+d.delay+" "+d.iterationCount+
-" "+d.direction);f.push(d.fillMode);var h=[];b.each(d.steps,function(a,c){var d=("number"==typeof c.step?c.step+"%":c.step)+" { ";b.each(c,function(a,b){"step"!=a&&(d+=(""+(Modernizr.prefixed(a)||a)).toDash()+": "+b+"; ")});d+=" } ";h.push(d)});e.push("@-"+b.browserPrefix+"-keyframes "+d.name+" { "+h.join(" ")+" }")});b.setCssClass(e.join("\n"));return{animation:c.join(","),animationFillMode:f.join(",")}};b.fn.crossCss=function(a){return this.each(function(){var e=b(this);if("object"!=typeof a)return e;
+f.oRequestAnimationFrame||f.msRequestAnimationFrame||function(a){f.setTimeout(a,1E3/60)}}();b.getRand=function(a,b){return parseInt(a+Math.random()*(b-a),10)};b.getTpl=function(a,b){for(var c in b)a=a.replace(RegExp("(#"+c+"#)","g"),b[c]||"");return a};var i=null;b.getUniqueName=function(a){i||(i=(new Date).getTime());return(a?a:"id_")+i++};b.removeObjEmptyValue=function(a){b.each(a,function(e,c){!c&&0!==c&&!1!==c?delete a[e]:"object"==typeof a[e]&&b.removeObjEmptyValue(a[e])})};b.getJs=function(a,
+b){var c=document.createElement("script");c.type="text/javascript";c.src=a;b&&(c.async=!0);document.getElementsByTagName("head")[0].appendChild(c)};b.browserPrefix=function(a){var b={firefox:"moz",applewebkit:"webkit",webkit:"webkit",opera:"o",msie:"ms"},c;for(c in b)if(-1!==a.indexOf(c))return b[c];return!1}(navigator.userAgent.toLowerCase());b.transitionEnd={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",msTransition:"msTransitionEnd",transition:"transitionEnd"}[Modernizr.prefixed("transition")];
+b.animationStart={WebkitAnimation:"webkitAnimationStart",MozAnimation:"animationstart",OAnimation:"oAnimationStart",msAnimation:"msAnimationStart",animation:"animationStart"}[Modernizr.prefixed("animation")];b.animationEnd={WebkitAnimation:"webkitAnimationEnd",MozAnimation:"animationend",OAnimation:"oAnimationEnd",msAnimation:"msAnimationEnd",animation:"animationEnd"}[Modernizr.prefixed("animation")];b.getMsDuration=function(a){var b=parseFloat(a,10);"ms"!=a.substr(-2)&&(b*=1E3);return b};b.getSize=
+function(a,b){a&&"%"==(""+a).substr(-1)&&(a=parseFloat(a)/100*b);return parseInt(a,10)};var j="width minWidth maxWidth left right marginLeft marginRight maxSize".split(" "),k="height minHeight maxHeight top bottom marginTop marginBottom".split(" ");b.fixCssUnit=function(a,e,c){b.each(j,function(c,g){g in a&&a[g]&&(a[g]=b.getSize(a[g],e))});b.each(k,function(e,g){g in a&&a[g]&&(a[g]=b.getSize(a[g],c))})};b.addCssUnit=function(a){b.each(j,function(b,c){c in a&&(a[c]&&"number"==typeof a[c])&&(a[c]+=
+"px")});b.each(k,function(b,c){c in a&&(a[c]&&"number"==typeof a[c])&&(a[c]+="px")})};var h=b("style#cssAnimation");b.setCssClass=function(a){if(!h||1>h.length)h=b('<style type="text/css" id="cssAnimation"></style>').appendTo("head");h.html(h.html()+a)};b.buildKeyframeClass=function(a){var e=[],c=[],f=[];b.each(a,function(a,d){d.name||(d.name=b.getUniqueName("boxFxAnim"));if(!d.delay||1>parseInt(d.delay,10))d.delay="";c.push(d.name+" "+d.duration+" "+d.timingFunction+" "+d.delay+" "+d.iterationCount+
+" "+d.direction);f.push(d.fillMode);var h=[];b.each(d.steps,function(a,c){var d=(typeof c.step=="number"?c.step+"%":c.step)+" { ";b.each(c,function(a,b){a!="step"&&(d=d+((""+(Modernizr.prefixed(a)||a)).toDash()+": "+b+"; "))});d=d+" } ";h.push(d)});e.push("@-"+b.browserPrefix+"-keyframes "+d.name+" { "+h.join(" ")+" }")});b.setCssClass(e.join("\n"));return{animation:c.join(","),animationFillMode:f.join(",")}};b.fn.crossCss=function(a){return this.each(function(){var e=b(this);if("object"!=typeof a)return e;
for(var c in a)Modernizr.prefixed(c)&&(a[Modernizr.prefixed(c)]=a[c]);return e.css(a)})}})(jQuery,window);

0 comments on commit 011a8eb

Please sign in to comment.
Something went wrong with that request. Please try again.