From 603518838097062bae5a33e30565f76babd22cbb Mon Sep 17 00:00:00 2001 From: biglyderv Date: Mon, 21 Apr 2025 20:03:58 -0400 Subject: [PATCH] final arrow fix for now --- arrows/cap.svg | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++ index.js | 7 +++++-- 2 files changed, 59 insertions(+), 2 deletions(-) create mode 100644 arrows/cap.svg diff --git a/arrows/cap.svg b/arrows/cap.svg new file mode 100644 index 0000000..798f0bd --- /dev/null +++ b/arrows/cap.svg @@ -0,0 +1,54 @@ + + + + + + + + + + + + + diff --git a/index.js b/index.js index a1303b0..beb163e 100644 --- a/index.js +++ b/index.js @@ -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`;