aboutsummaryrefslogtreecommitdiffhomepage
path: root/network
diff options
context:
space:
mode:
Diffstat (limited to 'network')
-rw-r--r--network/firewall-cmd.html6
-rw-r--r--network/index.html6
-rw-r--r--network/nftables.html6
-rw-r--r--network/tcpdump.html6
4 files changed, 20 insertions, 4 deletions
diff --git a/network/firewall-cmd.html b/network/firewall-cmd.html
index 45294f9..7ccdd82 100644
--- a/network/firewall-cmd.html
+++ b/network/firewall-cmd.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);
@@ -229,5 +232,6 @@ firewall-cmd --remove-rich-rule 'rule family=&quot;ipv4&quot; forward-port port=
<!-- Custom JS scripts -->
+ </div>
</body>
</html>
diff --git a/network/index.html b/network/index.html
index afbf0a4..756486e 100644
--- a/network/index.html
+++ b/network/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);
@@ -199,5 +202,6 @@
<!-- Custom JS scripts -->
+ </div>
</body>
</html>
diff --git a/network/nftables.html b/network/nftables.html
index ea9d09d..232ae03 100644
--- a/network/nftables.html
+++ b/network/nftables.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);
@@ -285,5 +288,6 @@ nc localhost 8200
<!-- Custom JS scripts -->
+ </div>
</body>
</html>
diff --git a/network/tcpdump.html b/network/tcpdump.html
index 3b9d1ef..c877b9b 100644
--- a/network/tcpdump.html
+++ b/network/tcpdump.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);
@@ -219,5 +222,6 @@ ssh &lt;host&gt; tcpdump -i any -w - | sudo wireshark -k -i -
<!-- Custom JS scripts -->
+ </div>
</body>
</html>