|
36 | 36 | const path_to_root = "../"; |
37 | 37 | const default_light_theme = "light"; |
38 | 38 | const default_dark_theme = "navy"; |
| 39 | + window.path_to_searchindex_js = "../searchindex.js"; |
39 | 40 | </script> |
40 | 41 | <!-- Start loading toc.js asap --> |
41 | 42 | <script src="../toc.js"></script> |
@@ -92,10 +93,13 @@ <h2 class="mdbook-help-title">Keyboard shortcuts</h2> |
92 | 93 | sidebar = sidebar || 'visible'; |
93 | 94 | } else { |
94 | 95 | sidebar = 'hidden'; |
| 96 | + sidebar_toggle.checked = false; |
| 97 | + } |
| 98 | + if (sidebar === 'visible') { |
| 99 | + sidebar_toggle.checked = true; |
| 100 | + } else { |
| 101 | + html.classList.remove('sidebar-visible'); |
95 | 102 | } |
96 | | - sidebar_toggle.checked = sidebar === 'visible'; |
97 | | - html.classList.remove('sidebar-visible'); |
98 | | - html.classList.add("sidebar-" + sidebar); |
99 | 103 | </script> |
100 | 104 |
|
101 | 105 | <nav id="sidebar" class="sidebar" aria-label="Table of contents"> |
@@ -146,7 +150,12 @@ <h1 class="menu-title">Juniper Book</h1> |
146 | 150 |
|
147 | 151 | <div id="search-wrapper" class="hidden"> |
148 | 152 | <form id="searchbar-outer" class="searchbar-outer"> |
149 | | - <input type="search" id="searchbar" name="searchbar" placeholder="Search this book ..." aria-controls="searchresults-outer" aria-describedby="searchresults-header"> |
| 153 | + <div class="search-wrapper"> |
| 154 | + <input type="search" id="searchbar" name="searchbar" placeholder="Search this book ..." aria-controls="searchresults-outer" aria-describedby="searchresults-header"> |
| 155 | + <div class="spinner-wrapper"> |
| 156 | + <i class="fa fa-spinner fa-spin"></i> |
| 157 | + </div> |
| 158 | + </div> |
150 | 159 | </form> |
151 | 160 | <div id="searchresults-outer" class="searchresults-outer hidden"> |
152 | 161 | <div id="searchresults-header" class="searchresults-header"></div> |
@@ -378,6 +387,7 @@ <h2 id="full-example"><a class="header" href="#full-example">Full example</a></h |
378 | 387 | <!-- Custom JS scripts --> |
379 | 388 |
|
380 | 389 |
|
| 390 | + |
381 | 391 | </div> |
382 | 392 | </body> |
383 | 393 | </html> |
0 commit comments