diff options
Diffstat (limited to 'linux')
-rw-r--r-- | linux/coredump.html | 6 | ||||
-rw-r--r-- | linux/cryptsetup.html | 6 | ||||
-rw-r--r-- | linux/index.html | 6 | ||||
-rw-r--r-- | linux/input.html | 6 | ||||
-rw-r--r-- | linux/ptrace_scope.html | 6 | ||||
-rw-r--r-- | linux/swap.html | 6 | ||||
-rw-r--r-- | linux/systemd.html | 6 |
7 files changed, 35 insertions, 7 deletions
diff --git a/linux/coredump.html b/linux/coredump.html index 22d69b5..d243756 100644 --- a/linux/coredump.html +++ b/linux/coredump.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); @@ -267,5 +270,6 @@ coredumpctl dump 6363 -o <file> <!-- Custom JS scripts --> + </div> </body> </html> diff --git a/linux/cryptsetup.html b/linux/cryptsetup.html index 1987137..4c136db 100644 --- a/linux/cryptsetup.html +++ b/linux/cryptsetup.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); @@ -265,5 +268,6 @@ sudo cryptsetup close loop0 <!-- Custom JS scripts --> + </div> </body> </html> diff --git a/linux/index.html b/linux/index.html index b76557a..6f215ef 100644 --- a/linux/index.html +++ b/linux/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); @@ -202,5 +205,6 @@ <!-- Custom JS scripts --> + </div> </body> </html> diff --git a/linux/input.html b/linux/input.html index 2aaeed6..beeec6c 100644 --- a/linux/input.html +++ b/linux/input.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); @@ -312,5 +315,6 @@ int main(int argc, char* argv[]) { <!-- Custom JS scripts --> + </div> </body> </html> diff --git a/linux/ptrace_scope.html b/linux/ptrace_scope.html index 4f10a2c..9ddd375 100644 --- a/linux/ptrace_scope.html +++ b/linux/ptrace_scope.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); @@ -208,5 +211,6 @@ <!-- Custom JS scripts --> + </div> </body> </html> diff --git a/linux/swap.html b/linux/swap.html index dba387d..b00ded9 100644 --- a/linux/swap.html +++ b/linux/swap.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); @@ -235,5 +238,6 @@ For example as <code>systemd</code> service:</p> <!-- Custom JS scripts --> + </div> </body> </html> diff --git a/linux/systemd.html b/linux/systemd.html index a2ea51d..47bf3c5 100644 --- a/linux/systemd.html +++ b/linux/systemd.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); @@ -251,5 +254,6 @@ journalctl --user -u test -n 5 <!-- Custom JS scripts --> + </div> </body> </html> |