final arrow fix for now

This commit is contained in:
biglyderv 2025-04-21 20:03:58 -04:00
parent 64b116d647
commit 6035188380
Signed by: biglyderv
GPG key ID: 0E2EB0B4CD7397B5
2 changed files with 59 additions and 2 deletions

View file

@ -21,11 +21,14 @@ async function addMsg(msg) {
var item = document.createElement('li');
item.textContent = line;
if (line.startsWith('-') || line.startsWith('<')) {
if (line[0] == '-' ||line[0] == '<' ) {
let img = new Image();
if (line.startsWith('<') || line[2] == '>') {
if (line[0] == '<' ) {
item.textContent = line.slice(3);
img.src = `arrows/left.svg`;
} else if (line[1] == '>') {
item.textContent = line.slice(3);
img.src = `arrows/cap.svg`;
} else {
item.textContent = line.slice(2);
img.src = `arrows/right.svg`;