Let's try mozilla's fixedCharAt function
This commit is contained in:
parent
0e923aa4b4
commit
419ad415ed
@ -262,14 +262,14 @@ function design5(input) {
|
||||
|
||||
if (dist > radius - 1 && dist < radius + 1) { //&& dist > radius - 1
|
||||
lineHasInput = true;
|
||||
outputLine += "" + input.fixedCharAt(charIterate(input)); //zero-width space
|
||||
outputLine += "" + fixedCharAt(input, charIterate(input)); //zero-width space
|
||||
} else {
|
||||
outputLine += " ";
|
||||
}
|
||||
}
|
||||
} else {
|
||||
lineHasInput = true;
|
||||
outputLine += input.fixedCharAt(charIterate(input)) + space + input + space + spaceOffset + input.fixedCharAt(charIterate(input));
|
||||
outputLine += fixedCharAt(input, charIterate(input)) + space + input + space + spaceOffset + fixedCharAt(input, charIterate(input));
|
||||
}
|
||||
|
||||
//console.log(i, j, outputLine);
|
||||
|
Loading…
Reference in New Issue
Block a user