Website typing improvements, uncommitted JIT work

This commit is contained in:
2023-12-09 19:03:22 -05:00
parent 56c6b3f5f7
commit 63a5b019ed
2 changed files with 64 additions and 30 deletions

View File

@@ -69,8 +69,20 @@ var wordflick = function () {
offset++;
}
}
while (words[i][offset] == ' ') {
offset++;
}
} else {
offset = Math.max(offset-4, 0);
for (var j = 0; j < 4; j++) {
if (offset > 0) {
offset--;
if (words[i][offset] == '>') {
while (words[i][offset] != '<') {
offset--;
}
}
}
}
}
}
document.getElementsByClassName('word')[0].innerHTML = part;