aboutsummaryrefslogtreecommitdiffstats
path: root/static/index.js
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2025-02-08 18:39:49 -0800
committerPinapelz <yukais@pinapelz.com>2025-02-08 18:39:49 -0800
commit6bc114dfac19db6977eca316d851ca1ba35bce2e (patch)
treeb7c08a84037061c43b092a90e0121cd224ec7d19 /static/index.js
parent6885cc099cb47aa10226cf55c21b95ab24a8e76d (diff)
add scalable svg icons
Diffstat (limited to 'static/index.js')
-rw-r--r--static/index.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/static/index.js b/static/index.js
index 2a1835c..ea68d2b 100644
--- a/static/index.js
+++ b/static/index.js
@@ -504,18 +504,18 @@ function bind_trash_events() {
trash.classList.add('droppable');
trash.addEventListener('dragenter', (evt) => {
evt.preventDefault();
- evt.target.src = 'trash_bin_open.png';
+ evt.target.src = '/static/img/trash-2.svg';
});
trash.addEventListener('dragexit', (evt) => {
evt.preventDefault();
- evt.target.src = 'trash_bin.png';
+ evt.target.src = '/static/img/trash.svg';
});
trash.addEventListener('dragover', (evt) => {
evt.preventDefault();
});
trash.addEventListener('drop', (evt) => {
evt.preventDefault();
- evt.target.src = 'trash_bin.png';
+ evt.target.src = '/static/img/trash.svg';
if (dragged_image) {
let dragged_image_parent = dragged_image.parentNode;
if (dragged_image_parent.tagName.toUpperCase() === 'SPAN' &&
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage