@ -1,11 +1,11 @@
<!DOCTYPE HTML>
<!DOCTYPE HTML>
<html lang=" {{ language }} " class=" sidebar-visible no-js {{ default_theme }} ">
<html lang=" {{ language }} " class=" {{ default_theme }} " dir=" {{ text_direction }} ">
<head>
<head>
<!-- Book generated using mdBook -->
<!-- Book generated using mdBook -->
<meta charset="UTF-8">
<meta charset="UTF-8">
<title> {{ title }} </title>
<title> {{ title }} </title>
{{ # if is_print }}
{{ # if is_print }}
<meta name="robots" content="noindex" / >
<meta name="robots" content="noindex" >
{{ / if }}
{{ / if }}
{{ # if base_url }}
{{ # if base_url }}
<base href=" {{ base_url }} ">
<base href=" {{ base_url }} ">
@ -15,10 +15,9 @@
<!-- Custom HTML head -->
<!-- Custom HTML head -->
{{ > head }}
{{ > head }}
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<meta name="description" content=" {{ description }} ">
<meta name="description" content=" {{ description }} ">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="#ffffff" / >
<meta name="theme-color" content="#ffffff" >
{{ # if favicon_svg }}
{{ # if favicon_svg }}
<link rel="icon" href=" {{ path_to_root }} favicon.svg">
<link rel="icon" href=" {{ path_to_root }} favicon.svg">
@ -51,21 +50,22 @@
{{ # if mathjax_support }}
{{ # if mathjax_support }}
<!-- MathJax -->
<!-- MathJax -->
<script async type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
<script async src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
{{ / if }}
{{ / if }}
<!-- EthicalAds -->
<!-- EthicalAds -->
<script async src="https://media.ethicalads.io/media/client/ethicalads.min.js"></script>
<script async src="https://media.ethicalads.io/media/client/ethicalads.min.js"></script>
</head>
</head>
<body>
<body class="sidebar-visible no-js">
<div id="body-container">
<!-- Provide site root to javascript -->
<!-- Provide site root to javascript -->
<script type="text/javascript" >
<script >
var path_to_root = " {{ path_to_root }} ";
var path_to_root = " {{ path_to_root }} ";
var default_theme = window.matchMedia("(prefers-color-scheme: dark)").matches ? " {{ preferred_dark_theme }} " : " {{ default_theme }} ";
var default_theme = window.matchMedia("(prefers-color-scheme: dark)").matches ? " {{ preferred_dark_theme }} " : " {{ default_theme }} ";
</script>
</script>
<!-- Work around some values being stored in localStorage wrapped in quotes -->
<!-- Work around some values being stored in localStorage wrapped in quotes -->
<script type="text/javascript" >
<script >
try {
try {
var theme = localStorage.getItem('mdbook-theme');
var theme = localStorage.getItem('mdbook-theme');
var sidebar = localStorage.getItem('mdbook-sidebar');
var sidebar = localStorage.getItem('mdbook-sidebar');
@ -81,32 +81,38 @@
</script>
</script>
<!-- Set the theme before any content is loaded, prevents flash -->
<!-- Set the theme before any content is loaded, prevents flash -->
<script type="text/javascript" >
<script >
var theme;
var theme;
try { theme = localStorage.getItem('mdbook-theme'); } catch(e) { }
try { theme = localStorage.getItem('mdbook-theme'); } catch(e) { }
if (theme === null || theme === undefined) { theme = default_theme; }
if (theme === null || theme === undefined) { theme = default_theme; }
var html = document.querySelector('html');
var html = document.querySelector('html');
html.classList.remove('no-js')
html.classList.remove(' {{ default_theme }} ')
html.classList.remove(' {{ default_theme }} ')
html.classList.add(theme);
html.classList.add(theme);
html.classList.add('js');
var body = document.querySelector('body');
body.classList.remove('no-js')
body.classList.add('js');
</script>
</script>
<input type="checkbox" id="sidebar-toggle-anchor" class="hidden">
<!-- Hide / unhide sidebar before it is displayed -->
<!-- Hide / unhide sidebar before it is displayed -->
<script type="text/javascript">
<script>
var html = document.querySelector('html');
var body = document.querySelector('body');
var sidebar = 'hidden';
var sidebar = null;
var sidebar_toggle = document.getElementById("sidebar-toggle-anchor");
if (document.body.clientWidth >= 1080) {
if (document.body.clientWidth >= 1080) {
try { sidebar = localStorage.getItem('mdbook-sidebar'); } catch(e) { }
try { sidebar = localStorage.getItem('mdbook-sidebar'); } catch(e) { }
sidebar = sidebar || 'visible';
sidebar = sidebar || 'visible';
} else {
sidebar = 'hidden';
}
}
html.classList.remove('sidebar-visible');
sidebar_toggle.checked = sidebar === 'visible';
html.classList.add("sidebar-" + sidebar);
body.classList.remove('sidebar-visible');
body.classList.add("sidebar-" + sidebar);
</script>
</script>
<nav id="sidebar" class="sidebar" aria-label="Table of contents">
<nav id="sidebar" class="sidebar" aria-label="Table of contents">
<div class="sidebar-scrollbox">
<div class="sidebar-scrollbox">
{{ # toc }} {{ / toc }}
{{ # toc }} {{ / toc }}
<!-- EthicalAds -->
<!-- EthicalAds -->
@ -116,30 +122,53 @@
data-ea-publisher="xplrdev"
data-ea-publisher="xplrdev"
data-ea-type="image"
data-ea-type="image"
></div>
></div>
</div>
</div>
<div id="sidebar-resize-handle" class="sidebar-resize-handle"></div>
<div id="sidebar-resize-handle" class="sidebar-resize-handle">
<div class="sidebar-resize-indicator"></div>
</div>
</nav>
</nav>
<!-- Track and set sidebar scroll position -->
<script>
var sidebarScrollbox = document.querySelector('#sidebar .sidebar-scrollbox');
sidebarScrollbox.addEventListener('click', function(e) {
if (e.target.tagName === 'A') {
sessionStorage.setItem('sidebar-scroll', sidebarScrollbox.scrollTop);
}
}, { passive: true });
var sidebarScrollTop = sessionStorage.getItem('sidebar-scroll');
sessionStorage.removeItem('sidebar-scroll');
if (sidebarScrollTop) {
// preserve sidebar scroll position when navigating via links within sidebar
sidebarScrollbox.scrollTop = sidebarScrollTop;
} else {
// scroll sidebar to current active section when navigating via "next/previous chapter" buttons
var activeSection = document.querySelector('#sidebar .active');
if (activeSection) {
activeSection.scrollIntoView( { block: 'center' });
}
}
</script>
<div id="page-wrapper" class="page-wrapper">
<div id="page-wrapper" class="page-wrapper">
<div class="page">
<div class="page">
{{ > header }}
{{ > header }}
<div id="menu-bar-hover-placeholder"></div>
<div id="menu-bar-hover-placeholder"></div>
<div id="menu-bar" class="menu-bar sticky bordered">
<div id="menu-bar" class="menu-bar sticky ">
<div class="left-buttons">
<div class="left-buttons">
<button id="sidebar-toggle" class="icon-button" type="button" title="Toggle Table of Contents" aria-label="Toggle Table of Contents" aria-controls="sidebar">
< 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">
<i class="fa fa-bars"></i>
<i class="fa fa-bars"></i>
</button>
</ label >
<button id="theme-toggle" class="icon-button" type="button" title="Change theme" aria-label="Change theme" aria-haspopup="true" aria-expanded="false" aria-controls="theme-list">
<button id="theme-toggle" class="icon-button" type="button" title="Change theme" aria-label="Change theme" aria-haspopup="true" aria-expanded="false" aria-controls="theme-list">
<i class="fa fa-paint-brush"></i>
<i class="fa fa-paint-brush"></i>
</button>
</button>
<ul id="theme-list" class="theme-popup" aria-label="Themes" role="menu">
<ul id="theme-list" class="theme-popup" aria-label="Themes" role="menu">
<li role="none"><button role="menuitem" class="theme" id="light"> {{ theme_option "Light" }} </button></li>
<li role="none"><button role="menuitem" class="theme" id="light"> Light</button></li>
<li role="none"><button role="menuitem" class="theme" id="rust"> {{ theme_option "Rust" }} </button></li>
<li role="none"><button role="menuitem" class="theme" id="rust"> Rust</button></li>
<li role="none"><button role="menuitem" class="theme" id="coal"> {{ theme_option "Coal" }} </button></li>
<li role="none"><button role="menuitem" class="theme" id="coal"> Coal</button></li>
<li role="none"><button role="menuitem" class="theme" id="navy"> {{ theme_option "Navy" }} </button></li>
<li role="none"><button role="menuitem" class="theme" id="navy"> Navy</button></li>
<li role="none"><button role="menuitem" class="theme" id="ayu"> {{ theme_option "Ayu" }} </button></li>
<li role="none"><button role="menuitem" class="theme" id="ayu"> Ayu</button></li>
</ul>
</ul>
{{ # if search_enabled }}
{{ # if search_enabled }}
<button id="search-toggle" class="icon-button" type="button" title="Search. (Shortkey: s)" aria-label="Toggle Searchbar" aria-expanded="false" aria-keyshortcuts="S" aria-controls="searchbar">
<button id="search-toggle" class="icon-button" type="button" title="Search. (Shortkey: s)" aria-label="Toggle Searchbar" aria-expanded="false" aria-keyshortcuts="S" aria-controls="searchbar">
@ -184,7 +213,7 @@
{{ / if }}
{{ / if }}
<!-- Apply ARIA attributes after the sidebar and the sidebar toggle button are added to the DOM -->
<!-- Apply ARIA attributes after the sidebar and the sidebar toggle button are added to the DOM -->
<script type="text/javascript" >
<script >
document.getElementById('sidebar-toggle').setAttribute('aria-expanded', sidebar === 'visible');
document.getElementById('sidebar-toggle').setAttribute('aria-expanded', sidebar === 'visible');
document.getElementById('sidebar').setAttribute('aria-hidden', sidebar !== 'visible');
document.getElementById('sidebar').setAttribute('aria-hidden', sidebar !== 'visible');
Array.from(document.querySelectorAll('#sidebar a')).forEach(function(link) {
Array.from(document.querySelectorAll('#sidebar a')).forEach(function(link) {
@ -206,7 +235,7 @@
{{ / previous }}
{{ / previous }}
{{ # next }}
{{ # next }}
<a rel="next " href="{{ path_to_root }} {{ link }} " class="mobile-nav-chapters next" title="Next chapter" aria-label="Next chapter" aria-keyshortcuts="Right">
<a rel="next prefetch " href="{{ path_to_root }} {{ link }} " class="mobile-nav-chapters next" title="Next chapter" aria-label="Next chapter" aria-keyshortcuts="Right">
<i class="fa fa-angle-right"></i>
<i class="fa fa-angle-right"></i>
</a>
</a>
{{ / next }}
{{ / next }}
@ -224,7 +253,7 @@
{{ / previous }}
{{ / previous }}
{{ # next }}
{{ # next }}
<a rel="next " href="{{ path_to_root }} {{ link }} " class="nav-chapters next" title="Next chapter" aria-label="Next chapter" aria-keyshortcuts="Right">
<a rel="next prefetch " href="{{ path_to_root }} {{ link }} " class="nav-chapters next" title="Next chapter" aria-label="Next chapter" aria-keyshortcuts="Right">
<i class="fa fa-angle-right"></i>
<i class="fa fa-angle-right"></i>
</a>
</a>
{{ / next }}
{{ / next }}
@ -232,10 +261,12 @@
</div>
</div>
{{ # if live reload}}
{{ # if live _ reload_endpoint }}
<!-- Livereload script (if served using the cli tool) -->
<!-- Livereload script (if served using the cli tool) -->
<script type="text/javascript">
<script>
var socket = new WebSocket(" {{{ livereload }}} ");
const wsProtocol = location.protocol === 'https:' ? 'wss:' : 'ws:';
const wsAddress = wsProtocol + "//" + location.host + "/" + " {{{ live_reload_endpoint }}} ";
const socket = new WebSocket(wsAddress);
socket.onmessage = function (event) {
socket.onmessage = function (event) {
if (event.data === "reload") {
if (event.data === "reload") {
socket.close();
socket.close();
@ -251,7 +282,7 @@
{{ # if google_analytics }}
{{ # if google_analytics }}
<!-- Google Analytics Tag -->
<!-- Google Analytics Tag -->
<script type="text/javascript" >
<script >
var localAddrs = ["localhost", "127.0.0.1", ""];
var localAddrs = ["localhost", "127.0.0.1", ""];
// make sure we don't activate google analytics if the developer is
// make sure we don't activate google analytics if the developer is
@ -269,43 +300,43 @@
{{ / if }}
{{ / if }}
{{ # if playground_line_numbers }}
{{ # if playground_line_numbers }}
<script type="text/javascript" >
<script >
window.playground_line_numbers = true;
window.playground_line_numbers = true;
</script>
</script>
{{ / if }}
{{ / if }}
{{ # if playground_copyable }}
{{ # if playground_copyable }}
<script type="text/javascript" >
<script >
window.playground_copyable = true;
window.playground_copyable = true;
</script>
</script>
{{ / if }}
{{ / if }}
{{ # if playground_js }}
{{ # if playground_js }}
<script src=" {{ path_to_root }} ace.js" type="text/javascript" charset="utf-8" ></script>
<script src=" {{ path_to_root }} ace.js" ></script>
<script src=" {{ path_to_root }} editor.js" type="text/javascript" charset="utf-8" ></script>
<script src=" {{ path_to_root }} editor.js" ></script>
<script src=" {{ path_to_root }} mode-rust.js" type="text/javascript" charset="utf-8" ></script>
<script src=" {{ path_to_root }} mode-rust.js" ></script>
<script src=" {{ path_to_root }} theme-dawn.js" type="text/javascript" charset="utf-8" ></script>
<script src=" {{ path_to_root }} theme-dawn.js" ></script>
<script src=" {{ path_to_root }} theme-tomorrow_night.js" type="text/javascript" charset="utf-8" ></script>
<script src=" {{ path_to_root }} theme-tomorrow_night.js" ></script>
{{ / if }}
{{ / if }}
{{ # if search_js }}
{{ # if search_js }}
<script src=" {{ path_to_root }} elasticlunr.min.js" type="text/javascript" charset="utf-8" ></script>
<script src=" {{ path_to_root }} elasticlunr.min.js" ></script>
<script src=" {{ path_to_root }} mark.min.js" type="text/javascript" charset="utf-8" ></script>
<script src=" {{ path_to_root }} mark.min.js" ></script>
<script src=" {{ path_to_root }} searcher.js" type="text/javascript" charset="utf-8" ></script>
<script src=" {{ path_to_root }} searcher.js" ></script>
{{ / if }}
{{ / if }}
<script src=" {{ path_to_root }} clipboard.min.js" type="text/javascript" charset="utf-8" ></script>
<script src=" {{ path_to_root }} clipboard.min.js" ></script>
<script src=" {{ path_to_root }} highlight.js" type="text/javascript" charset="utf-8" ></script>
<script src=" {{ path_to_root }} highlight.js" ></script>
<script src=" {{ path_to_root }} book.js" type="text/javascript" charset="utf-8" ></script>
<script src=" {{ path_to_root }} book.js" ></script>
<!-- Custom JS scripts -->
<!-- Custom JS scripts -->
{{ # each additional_js }}
{{ # each additional_js }}
<script type="text/javascript" src="{{ ../path_to_root }} {{ this }} "></script>
<script src="{{ ../path_to_root }} {{ this }} "></script>
{{ / each }}
{{ / each }}
{{ # if is_print }}
{{ # if is_print }}
{{ # if mathjax_support }}
{{ # if mathjax_support }}
<script type="text/javascript" >
<script >
window.addEventListener('load', function() {
window.addEventListener('load', function() {
MathJax.Hub.Register.StartupHook('End', function() {
MathJax.Hub.Register.StartupHook('End', function() {
window.setTimeout(window.print, 100);
window.setTimeout(window.print, 100);
@ -313,7 +344,7 @@
});
});
</script>
</script>
{{ else }}
{{ else }}
<script type="text/javascript" >
<script >
window.addEventListener('load', function() {
window.addEventListener('load', function() {
window.setTimeout(window.print, 100);
window.setTimeout(window.print, 100);
});
});
@ -321,5 +352,6 @@
{{ / if }}
{{ / if }}
{{ / if }}
{{ / if }}
</div>
</body>
</body>
</html>
</html>