From 4dd0fa87859e6ffa1b230eedd1388098a8ba81a1 Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Thu, 17 Oct 2024 12:40:50 +0800 Subject: 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 --- src/editor.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/editor.mjs') 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') /** Variables: dumbymap and editor **/ const context = document.querySelector('[data-mode]') const textArea = document.querySelector('.editor textarea') -const dumbyContainer = document.querySelector('.DumbyMap') +const dumbyContainer = document.querySelector('.Dumby') dumbyContainer.dataset.scrollLine = '' /** Watch: DumbyMap */ new window.MutationObserver(mutations => { -- cgit v1.2.3-70-g09d2