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`;