|
127 | 127 | </p> |
128 | 128 | </footer> |
129 | 129 |
|
130 | | - <!-- Le javascript |
131 | | - ================================================== --> |
132 | | - <!-- Placed at the end of the document so the pages load faster --> |
133 | | - <!-- <script async src="https://fund.django-rest-framework.org/sidebar_include.js"></script> |
134 | | - <script src="{{ 'js/jquery-1.8.1-min.js'|url }}"></script> |
135 | | - <script src="{{ 'js/prettify-1.0.js'|url }}"></script> |
136 | | - <script src="{{ 'js/bootstrap-2.1.1-min.js'|url }}"></script> |
137 | | - <script src="{{ 'js/theme.js'|url }}"></script> --> |
138 | | - |
139 | | - <script> |
140 | | - var base_url = "{{ base_url }}"; |
141 | | - </script> |
142 | | - |
143 | | - <script src="{{ 'js/bootstrap5.bundle.js'|url }}"></script> |
144 | | - |
145 | | - {% for path in config.extra_javascript %} |
146 | | - <script src="{{ path|url }}" defer></script> |
147 | | - {% endfor %} |
148 | | - |
149 | | - <script> |
150 | | - var shiftWindow = function () { |
151 | | - scrollBy(0, -50); |
152 | | - }; |
153 | | - |
154 | | - if (location.hash) shiftWindow(); |
155 | | - window.addEventListener("hashchange", shiftWindow); |
156 | | - |
157 | | - $(".dropdown-menu").on("click touchstart", function (event) { |
158 | | - event.stopPropagation(); |
159 | | - }); |
160 | | - |
161 | | - // Dynamically force sidenav/dropdown to no higher than browser window |
162 | | - $(".side-nav, .dropdown-menu").css( |
163 | | - "max-height", |
164 | | - window.innerHeight - 130 |
165 | | - ); |
166 | | - |
167 | | - $(function () { |
168 | | - $(window).resize(function () { |
169 | | - $(".side-nav, .dropdown-menu").css( |
170 | | - "max-height", |
171 | | - window.innerHeight - 130 |
172 | | - ); |
173 | | - }); |
174 | | - }); |
175 | | - </script> |
176 | | - |
| 130 | + <!-- Search Modal Start --> |
177 | 131 | <div |
178 | 132 | class="modal fade" |
179 | 133 | id="mkdocs_search_modal" |
@@ -224,5 +178,52 @@ <h3 class="modal-title fs-5" id="search_modal_label"> |
224 | 178 | </div> |
225 | 179 | </div> |
226 | 180 | <!-- Modal End --> |
| 181 | + |
| 182 | + <!-- Le javascript |
| 183 | + ================================================== --> |
| 184 | + <!-- Placed at the end of the document so the pages load faster --> |
| 185 | + <!-- <script async src="https://fund.django-rest-framework.org/sidebar_include.js"></script> |
| 186 | + <script src="{{ 'js/jquery-1.8.1-min.js'|url }}"></script> |
| 187 | + <script src="{{ 'js/prettify-1.0.js'|url }}"></script> |
| 188 | + <script src="{{ 'js/bootstrap-2.1.1-min.js'|url }}"></script> |
| 189 | + <script src="{{ 'js/theme.js'|url }}"></script> --> |
| 190 | + |
| 191 | + <script> |
| 192 | + var base_url = "{{ base_url }}"; |
| 193 | + </script> |
| 194 | + |
| 195 | + <script src="{{ 'js/bootstrap5.bundle.js'|url }}"></script> |
| 196 | + |
| 197 | + {% for path in config.extra_javascript %} |
| 198 | + <script src="{{ path|url }}" defer></script> |
| 199 | + {% endfor %} |
| 200 | + |
| 201 | + <script> |
| 202 | + var shiftWindow = function () { |
| 203 | + scrollBy(0, -50); |
| 204 | + }; |
| 205 | + |
| 206 | + if (location.hash) shiftWindow(); |
| 207 | + window.addEventListener("hashchange", shiftWindow); |
| 208 | + |
| 209 | + $(".dropdown-menu").on("click touchstart", function (event) { |
| 210 | + event.stopPropagation(); |
| 211 | + }); |
| 212 | + |
| 213 | + // Dynamically force sidenav/dropdown to no higher than browser window |
| 214 | + $(".side-nav, .dropdown-menu").css( |
| 215 | + "max-height", |
| 216 | + window.innerHeight - 130 |
| 217 | + ); |
| 218 | + |
| 219 | + $(function () { |
| 220 | + $(window).resize(function () { |
| 221 | + $(".side-nav, .dropdown-menu").css( |
| 222 | + "max-height", |
| 223 | + window.innerHeight - 130 |
| 224 | + ); |
| 225 | + }); |
| 226 | + }); |
| 227 | + </script> |
227 | 228 | </body> |
228 | 229 | </html> |
0 commit comments