diff options
author | Hui Lan <lanhui@zjnu.edu.cn> | 2020-08-14 08:07:56 +0800 |
---|---|---|
committer | Hui Lan <lanhui@zjnu.edu.cn> | 2020-08-14 08:07:56 +0800 |
commit | 9e43f8f04bb1124b79b54b70f1e06398b8382922 (patch) | |
tree | 3da537f5b27fe613f4f827038acaacddee7651ef | |
parent | cc80db1e318d2ab8e6f9f24662ccc3a1beab7e8f (diff) |
main.py: make selecting words work on touchscreen.
-rw-r--r-- | app/main.py | 1 |
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>
'''
|