aboutsummaryrefslogtreecommitdiff
path: root/yomichan-user
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-08-10 13:46:33 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-08-10 13:46:33 +0200
commit70c5170da71dbe2ec9cbd8369b43e7a62f0acdb5 (patch)
tree938e56cee3c669de0d1a82235be97c41cb86935f /yomichan-user
parent2e0e13dbf4f093360cd0ffe6121bef1b747515b6 (diff)
remove unfinished WIP + add obsolete notices
Diffstat (limited to 'yomichan-user')
-rw-r--r--yomichan-user/conf.d/handwriting.css.m41
-rw-r--r--yomichan-user/conf.d/handwriting.js24
m---------yomichan-user/lib/handwriting.js0
-rw-r--r--yomichan-user/makefile4
-rw-r--r--yomichan-user/readme.md7
5 files changed, 1 insertions, 35 deletions
diff --git a/yomichan-user/conf.d/handwriting.css.m4 b/yomichan-user/conf.d/handwriting.css.m4
deleted file mode 100644
index 6b3727b..0000000
--- a/yomichan-user/conf.d/handwriting.css.m4
+++ /dev/null
@@ -1 +0,0 @@
-.icon[data-icon=draw] { --icon-image: url`(data:image/svg+xml;base64,'undivert(draw.svg.b64)`)'; }
diff --git a/yomichan-user/conf.d/handwriting.js b/yomichan-user/conf.d/handwriting.js
deleted file mode 100644
index 7e63224..0000000
--- a/yomichan-user/conf.d/handwriting.js
+++ /dev/null
@@ -1,24 +0,0 @@
-{
-
-function patchSearchBar() {
- var searchBarOuter = document.getElementsByClassName("search-textbox-container")[0];
- var button = document.createElement("button");
- button.id = "handwriting-input-toggle";
- button.classList.add("search-button");
- button.onclick = () => console.log("AAAA");
- var icon = document.createElement("span");
- icon.classList.add("icon");
- icon.setAttribute("data-icon", "draw");
- button.appendChild(icon);
- searchBarOuter.insertBefore(button, searchBarOuter.childNodes[2]);
-}
-
-(() => {
- if (document.body.classList.contains("handwriting-patched")) return;
-
- patchSearchBar();
-
- document.body.classList.add("handwriting-patched");
-})();
-
-}
diff --git a/yomichan-user/lib/handwriting.js b/yomichan-user/lib/handwriting.js
deleted file mode 160000
-Subproject 6d41109d3293295a7d7678d0cb97f483d28f47e
diff --git a/yomichan-user/makefile b/yomichan-user/makefile
index c4cf026..e0a3ea8 100644
--- a/yomichan-user/makefile
+++ b/yomichan-user/makefile
@@ -8,7 +8,6 @@ CSSMIN := uglifycss
all: yomichan-user.js yomichan-user.css
user.js: conf.d/lib.js
-user.js: lib/handwriting.js/handwriting.canvas.js
user.js: conf.d/sentence-export.js
user.css: conf.d/sentence-export.css
@@ -16,8 +15,6 @@ user.css: conf.d/custom.css
user.js: conf.d/word-export.js
user.css: conf.d/word-export.css
user.js: conf.d/shortcuts.js
-user.js: conf.d/handwriting.js
-user.css: conf.d/handwriting.css
include ../common.mk
@@ -32,7 +29,6 @@ GARBAGE += assets/draw.svg.b64
conf.d/sentence-export.css: assets/copy.svg.b64
conf.d/sentence-export.css: conf.d/sentence-export.css.m4
conf.d/word-export.css: assets/copy-bitmap.svg.b64
-conf.d/handwriting.css: assets/draw.svg.b64
user.js:
cat $^ > $@
diff --git a/yomichan-user/readme.md b/yomichan-user/readme.md
index 50f9423..2ebf707 100644
--- a/yomichan-user/readme.md
+++ b/yomichan-user/readme.md
@@ -1,4 +1,4 @@
-# yomichan stuff
+# yomichan stuff (OBSOLETE)
this is a folder containing yomichan stuff
@@ -36,8 +36,3 @@ adds the following shortcuts to yomichan:
|<kbd>Alt</kbd>+<kbd>K</kbd>|select previous definition (move up)|
|<kbd>Alt</kbd>+<kbd>G</kbd>|scroll back to top|
-## handwriting
-
-adds handwriting input panel to yomichan (WIP)
-
-