final arrow fix for now
This commit is contained in:
parent
64b116d647
commit
6035188380
2 changed files with 59 additions and 2 deletions
54
arrows/cap.svg
Normal file
54
arrows/cap.svg
Normal file
|
@ -0,0 +1,54 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
version="1.1"
|
||||
width="30.09294"
|
||||
height="45.84839"
|
||||
viewBox="0,0,30.09294,45.84839"
|
||||
id="svg3"
|
||||
sodipodi:docname="cap.svg"
|
||||
inkscape:version="1.4.1 (93de688d07, 2025-03-30)"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:svg="http://www.w3.org/2000/svg">
|
||||
<defs
|
||||
id="defs3" />
|
||||
<sodipodi:namedview
|
||||
id="namedview3"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#000000"
|
||||
borderopacity="0.25"
|
||||
inkscape:showpageshadow="2"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pagecheckerboard="0"
|
||||
inkscape:deskcolor="#d1d1d1"
|
||||
showgrid="false"
|
||||
inkscape:zoom="9.2805879"
|
||||
inkscape:cx="15.031375"
|
||||
inkscape:cy="22.897256"
|
||||
inkscape:window-width="1918"
|
||||
inkscape:window-height="1056"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="22"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="g2" />
|
||||
<g
|
||||
transform="translate(-382.61101,-201.83478)"
|
||||
id="g3">
|
||||
<g
|
||||
fill="#59d1ff"
|
||||
stroke="none"
|
||||
stroke-width="0"
|
||||
stroke-miterlimit="10"
|
||||
id="g2">
|
||||
<path
|
||||
d="m 383.20753,190.06668 c 0,0 5.25287,-6.45738 7.94532,2.59519 1.16209,3.90718 -1.89587,28.11712 0.13762,28.15481 2.10129,0.0389 5.8803,0.6787 9.6918,0.68055 8.46549,0.004 8.01164,7.18521 -1.35686,7.18521 -6.96428,0 -13.45628,-0.875 -14.92534,-0.875 -0.60667,0 -1.49346,-2.35319 -1.55773,-2.75365 -0.23664,-1.47444 -0.47902,-3.24541 -0.52072,-4.52665 -0.10362,-3.18412 0.58591,-30.46046 0.58591,-30.46046 z"
|
||||
id="path1" />
|
||||
<path
|
||||
d="m 412.70395,224.07506 -9.82048,9.60811 0.44465,-20.24512 z"
|
||||
id="path2" />
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
<!--rotationCenter:42.38899245042728:38.16522307833455-->
|
||||
|
After Width: | Height: | Size: 1.8 KiB |
7
index.js
7
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`;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue