|
1 | 1 | <!DOCTYPE HTML> |
2 | | -<html lang="en" class="light" dir="ltr"> |
| 2 | +<html lang="en" class="light sidebar-visible" dir="ltr"> |
3 | 3 | <head> |
4 | 4 | <!-- Book generated using mdBook --> |
5 | 5 | <meta charset="UTF-8"> |
6 | 6 | <title>Cardano - The Cardano Operations Book</title> |
7 | 7 |
|
8 | 8 |
|
9 | 9 | <!-- Custom HTML head --> |
10 | | - |
| 10 | + |
11 | 11 | <meta name="description" content=""> |
12 | 12 | <meta name="viewport" content="width=device-width, initial-scale=1"> |
13 | 13 | <meta name="theme-color" content="#ffffff"> |
|
23 | 23 | <link rel="stylesheet" href="fonts/fonts.css"> |
24 | 24 |
|
25 | 25 | <!-- Highlight.js Stylesheets --> |
26 | | - <link rel="stylesheet" href="highlight.css"> |
27 | | - <link rel="stylesheet" href="tomorrow-night.css"> |
28 | | - <link rel="stylesheet" href="ayu-highlight.css"> |
| 26 | + <link rel="stylesheet" id="highlight-css" href="highlight.css"> |
| 27 | + <link rel="stylesheet" id="tomorrow-night-css" href="tomorrow-night.css"> |
| 28 | + <link rel="stylesheet" id="ayu-highlight-css" href="ayu-highlight.css"> |
29 | 29 |
|
30 | 30 | <!-- Custom theme stylesheets --> |
31 | 31 |
|
32 | | - </head> |
33 | | - <body class="sidebar-visible no-js"> |
34 | | - <div id="body-container"> |
35 | | - <!-- Provide site root to javascript --> |
| 32 | + |
| 33 | + <!-- Provide site root and default themes to javascript --> |
36 | 34 | <script> |
37 | | - var path_to_root = ""; |
38 | | - var default_theme = window.matchMedia("(prefers-color-scheme: dark)").matches ? "navy" : "light"; |
| 35 | + const path_to_root = ""; |
| 36 | + const default_light_theme = "light"; |
| 37 | + const default_dark_theme = "navy"; |
39 | 38 | </script> |
40 | | - |
| 39 | + <!-- Start loading toc.js asap --> |
| 40 | + <script src="toc.js"></script> |
| 41 | + </head> |
| 42 | + <body> |
| 43 | + <div id="body-container"> |
41 | 44 | <!-- Work around some values being stored in localStorage wrapped in quotes --> |
42 | 45 | <script> |
43 | 46 | try { |
44 | | - var theme = localStorage.getItem('mdbook-theme'); |
45 | | - var sidebar = localStorage.getItem('mdbook-sidebar'); |
| 47 | + let theme = localStorage.getItem('mdbook-theme'); |
| 48 | + let sidebar = localStorage.getItem('mdbook-sidebar'); |
46 | 49 |
|
47 | 50 | if (theme.startsWith('"') && theme.endsWith('"')) { |
48 | 51 | localStorage.setItem('mdbook-theme', theme.slice(1, theme.length - 1)); |
|
56 | 59 |
|
57 | 60 | <!-- Set the theme before any content is loaded, prevents flash --> |
58 | 61 | <script> |
59 | | - var theme; |
| 62 | + const default_theme = window.matchMedia("(prefers-color-scheme: dark)").matches ? default_dark_theme : default_light_theme; |
| 63 | + let theme; |
60 | 64 | try { theme = localStorage.getItem('mdbook-theme'); } catch(e) { } |
61 | 65 | if (theme === null || theme === undefined) { theme = default_theme; } |
62 | | - var html = document.querySelector('html'); |
| 66 | + const html = document.documentElement; |
63 | 67 | html.classList.remove('light') |
64 | 68 | html.classList.add(theme); |
65 | | - var body = document.querySelector('body'); |
66 | | - body.classList.remove('no-js') |
67 | | - body.classList.add('js'); |
| 69 | + html.classList.add("js"); |
68 | 70 | </script> |
69 | 71 |
|
70 | 72 | <input type="checkbox" id="sidebar-toggle-anchor" class="hidden"> |
71 | 73 |
|
72 | 74 | <!-- Hide / unhide sidebar before it is displayed --> |
73 | 75 | <script> |
74 | | - var body = document.querySelector('body'); |
75 | | - var sidebar = null; |
76 | | - var sidebar_toggle = document.getElementById("sidebar-toggle-anchor"); |
| 76 | + let sidebar = null; |
| 77 | + const sidebar_toggle = document.getElementById("sidebar-toggle-anchor"); |
77 | 78 | if (document.body.clientWidth >= 1080) { |
78 | 79 | try { sidebar = localStorage.getItem('mdbook-sidebar'); } catch(e) { } |
79 | 80 | sidebar = sidebar || 'visible'; |
80 | 81 | } else { |
81 | 82 | sidebar = 'hidden'; |
82 | 83 | } |
83 | 84 | sidebar_toggle.checked = sidebar === 'visible'; |
84 | | - body.classList.remove('sidebar-visible'); |
85 | | - body.classList.add("sidebar-" + sidebar); |
| 85 | + html.classList.remove('sidebar-visible'); |
| 86 | + html.classList.add("sidebar-" + sidebar); |
86 | 87 | </script> |
87 | 88 |
|
88 | 89 | <nav id="sidebar" class="sidebar" aria-label="Table of contents"> |
89 | | - <div class="sidebar-scrollbox"> |
90 | | - <ol class="chapter"><li class="chapter-item expanded affix "><a href="README-book.html" class="active">Cardano</a></li><li class="chapter-item expanded affix "><li class="part-title">Reference</li><li class="chapter-item expanded "><a href="environments.html"><strong aria-hidden="true">1.</strong> Environments</a></li><li><ol class="section"><li class="chapter-item expanded "><a href="env-preview.html"><strong aria-hidden="true">1.1.</strong> Preview</a></li><li class="chapter-item expanded "><a href="env-preprod.html"><strong aria-hidden="true">1.2.</strong> Pre-production</a></li><li class="chapter-item expanded "><a href="env-mainnet.html"><strong aria-hidden="true">1.3.</strong> Mainnet</a></li></ol></li><li class="chapter-item expanded "><a href="advanced.html"><strong aria-hidden="true">2.</strong> Advanced</a></li><li><ol class="section"><li class="chapter-item expanded "><a href="adv-preview.html"><strong aria-hidden="true">2.1.</strong> Preview pre-release</a></li><li class="chapter-item expanded "><a href="adv-preprod.html"><strong aria-hidden="true">2.2.</strong> Pre-production pre-release</a></li></ol></li><li class="chapter-item expanded "><a href="cost-model.html"><strong aria-hidden="true">3.</strong> Cost Model</a></li><li><ol class="section"><li class="chapter-item expanded "><a href="cm-2024-07-30.html"><strong aria-hidden="true">3.1.</strong> 2024-07-30</a></li><li class="chapter-item expanded "><a href="cm-2023-02-14.html"><strong aria-hidden="true">3.2.</strong> 2023-02-14</a></li><li class="chapter-item expanded "><a href="cm-2022-11-05.html"><strong aria-hidden="true">3.3.</strong> 2022-11-05</a></li><li class="chapter-item expanded "><a href="cm-2022-07-01.html"><strong aria-hidden="true">3.4.</strong> 2022-07-01</a></li></ol></li></ol> |
91 | | - </div> |
| 90 | + <!-- populated by js --> |
| 91 | + <mdbook-sidebar-scrollbox class="sidebar-scrollbox"></mdbook-sidebar-scrollbox> |
| 92 | + <noscript> |
| 93 | + <iframe class="sidebar-iframe-outer" src="toc.html"></iframe> |
| 94 | + </noscript> |
92 | 95 | <div id="sidebar-resize-handle" class="sidebar-resize-handle"> |
93 | 96 | <div class="sidebar-resize-indicator"></div> |
94 | 97 | </div> |
95 | 98 | </nav> |
96 | 99 |
|
97 | | - <!-- Track and set sidebar scroll position --> |
98 | | - <script> |
99 | | - var sidebarScrollbox = document.querySelector('#sidebar .sidebar-scrollbox'); |
100 | | - sidebarScrollbox.addEventListener('click', function(e) { |
101 | | - if (e.target.tagName === 'A') { |
102 | | - sessionStorage.setItem('sidebar-scroll', sidebarScrollbox.scrollTop); |
103 | | - } |
104 | | - }, { passive: true }); |
105 | | - var sidebarScrollTop = sessionStorage.getItem('sidebar-scroll'); |
106 | | - sessionStorage.removeItem('sidebar-scroll'); |
107 | | - if (sidebarScrollTop) { |
108 | | - // preserve sidebar scroll position when navigating via links within sidebar |
109 | | - sidebarScrollbox.scrollTop = sidebarScrollTop; |
110 | | - } else { |
111 | | - // scroll sidebar to current active section when navigating via "next/previous chapter" buttons |
112 | | - var activeSection = document.querySelector('#sidebar .active'); |
113 | | - if (activeSection) { |
114 | | - activeSection.scrollIntoView({ block: 'center' }); |
115 | | - } |
116 | | - } |
117 | | - </script> |
118 | | - |
119 | 100 | <div id="page-wrapper" class="page-wrapper"> |
120 | 101 |
|
121 | 102 | <div class="page"> |
122 | | - <div id="menu-bar-hover-placeholder"></div> |
| 103 | + <div id="menu-bar-hover-placeholder"></div> |
123 | 104 | <div id="menu-bar" class="menu-bar sticky"> |
124 | 105 | <div class="left-buttons"> |
125 | 106 | <label id="sidebar-toggle" class="icon-button" for="sidebar-toggle-anchor" title="Toggle Table of Contents" aria-label="Toggle Table of Contents" aria-controls="sidebar"> |
|
129 | 110 | <i class="fa fa-paint-brush"></i> |
130 | 111 | </button> |
131 | 112 | <ul id="theme-list" class="theme-popup" aria-label="Themes" role="menu"> |
| 113 | + <li role="none"><button role="menuitem" class="theme" id="default_theme">Auto</button></li> |
132 | 114 | <li role="none"><button role="menuitem" class="theme" id="light">Light</button></li> |
133 | 115 | <li role="none"><button role="menuitem" class="theme" id="rust">Rust</button></li> |
134 | 116 | <li role="none"><button role="menuitem" class="theme" id="coal">Coal</button></li> |
@@ -193,7 +175,7 @@ <h3 id="documentation"><a class="header" href="#documentation">Documentation</a> |
193 | 175 | <br /> |
194 | 176 | <hr /> |
195 | 177 | <br /> |
196 | | -<center><sub><sup><span style="color:lightgray; font-style:italic">34301acf4d2229db1a881aa26aef88efbcda65f5</span></sup></sub></center> |
| 178 | +<center><sub><sup><span style="color:lightgray; font-style:italic">c6aba64fe2fa238a99eb47f6847534c06b6e7694</span></sup></sub></center> |
197 | 179 |
|
198 | 180 | </main> |
199 | 181 |
|
|
0 commit comments