summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorHui Lan <lanhui@zjnu.edu.cn>2020-08-14 08:07:56 +0800
committerHui Lan <lanhui@zjnu.edu.cn>2020-08-14 08:07:56 +0800
commit9e43f8f04bb1124b79b54b70f1e06398b8382922 (patch)
tree3da537f5b27fe613f4f827038acaacddee7651ef /app
parentcc80db1e318d2ab8e6f9f24662ccc3a1beab7e8f (diff)
main.py: make selecting words work on touchscreen.
Diffstat (limited to 'app')
-rw-r--r--app/main.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/main.py b/app/main.py
index ce97486..45a68ec 100644
--- a/app/main.py
+++ b/app/main.py
@@ -313,6 +313,7 @@ def userpage(username):
element.value = element.value + " " + getWord();
}
document.getElementById("text-content").addEventListener("click", fillinWord, false);
+ document.getElementById("text-content").addEventListener("touchstart", fillinWord, false);
</script>
'''