I hereby claim:
- I am milkboy on github.
- I am wikbmi (https://keybase.io/wikbmi) on keybase.
- I have a public key whose fingerprint is 4375 3C20 6FB9 83F4 079C 98F0 6EA1 7DAA 0AC0 BE20
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/awk -f | |
BEGIN{E=1} | |
/M/{D=$2;sub(/:/,"",D);R[D]=S[D]=0;N++} | |
/S/{split(substr($0,19),n,", ");r=substr($0,19);gsub(/, /," ",r);I[D]=J[D]=r} | |
/O/{$5=="+"?A[D]=$6:$6=="old"?0:C[D]=$6} | |
/T/{T[D]=$4;E*=$4} | |
/u/{Q[D]=$6} | |
/fa/{W[D]=$6} | |
function p(i,w){split(w==1?I[i]:J[i],n);for(z in n){ | |
z=A[i]!=""?n[z]+A[i]:C[i]!=""?n[z]*C[i]:n[z]*n[z];z=w==1?z/3:z%E;sub(/\..*/,"",z) |
--- speedhelper.orig.js 2016-02-12 15:01:42.140244000 +0200 | |
+++ speedhelper.test.js 2016-02-12 15:46:45.142517200 +0200 | |
@@ -199,6 +199,13 @@ | |
// Get width/height of sign background img | |
addsign.style.cssText = 'cursor:pointer;float:left;width:'+dims[1]+'px;height:'+dims[0]+'px;background-image: url(\''+ bgimage + '\');'; | |
+ | |
+ //Mark the currently selected speed sign if speed is the same in both directions | |
+ if($("input[name=fwdMaxSpeed]").val() == $("input[name=revMaxSpeed]").val() && $("input[name=fwdMaxSpeed]").val() == speed) { | |
+ //Just testing =) |