aboutsummaryrefslogtreecommitdiffhomepage
path: root/web
diff options
context:
space:
mode:
Diffstat (limited to 'web')
-rw-r--r--web/chartjs.html6
-rw-r--r--web/html.html6
-rw-r--r--web/index.html6
3 files changed, 15 insertions, 3 deletions
diff --git a/web/chartjs.html b/web/chartjs.html
index 126f0fa..ae43c27 100644
--- a/web/chartjs.html
+++ b/web/chartjs.html
@@ -32,6 +32,7 @@
</head>
<body>
+ <div id="body-container">
<!-- Provide site root to javascript -->
<script>
var path_to_root = "../";
@@ -69,10 +70,12 @@
<!-- Hide / unhide sidebar before it is displayed -->
<script>
var html = document.querySelector('html');
- var sidebar = 'hidden';
+ var sidebar = null;
if (document.body.clientWidth >= 1080) {
try { sidebar = localStorage.getItem('mdbook-sidebar'); } catch(e) { }
sidebar = sidebar || 'visible';
+ } else {
+ sidebar = 'hidden';
}
html.classList.remove('sidebar-visible');
html.classList.add("sidebar-" + sidebar);
@@ -296,5 +299,6 @@ const chart = new Chart(
<!-- Custom JS scripts -->
+ </div>
</body>
</html>
diff --git a/web/html.html b/web/html.html
index dc8f126..a08677a 100644
--- a/web/html.html
+++ b/web/html.html
@@ -32,6 +32,7 @@
</head>
<body>
+ <div id="body-container">
<!-- Provide site root to javascript -->
<script>
var path_to_root = "../";
@@ -69,10 +70,12 @@
<!-- Hide / unhide sidebar before it is displayed -->
<script>
var html = document.querySelector('html');
- var sidebar = 'hidden';
+ var sidebar = null;
if (document.body.clientWidth >= 1080) {
try { sidebar = localStorage.getItem('mdbook-sidebar'); } catch(e) { }
sidebar = sidebar || 'visible';
+ } else {
+ sidebar = 'hidden';
}
html.classList.remove('sidebar-visible');
html.classList.add("sidebar-" + sidebar);
@@ -323,5 +326,6 @@ window.onload = () =&gt; {
<!-- Custom JS scripts -->
+ </div>
</body>
</html>
diff --git a/web/index.html b/web/index.html
index b2f5de5..9370612 100644
--- a/web/index.html
+++ b/web/index.html
@@ -32,6 +32,7 @@
</head>
<body>
+ <div id="body-container">
<!-- Provide site root to javascript -->
<script>
var path_to_root = "../";
@@ -69,10 +70,12 @@
<!-- Hide / unhide sidebar before it is displayed -->
<script>
var html = document.querySelector('html');
- var sidebar = 'hidden';
+ var sidebar = null;
if (document.body.clientWidth >= 1080) {
try { sidebar = localStorage.getItem('mdbook-sidebar'); } catch(e) { }
sidebar = sidebar || 'visible';
+ } else {
+ sidebar = 'hidden';
}
html.classList.remove('sidebar-visible');
html.classList.add("sidebar-" + sidebar);
@@ -198,5 +201,6 @@
<!-- Custom JS scripts -->
+ </div>
</body>
</html>