diff options
| author | altaf-creator <athaalaa@gmail.com> | 2024-03-16 17:48:01 +0700 |
|---|---|---|
| committer | altaf-creator <athaalaa@gmail.com> | 2024-03-16 17:48:01 +0700 |
| commit | 3d0ccfba34d6371b41e877189b78599ae7b2f98a (patch) | |
| tree | ea1acfc1a9c545537144edc18124dd16ed9d5099 /scripts/sidebar.js | |
| parent | 06857f20a528d5e7e5d3d2be5c3d4f836c7f366f (diff) | |
new branch! decided to revive this old project. lessons now support markdown, rebrand?
Diffstat (limited to 'scripts/sidebar.js')
| -rw-r--r-- | scripts/sidebar.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/sidebar.js b/scripts/sidebar.js index 22a54a6..3fcb63d 100644 --- a/scripts/sidebar.js +++ b/scripts/sidebar.js @@ -3,7 +3,7 @@ function toggleNav() { const sStyle = window.getComputedStyle(sidebar); if (sStyle.visibility == "hidden") { - if (document.body.clientWidth >= 700) { + if (document.body.clientWidth >= 1000) { document.getElementById("main").style.marginLeft = "360px"; try { @@ -14,7 +14,7 @@ function toggleNav() { } try { - document.getElementById("chip-container").style.marginLeft = "375px"; + document.getElementById("chip-container").style.marginLeft = "355px"; } catch { } @@ -35,9 +35,9 @@ function toggleNav() { } try { - document.getElementById("chip-container").style.marginLeft = "20px"; + document.getElementById("chip-container").style.marginLeft = "0px"; } catch { } } -}
\ No newline at end of file +} |
