Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

add minified version of filosofo js

  • Loading branch information...
commit 0ea6edd9b4f6f89d323886c29d0b00de4045adf5 1 parent 14e3ff3
Austin Matzko authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  client-files/js/filosofo-js.js
2  client-files/js/filosofo-js.js
... ... @@ -1 +1 @@
1   -var FilosofoJS=function(a){var o=function(w,v,d){if(w.addEventListener){w.addEventListener(v,d,false)}else{if(w.attachEvent){w.attachEvent("on"+v,function(){return d.call(w,window.event)})}}},s=document,j=(function(){var v,d=[function(){return new a.ActiveXObject("Microsoft.XMLHTTP")},function(){return new a.ActiveXObject("Msxml2.XMLHTTP.3.0")},function(){return new a.ActiveXObject("Msxml2.XMLHTTP.6.0")},function(){return new XMLHttpRequest()}];for(v=d.length;v--;){try{if(d[v]()){return d[v]}}catch(w){}}})(),u=function(d,x,z){d=d||"admin-ajax.php";x=x||{};var v,w=new j;v=n(x);try{if("undefined"==typeof z){z=function(){}}w.open("POST",d,true);w.setRequestHeader("Content-Type","application/x-www-form-urlencoded");w.onreadystatechange=function(){if(4==w.readyState){w.onreadystatechange=function(){};if(200<=w.status&&300>w.status||("undefined"==typeof w.status)){z(w.responseText)}}};w.send(v)}catch(y){}},b=function(w,d){var v=w.constructor.prototype[d];return("undefined"==typeof v||d!==w[v])},n=function(d){var w,v,x=[];for(w in d){if(b(d,w)){if("[]"==w.substr(w.length-2,w.length)){for(v=0;v<d[w].length;v++){x[x.length]=k(w)+"="+k(d[w][v])}}else{x[x.length]=k(w)+"="+k(d[w])}}}return x.join("&")},k=(function(){var d=function(v){return encodeURIComponent(v).replace(/%20/,"+").replace(/(.{0,3})(%0A)/g,function(x,y,w){return y+(y=="%0D"?"":"%0D")+w}).replace(/(%0D)(.{0,3})/g,function(x,y,w){return y+(w=="%0A"?"":"%0A")+w})};if(typeof encodeURIComponent!="undefined"&&String.prototype.replace&&d("\n \r")=="%0D%0A+%0D%0A"){return d}})(),r=function(d){d=d||window.event;return d.target||d.srcElement},h=function(w,d,v){return((1-v)*w)+(v*d)},e=function(x,d,w){var v=h(x,d,w*w*(3-2*w));return v},f=false,c=function(w){if(f){return}var d=w,D=0,B=0,A=25,y=400,C=y/A,v,x,z;while(d.offsetParent&&d!=s.dElement){D+=d.offsetTop;d=d.offsetParent}D=D-30;D=0>D?0:D;if(s.documentElement&&s.documentElement.scrollTop){B=s.documentElement.scrollTop}else{if(s.body&&s.body.scrollTop){B=s.body.scrollTop}else{if(s.getElementsByTagName("body")){B=s.getElementsByTagName("body")[0].scrollTop}}}v=B-D;x=v/C;for(z=0;z<C;z++){(function(){var G=Math.ceil(B-(e(0,1,(z/C))*v)),E=z,F=(z+1)<C?false:true;setTimeout(function(){if(F){f=false}scrollTo(0,G)},E*A)})()}},t=function(d,v){return{animate:function(){if(this.inProgress){return}this.inProgress=true;v=v||function(){};var y=20,C=500,w=C/y,x,A=false,B,z=this;for(x=0;x<w;x++){A=(x+1)<w?false:true;B=0<d?e(0,1,(x/w))*d:e(1,0,(x/w))*d;(function(D){var F=x,E=A,G=B;setTimeout(function(){if(E){z.inProgress=false}D.apply(z,[G,E])},F*y)})(v)}}}},q=function(x,v,y){if(!x){return}v=v||-1;y=y||function(){};if(-1===v){x.style.opacity=1;x.style.filter="alpha(opacity=100)"}else{if(1===v){x.style.opacity=0;x.style.filter="alpha(opacity=0)";x.style.display="block"}}var w=function(A,z){var B=100+A*v;x.style.opacity=B/100;x.style.filter="alpha(opacity="+B+")";if(z){y.call(x);if(-1===v){x.style.display="none"}else{x.style.display="block"}}},d;if(x){if(-1===v){d=new t(100,w),d.animate()}else{d=new t(-100,w);d.animate()}}},p=function(v,w,d){if(!d){d=s}if(!v||!w){return false}(function(z,A,y){var x=new RegExp("\\b"+z+"\\b");o(y,"click",function(D){var B=true,C=r(D);do{if(C.className&&x.exec(C.className)){B=A.call(C,D);if(!B){if(D.stopPropagation){D.stopPropagation()}if(D.preventDefault){D.preventDefault()}D.cancelBubble=true;D.returnValue=false;return false}else{return true}}else{C=C.parentNode}}while(C&&C!=y)})})(v,w,d)},l=function(d){if(d){m=d}o(s,"DOMContentLoaded",i);o(window,"load",i)},g=false,m=function(){},i=function(){if(g){return false}g=true;m()};return{addEvent:o,Animation:t,attachClassClickListener:p,doWhenReady:l,fade:q,getEventTarget:r,isObjProperty:b,postReq:u,scrollToElement:c}};
  1 +var FilosofoJS=function(a){var p=function(x,w,d){if(x.addEventListener){x.addEventListener(w,d,false)}else{if(x.attachEvent){x.attachEvent("on"+w,function(){return d.call(x,window.event)})}}},t=document,j=(function(){var w,d=[function(){return new a.ActiveXObject("Microsoft.XMLHTTP")},function(){return new a.ActiveXObject("Msxml2.XMLHTTP.3.0")},function(){return new a.ActiveXObject("Msxml2.XMLHTTP.6.0")},function(){return new XMLHttpRequest()}];for(w=d.length;w--;){try{if(d[w]()){return d[w]}}catch(x){}}})(),v=function(d,y,A){d=d||"admin-ajax.php";y=y||{};var w,x=new j;w=n(y);try{if("undefined"==typeof A){A=function(){}}x.open("POST",d,true);x.setRequestHeader("Content-Type","application/x-www-form-urlencoded");x.onreadystatechange=function(){if(4==x.readyState){x.onreadystatechange=function(){};if(200<=x.status&&300>x.status||("undefined"==typeof x.status)){A(x.responseText)}}};x.send(w)}catch(z){}},b=function(x,d){var w=x.constructor.prototype[d];return("undefined"==typeof w||d!==x[w])},n=function(d){var x,w,y=[];for(x in d){if(b(d,x)){if("[]"==x.substr(x.length-2,x.length)){for(w=0;w<d[x].length;w++){y[y.length]=k(x)+"="+k(d[x][w])}}else{y[y.length]=k(x)+"="+k(d[x])}}}return y.join("&")},k=(function(){var d=function(w){return encodeURIComponent(w).replace(/%20/,"+").replace(/(.{0,3})(%0A)/g,function(y,z,x){return z+(z=="%0D"?"":"%0D")+x}).replace(/(%0D)(.{0,3})/g,function(y,z,x){return z+(x=="%0A"?"":"%0A")+x})};if(typeof encodeURIComponent!="undefined"&&String.prototype.replace&&d("\n \r")=="%0D%0A+%0D%0A"){return d}})(),s=function(d){d=d||window.event;return d.target||d.srcElement},o=function(A){if(!A){return{}}var y=["button","input","select","textarea"],z,x=y.length,w=0,C,B={},d;while(x--){d=A.getElementsByTagName(y[x]);z=d.length;while(z--){if(d[z]&&d[z].name){C=(d[z].type+"").toLowerCase();if("select-multiple"==C){w=d[z].options.length;if(-1<d[z].selectedIndex){B[d[z].name]=[];while(w--){if(d[z].options[w].selected){B[d[z].name][B[d[z].name].length]=d[z].options[w].value}}}}else{if("select"==d[z].name){if(d[z].options&&d[z].options[d[z].selectedIndex]){B[d[z].name]=d[z].options[d[z].selectedIndex]}else{if(d[z].value){B[d[z].name]=d[z].value}}}else{if("button"==d[z].nodeName.toLowerCase()){if(d[z].name){if(d[z].getAttribute("value")){B[d[z].name]=d[z].getAttribute("value")}else{if(d[z].value){B[d[z].name]=d[z].value}else{if(d[z].innerText||d[z].textContent){B[d[z].name]=(d[z].innerText||d[z].textContent)}}}}}else{if("checkbox"==C){if(!B[d[z].name]||!B[d[z].name][0]){B[d[z].name]=[]}if(d[z].checked){B[d[z].name][B[d[z].name].length]=d[z].value}}else{if(!C||"radio"!=C||("radio"==C&&d[z].checked)){B[d[z].name]=d[z].value}}}}}}}}return B},h=function(x,d,w){return((1-w)*x)+(w*d)},e=function(y,d,x){var w=h(y,d,x*x*(3-2*x));return w},f=false,c=function(x){if(f){return}var d=x,E=0,C=0,B=25,z=400,D=z/B,w,y,A;while(d.offsetParent&&d!=t.dElement){E+=d.offsetTop;d=d.offsetParent}E=E-30;E=0>E?0:E;if(t.documentElement&&t.documentElement.scrollTop){C=t.documentElement.scrollTop}else{if(t.body&&t.body.scrollTop){C=t.body.scrollTop}else{if(t.getElementsByTagName("body")){C=t.getElementsByTagName("body")[0].scrollTop}}}w=C-E;y=w/D;for(A=0;A<D;A++){(function(){var H=Math.ceil(C-(e(0,1,(A/D))*w)),F=A,G=(A+1)<D?false:true;setTimeout(function(){if(G){f=false}scrollTo(0,H)},F*B)})()}},u=function(d,w){return{animate:function(){if(this.inProgress){return}this.inProgress=true;w=w||function(){};var z=20,D=500,x=D/z,y,B=false,C,A=this;for(y=0;y<x;y++){B=(y+1)<x?false:true;C=0<d?e(0,1,(y/x))*d:e(1,0,(y/x))*d;(function(E){var G=y,F=B,H=C;setTimeout(function(){if(F){A.inProgress=false}E.apply(A,[H,F])},G*z)})(w)}}}},r=function(y,w,z){if(!y){return}w=w||-1;z=z||function(){};if(-1===w){y.style.opacity=1;y.style.filter="alpha(opacity=100)"}else{if(1===w){y.style.opacity=0;y.style.filter="alpha(opacity=0)";y.style.display="block"}}var x=function(B,A){var C=100+B*w;y.style.opacity=C/100;y.style.filter="alpha(opacity="+C+")";if(A){z.call(y);if(-1===w){y.style.display="none"}else{y.style.display="block"}}},d;if(y){if(-1===w){d=new u(100,x),d.animate()}else{d=new u(-100,x);d.animate()}}},q=function(w,x,d){if(!d){d=t}if(!w||!x){return false}(function(A,B,z){var y=new RegExp("\\b"+A+"\\b");p(z,"click",function(E){var C=true,D=s(E);do{if(D.className&&y.exec(D.className)){C=B.call(D,E);if(!C){if(E.stopPropagation){E.stopPropagation()}if(E.preventDefault){E.preventDefault()}E.cancelBubble=true;E.returnValue=false;return false}else{return true}}else{D=D.parentNode}}while(D&&D!=z)})})(w,x,d)},l=function(d){if(d){m=d}p(t,"DOMContentLoaded",i);p(window,"load",i)},g=false,m=function(){},i=function(){if(g){return false}g=true;m()};return{addEvent:p,Animation:u,attachClassClickListener:q,doWhenReady:l,fade:r,getEventTarget:s,getFormData:o,isObjProperty:b,postReq:v,scrollToElement:c}};

0 comments on commit 0ea6edd

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