From 3d0ccfba34d6371b41e877189b78599ae7b2f98a Mon Sep 17 00:00:00 2001 From: altaf-creator Date: Sat, 16 Mar 2024 17:48:01 +0700 Subject: new branch! decided to revive this old project. lessons now support markdown, rebrand? --- scripts/sidebar.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'scripts/sidebar.js') 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 +} -- cgit v1.2.3