Got the old tools into git

This commit is contained in:
2014-12-03 17:11:38 -08:00
commit 0bfe359e55
22 changed files with 1869 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
if (Array.prototype.getOne==null) Array.prototype.getOne=function(item){ //Extends the Array class with the getOne functions wich
var val = -1;
for(i=0;i<=this.length;i++){
if(this[i]==item){
var val = i;
}
}
return val;
}
function yFactor(n,f){
if((typeof(n)=='number'&&typeof(f)=='number')&&(n>f)){
value = n - (n%f);
return(value);
}else{
alert('error');
}
}