diff options
author | Hsieh Chin Fan <pham@topo.tw> | 2024-10-17 12:40:50 +0800 |
---|---|---|
committer | Hsieh Chin Fan <pham@topo.tw> | 2024-10-17 21:32:49 +0800 |
commit | 4dd0fa87859e6ffa1b230eedd1388098a8ba81a1 (patch) | |
tree | bd1c163a4091c812cfe6b569aeb38c439f97b56c /src/editor.mjs | |
parent | 5cbe9c55eca1b5b0a264414f9a255ea2d019d6e2 (diff) |
feat: set "sticky" as one of default layouts
* move function addDraggable() into module scope
* showcase in sticky layout is draggable now
* add query paramerter for "use"
* FIX: set initialLayout after observer is set
Diffstat (limited to 'src/editor.mjs')
-rw-r--r-- | src/editor.mjs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/editor.mjs b/src/editor.mjs index d56ad4b..2854373 100644 --- a/src/editor.mjs +++ b/src/editor.mjs | |||
@@ -24,7 +24,7 @@ const initialLayout = pageParams.get('layout') | |||
24 | /** Variables: dumbymap and editor **/ | 24 | /** Variables: dumbymap and editor **/ |
25 | const context = document.querySelector('[data-mode]') | 25 | const context = document.querySelector('[data-mode]') |
26 | const textArea = document.querySelector('.editor textarea') | 26 | const textArea = document.querySelector('.editor textarea') |
27 | const dumbyContainer = document.querySelector('.DumbyMap') | 27 | const dumbyContainer = document.querySelector('.Dumby') |
28 | dumbyContainer.dataset.scrollLine = '' | 28 | dumbyContainer.dataset.scrollLine = '' |
29 | /** Watch: DumbyMap */ | 29 | /** Watch: DumbyMap */ |
30 | new window.MutationObserver(mutations => { | 30 | new window.MutationObserver(mutations => { |