summaryrefslogtreecommitdiff
path: root/scripts/sidebar.js
diff options
context:
space:
mode:
authoraltaf-creator <dev@altafcreator.com>2024-07-18 10:39:11 +0700
committeraltaf-creator <dev@altafcreator.com>2024-07-18 10:39:11 +0700
commit599e5bb3b9cf774d4c3680644cf4bd0596fd34c0 (patch)
treeaa697860db979d4b3f82fbbf80141153aa89db26 /scripts/sidebar.js
parent5905c9767d071532c90aaf703108eb6fe6d5971f (diff)
Start migrating (and rewriting) lessons, NEW FEATURE: quizzes (unfinished)
Diffstat (limited to 'scripts/sidebar.js')
-rw-r--r--scripts/sidebar.js24
1 files changed, 20 insertions, 4 deletions
diff --git a/scripts/sidebar.js b/scripts/sidebar.js
index 542eb4d..bc70334 100644
--- a/scripts/sidebar.js
+++ b/scripts/sidebar.js
@@ -14,14 +14,22 @@ function openSidebar(useAnim) {
document.getElementById("main").style.removeProperty("transition");
document.getElementById("banner").style.removeProperty("transition");
document.getElementById("topbtn").style.removeProperty("transition");
- document.getElementById("chip-container").style.removeProperty("transition");
document.getElementById("sidebar").style.removeProperty("transition");
+ try {
+ document.getElementById("chip-container").style.removeProperty("transition");
+ } catch {
+
+ }
} else {
document.getElementById("main").style.transition = "none";
document.getElementById("banner").style.transition = "none";
document.getElementById("topbtn").style.transition = "none";
- document.getElementById("chip-container").style.transition = "none";
document.getElementById("sidebar").style.transition = "none";
+ try {
+ document.getElementById("chip-container").style.transition = "none";
+ } catch {
+
+ }
}
if (document.body.clientWidth >= 1000) {
@@ -52,14 +60,22 @@ function closeSidebar(useAnim) {
document.getElementById("main").style.removeProperty("transition");
document.getElementById("banner").style.removeProperty("transition");
document.getElementById("topbtn").style.removeProperty("transition");
- document.getElementById("chip-container").style.removeProperty("transition");
document.getElementById("sidebar").style.removeProperty("transition");
+ try {
+ document.getElementById("chip-container").style.removeProperty("transition");
+ } catch {
+
+ }
} else {
document.getElementById("main").style.transition = "none";
document.getElementById("banner").style.transition = "none";
document.getElementById("topbtn").style.transition = "none";
- document.getElementById("chip-container").style.transition = "none";
document.getElementById("sidebar").style.transition = "none";
+ try {
+ document.getElementById("chip-container").style.transition = "none";
+ } catch {
+
+ }
}
document.getElementById("main").style.marginLeft = "0";