Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

making more methods public

  • Loading branch information...
commit 1c5dea031a04bc072b5664ccb09900f2bdf9d54d 1 parent 2bc6e5f
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,attachClassClickListener:p,doWhenReady:l,fade:q,getEventTarget:r,postReq:u,scrollToElement:c}};
  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}};

0 comments on commit 1c5dea0

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