diff options
author | Hsieh Chin Fan <typebrook@topo.tw> | 2023-02-03 22:32:11 +0800 |
---|---|---|
committer | Hsieh Chin Fan <typebrook@topo.tw> | 2023-02-03 22:32:11 +0800 |
commit | e63dea4ef9a346ee1912f03143dce123ce3ebe07 (patch) | |
tree | 2e94ec4feaaebdce0ad94e12842e5f0cb5fd903f /web | |
parent | e60b33c82b02ae04cb7acde079fd9c5ad2044ecc (diff) |
Update
Diffstat (limited to 'web')
-rw-r--r-- | web/bookmarklet/add-map | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/web/bookmarklet/add-map b/web/bookmarklet/add-map new file mode 100644 index 0000000..4a4251a --- /dev/null +++ b/web/bookmarklet/add-map | |||
@@ -0,0 +1,9 @@ | |||
1 | javascript: (function() { | ||
2 | mapDiv = document.createElement("div"); | ||
3 | mapDiv.setAttribute("class", 'map'); | ||
4 | document.body.append(mapDiv); | ||
5 | script = document.createElement("script"); | ||
6 | script.src = 'https://unpkg.com/mapclay@0.1.3/js/mapclay.js'; | ||
7 | script.type = 'module'; | ||
8 | document.body.append(script); | ||
9 | })(); | ||