Dynamically load Jquery.js and Bootstrap.js
This commit is contained in:
parent
f9efb73c87
commit
2d266366bb
47
dist/script.js
vendored
47
dist/script.js
vendored
@ -7,10 +7,6 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
||||
|
||||
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
||||
|
||||
// var $ = require('jquery');
|
||||
// window.$ = $;
|
||||
// require('bootstrap');
|
||||
//
|
||||
// Blocks
|
||||
docReady(function () {
|
||||
var boxesNames = {
|
||||
@ -105,7 +101,46 @@ function docReady(fn) {
|
||||
} else {
|
||||
document.addEventListener("DOMContentLoaded", fn);
|
||||
}
|
||||
} // function collapse_toc_elements_on_click (nav_li_a){
|
||||
} // Load Jquery
|
||||
|
||||
|
||||
var scr = document.createElement('script'),
|
||||
head = document.head || document.getElementsByTagName('head')[0];
|
||||
scr.src = 'https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js';
|
||||
scr.async = false; // optionally
|
||||
|
||||
head.insertBefore(scr, head.firstChild); // Load Bootstrap.js
|
||||
|
||||
var scr = document.createElement('script'),
|
||||
head = document.head || document.getElementsByTagName('head')[0];
|
||||
scr.src = 'https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js';
|
||||
scr.async = false; // optionally
|
||||
|
||||
head.insertBefore(scr, head.firstChild); // After it is loaded
|
||||
|
||||
scr.addEventListener('load', function () {
|
||||
$(document).ready(function () {
|
||||
$('#text-table-of-contents ul').first().addClass('nav'); // ScrollSpy also requires that we use
|
||||
// a Bootstrap nav component.
|
||||
|
||||
$('body').scrollspy({
|
||||
target: '#text-table-of-contents'
|
||||
}); // set the height of tableOfContents
|
||||
|
||||
var $postamble = $('#postamble');
|
||||
var $tableOfContents = $('#table-of-contents');
|
||||
$tableOfContents.css({
|
||||
paddingBottom: $postamble.outerHeight()
|
||||
}); // add TOC button
|
||||
|
||||
var toggleSidebar = $('<div id="toggle-sidebar"><a href="#table-of-contents"><h2>Table of Contents</h2></a></div>');
|
||||
$('#content').prepend(toggleSidebar); // add close button when sidebar showed in mobile screen
|
||||
|
||||
var closeBtn = $('<a class="close-sidebar" href="#">Close</a>');
|
||||
var tocTitle = $('#table-of-contents').find('h2');
|
||||
tocTitle.append(closeBtn);
|
||||
});
|
||||
}); // function collapse_toc_elements_on_click (nav_li_a){
|
||||
// /*
|
||||
// When an `a' element in the TOC is clicked, its parent
|
||||
// `li' element's active attribute is toggled. This causes
|
||||
@ -145,8 +180,6 @@ function docReady(fn) {
|
||||
// // ScrollSpy also requires that we use
|
||||
// // a Bootstrap nav component.
|
||||
// $('body').scrollspy({target: '#text-table-of-contents'});
|
||||
// // DON'T add sticky table headers (Fix issue #69?)
|
||||
// // $('table').stickyTableHeaders();
|
||||
// // set the height of tableOfContents
|
||||
// var $postamble = $('#postamble');
|
||||
// var $tableOfContents = $('#table-of-contents');
|
||||
|
2
dist/style.css
vendored
2
dist/style.css
vendored
File diff suppressed because one or more lines are too long
268
index.html
268
index.html
@ -3,7 +3,7 @@
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<!-- 2020-11-27 ven. 23:05 -->
|
||||
<!-- 2020-12-01 mar. 17:20 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<title>Test File for the Org Mode Theme</title>
|
||||
<meta name="generator" content="Org mode" />
|
||||
@ -33,69 +33,69 @@
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#orgb1859cb">1. Basics</a>
|
||||
<li><a href="#orgf55c16e">1. Basics</a>
|
||||
<ul>
|
||||
<li><a href="#org5cf127b">1.1. Normal Markup</a></li>
|
||||
<li><a href="#org57e6819">1.2. Links to Footnotes</a></li>
|
||||
<li><a href="#org41bf3b8">1.3. Lists</a></li>
|
||||
<li><a href="#org8c99bdf">1.4. Links</a></li>
|
||||
<li><a href="#orgb3defcc">1.5. Maths</a></li>
|
||||
<li><a href="#orga185925">1.6. Verse, Quote</a></li>
|
||||
<li><a href="#orga6fd6d2">1.7. Aside</a></li>
|
||||
<li><a href="#org6d4bf81">1.8. Inline Task</a></li>
|
||||
<li><a href="#org67aa295">1.1. Normal Markup</a></li>
|
||||
<li><a href="#org0ee4aa3">1.2. Links to Footnotes</a></li>
|
||||
<li><a href="#org4e3b2a9">1.3. Lists</a></li>
|
||||
<li><a href="#org0975532">1.4. Links</a></li>
|
||||
<li><a href="#org00bf706">1.5. Maths</a></li>
|
||||
<li><a href="#org5d23f46">1.6. Verse, Quote</a></li>
|
||||
<li><a href="#org627bdab">1.7. Aside</a></li>
|
||||
<li><a href="#orge1180cd">1.8. Inline Task</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#orgefc8f2f">2. Headlines</a>
|
||||
<li><a href="#org039b623">2. Headlines</a>
|
||||
<ul>
|
||||
<li><a href="#orgde25a1d">2.1. Second level Headline with tags   <span class="tag"><span class="_home">@home</span> <span class="_work">@work</span></span></a>
|
||||
<li><a href="#org8a3d963">2.1. Second level Headline with tags   <span class="tag"><span class="_home">@home</span> <span class="_work">@work</span></span></a>
|
||||
<ul>
|
||||
<li><a href="#orgcb19e6c">2.1.1. Third level Headline</a>
|
||||
<li><a href="#orgddebfa2">2.1.1. Third level Headline</a>
|
||||
<ul>
|
||||
<li><a href="#org851bcb3">2.1.1.1. Fourth level Headline</a></li>
|
||||
<li><a href="#org7552e05">2.1.1.1. Fourth level Headline</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org7566193">2.1.2. Third level Headline</a>
|
||||
<li><a href="#orgf374b5e">2.1.2. Third level Headline</a>
|
||||
<ul>
|
||||
<li><a href="#org3b46228">2.1.2.1. Fourth level Headline</a></li>
|
||||
<li><a href="#org4176fd6">2.1.2.1. Fourth level Headline</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org8f14532">2.2. <span class="todo TODO">TODO</span> Second level Headline with Schedule</a></li>
|
||||
<li><a href="#org2d3de1d">2.3. <span class="priority">[B]</span> Second level Headline with a priority</a></li>
|
||||
<li><a href="#orgb65c522">2.4. <span class="todo TODO">TODO</span> <span class="priority">[C]</span> Second level Headline with TODO State</a></li>
|
||||
<li><a href="#orgdb2780e">2.5. <span class="done DONE">DONE</span> <span class="priority">[A]</span> Second level Headline with DONE State</a>
|
||||
<li><a href="#orgf8785d7">2.2. <span class="todo TODO">TODO</span> Second level Headline with Schedule</a></li>
|
||||
<li><a href="#orgb7b0768">2.3. <span class="priority">[B]</span> Second level Headline with a priority</a></li>
|
||||
<li><a href="#orga9f480f">2.4. <span class="todo TODO">TODO</span> <span class="priority">[C]</span> Second level Headline with TODO State</a></li>
|
||||
<li><a href="#org9f0814c">2.5. <span class="done DONE">DONE</span> <span class="priority">[A]</span> Second level Headline with DONE State</a>
|
||||
<ul>
|
||||
<li><a href="#orgfe05c9f">2.5.1. <span class="todo WAIT">WAIT</span> Third level Headline with DONE State</a></li>
|
||||
<li><a href="#org66b96e6">2.5.1. <span class="todo WAIT">WAIT</span> Third level Headline with DONE State</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org1f43e18">3. Blocks</a></li>
|
||||
<li><a href="#org217b2ee">4. Source Blocks</a>
|
||||
<li><a href="#org8fe71cc">3. Blocks</a></li>
|
||||
<li><a href="#orge636b6e">4. Source Blocks</a>
|
||||
<ul>
|
||||
<li><a href="#orgcfbe53a">4.1. Figures</a></li>
|
||||
<li><a href="#org0b5c367">4.2. Table Result</a></li>
|
||||
<li><a href="#org709a452">4.3. Inline Results</a></li>
|
||||
<li><a href="#org0950d4e">4.4. Caption and Reference</a></li>
|
||||
<li><a href="#org033acad">4.5. Source Blocks with Line Numbers</a></li>
|
||||
<li><a href="#org1f4f5d0">4.1. Figures</a></li>
|
||||
<li><a href="#org22eedd9">4.2. Table Result</a></li>
|
||||
<li><a href="#org4fab781">4.3. Inline Results</a></li>
|
||||
<li><a href="#orgf2c1e94">4.4. Caption and Reference</a></li>
|
||||
<li><a href="#orgd2edfd7">4.5. Source Blocks with Line Numbers</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#org3c26fb9">5. Images</a></li>
|
||||
<li><a href="#org00a5411">6. Tables</a></li>
|
||||
<li><a href="#orgc5ddb79">7. Details</a></li>
|
||||
<li><a href="#org8b65486">8. Videos</a></li>
|
||||
<li><a href="#org4363737">9. Bibliography</a></li>
|
||||
<li><a href="#org8abeb8a">5. Images</a></li>
|
||||
<li><a href="#orga383787">6. Tables</a></li>
|
||||
<li><a href="#orgb8a5d11">7. Details</a></li>
|
||||
<li><a href="#orgf0c9c89">8. Videos</a></li>
|
||||
<li><a href="#org73f9592">9. Bibliography</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb1859cb" class="outline-2">
|
||||
<h2 id="orgb1859cb"><span class="section-number-2">1</span> Basics</h2>
|
||||
<div id="outline-container-orgf55c16e" class="outline-2">
|
||||
<h2 id="orgf55c16e"><span class="section-number-2">1</span> Basics</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
</div>
|
||||
<div id="outline-container-org5cf127b" class="outline-3">
|
||||
<h3 id="org5cf127b"><span class="section-number-3">1.1</span> Normal Markup</h3>
|
||||
<div id="outline-container-org67aa295" class="outline-3">
|
||||
<h3 id="org67aa295"><span class="section-number-3">1.1</span> Normal Markup</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<p>
|
||||
You can make words <b>bold</b>, <i>italic</i>, <span class="underline">underlined</span>, <code>verbatim</code> and <code>code</code>, and, if you must, <del>strike-through</del>.
|
||||
@ -103,8 +103,8 @@ You can make words <b>bold</b>, <i>italic</i>, <span class="underline">underline
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org57e6819" class="outline-3">
|
||||
<h3 id="org57e6819"><span class="section-number-3">1.2</span> Links to Footnotes</h3>
|
||||
<div id="outline-container-org0ee4aa3" class="outline-3">
|
||||
<h3 id="org0ee4aa3"><span class="section-number-3">1.2</span> Links to Footnotes</h3>
|
||||
<div class="outline-text-3" id="text-1-2">
|
||||
<p>
|
||||
A link to a footnote<sup><a id="fnr.1" class="footref" href="#fn.1">1</a></sup> and to another footnote<sup><a id="fnr.2" class="footref" href="#fn.2">2</a></sup>.
|
||||
@ -112,8 +112,8 @@ A link to a footnote<sup><a id="fnr.1" class="footref" href="#fn.1">1</a></sup>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org41bf3b8" class="outline-3">
|
||||
<h3 id="org41bf3b8"><span class="section-number-3">1.3</span> Lists</h3>
|
||||
<div id="outline-container-org4e3b2a9" class="outline-3">
|
||||
<h3 id="org4e3b2a9"><span class="section-number-3">1.3</span> Lists</h3>
|
||||
<div class="outline-text-3" id="text-1-3">
|
||||
<p>
|
||||
<b>Unordered List</b>:
|
||||
@ -190,26 +190,26 @@ maximus lorem quis accumsan vehicula.</dd>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8c99bdf" class="outline-3">
|
||||
<h3 id="org8c99bdf"><span class="section-number-3">1.4</span> Links</h3>
|
||||
<div id="outline-container-org0975532" class="outline-3">
|
||||
<h3 id="org0975532"><span class="section-number-3">1.4</span> Links</h3>
|
||||
<div class="outline-text-3" id="text-1-4">
|
||||
<p>
|
||||
Here is a list of links to:
|
||||
</p>
|
||||
<ul class="org-ul">
|
||||
<li>Figure <a href="#org5fd79cb">3</a></li>
|
||||
<li>Table <a href="#org8c1199c">2</a></li>
|
||||
<li>Listing <a href="#orge670a6d">1</a></li>
|
||||
<li>Figure <a href="#org0d0b9d8">3</a></li>
|
||||
<li>Table <a href="#org8956047">2</a></li>
|
||||
<li>Listing <a href="#org7a654ca">1</a></li>
|
||||
<li>Specific <a href="#coderef-test" class="coderef" onmouseover="CodeHighlightOn(this, 'coderef-test');" onmouseout="CodeHighlightOff(this, 'coderef-test');">line of code</a></li>
|
||||
<li>Equation \eqref{eq:numbered}</li>
|
||||
<li>Section <a href="#org8848caf">2</a></li>
|
||||
<li>Section <a href="#org3694aa1">2</a></li>
|
||||
<li>Bibliographic Reference <a href="#citeproc_bib_item_1">[1]</a>, and <a href="#citeproc_bib_item_1">[1]</a>–<a href="#citeproc_bib_item_3">[3]</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb3defcc" class="outline-3">
|
||||
<h3 id="orgb3defcc"><span class="section-number-3">1.5</span> Maths</h3>
|
||||
<div id="outline-container-org00bf706" class="outline-3">
|
||||
<h3 id="org00bf706"><span class="section-number-3">1.5</span> Maths</h3>
|
||||
<div class="outline-text-3" id="text-1-5">
|
||||
<p>
|
||||
Here is some inline mathematics: \(z = 2\).
|
||||
@ -237,8 +237,8 @@ Using the <code>align</code> environment Equations \eqref{eq:align_1} and \eqref
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga185925" class="outline-3">
|
||||
<h3 id="orga185925"><span class="section-number-3">1.6</span> Verse, Quote</h3>
|
||||
<div id="outline-container-org5d23f46" class="outline-3">
|
||||
<h3 id="org5d23f46"><span class="section-number-3">1.6</span> Verse, Quote</h3>
|
||||
<div class="outline-text-3" id="text-1-6">
|
||||
<p>
|
||||
Below is a verse.
|
||||
@ -270,14 +270,14 @@ Nearly everything is really interesting if you go into it deeply enough.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orga6fd6d2" class="outline-3">
|
||||
<h3 id="orga6fd6d2"><span class="section-number-3">1.7</span> Aside</h3>
|
||||
<div id="outline-container-org627bdab" class="outline-3">
|
||||
<h3 id="org627bdab"><span class="section-number-3">1.7</span> Aside</h3>
|
||||
<div class="outline-text-3" id="text-1-7">
|
||||
<p>
|
||||
An aside block can be used as shown below.
|
||||
</p>
|
||||
|
||||
<div class="aside" id="org9ca71a5">
|
||||
<div class="aside" id="org25bde10">
|
||||
<p>
|
||||
This is a note about the text using the <code>aside</code> environment.
|
||||
This can be as long as wanted
|
||||
@ -291,8 +291,8 @@ Cras elementum ex vel orci congue porttitor. Vestibulum scelerisque gravida matt
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org6d4bf81" class="outline-3">
|
||||
<h3 id="org6d4bf81"><span class="section-number-3">1.8</span> Inline Task</h3>
|
||||
<div id="outline-container-orge1180cd" class="outline-3">
|
||||
<h3 id="orge1180cd"><span class="section-number-3">1.8</span> Inline Task</h3>
|
||||
<div class="outline-text-3" id="text-1-8">
|
||||
<p>
|
||||
Some text.
|
||||
@ -310,24 +310,24 @@ Some text.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgefc8f2f" class="outline-2">
|
||||
<h2 id="orgefc8f2f"><span class="section-number-2">2</span> Headlines</h2>
|
||||
<div id="outline-container-org039b623" class="outline-2">
|
||||
<h2 id="org039b623"><span class="section-number-2">2</span> Headlines</h2>
|
||||
<div class="outline-text-2" id="text-2">
|
||||
<p>
|
||||
<a id="org8848caf"></a>
|
||||
<a id="org3694aa1"></a>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgde25a1d" class="outline-3">
|
||||
<h3 id="orgde25a1d"><span class="section-number-3">2.1</span> Second level Headline with tags   <span class="tag"><span class="_home">@home</span> <span class="_work">@work</span></span></h3>
|
||||
<div id="outline-container-org8a3d963" class="outline-3">
|
||||
<h3 id="org8a3d963"><span class="section-number-3">2.1</span> Second level Headline with tags   <span class="tag"><span class="_home">@home</span> <span class="_work">@work</span></span></h3>
|
||||
<div class="outline-text-3" id="text-2-1">
|
||||
</div>
|
||||
<div id="outline-container-orgcb19e6c" class="outline-4">
|
||||
<h4 id="orgcb19e6c"><span class="section-number-4">2.1.1</span> Third level Headline</h4>
|
||||
<div id="outline-container-orgddebfa2" class="outline-4">
|
||||
<h4 id="orgddebfa2"><span class="section-number-4">2.1.1</span> Third level Headline</h4>
|
||||
<div class="outline-text-4" id="text-2-1-1">
|
||||
</div>
|
||||
<div id="outline-container-org851bcb3" class="outline-5">
|
||||
<h5 id="org851bcb3"><span class="section-number-5">2.1.1.1</span> Fourth level Headline</h5>
|
||||
<div id="outline-container-org7552e05" class="outline-5">
|
||||
<h5 id="org7552e05"><span class="section-number-5">2.1.1.1</span> Fourth level Headline</h5>
|
||||
<div class="outline-text-5" id="text-2-1-1-1">
|
||||
<p>
|
||||
Aliquam aliquet sagittis lorem in rutrum. Cras pharetra viverra nisi, at placerat felis malesuada elementum. Donec tincidunt pharetra tincidunt. Praesent id lectus eget erat porttitor placerat non a magna. Cras non mauris ex. Morbi ut eros eu tellus egestas dapibus et et est. Aenean sollicitudin nibh enim, sed pulvinar massa iaculis sit amet. Vivamus egestas laoreet varius. Sed finibus libero nec quam tempor, eget viverra sapien fermentum. Donec dictum eleifend velit, vel elementum ex ultrices non. Vivamus mauris ex, ultrices quis sem vel, dapibus lacinia est. Praesent a sapien id diam venenatis finibus non vel justo. Cras sagittis tortor ac rutrum elementum. Maecenas luctus tempor enim, vitae suscipit quam consequat a. Phasellus feugiat congue sapien commodo cursus. Interdum et malesuada fames ac ante ipsum primis in faucibus.
|
||||
@ -336,12 +336,12 @@ Aliquam aliquet sagittis lorem in rutrum. Cras pharetra viverra nisi, at placera
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org7566193" class="outline-4">
|
||||
<h4 id="org7566193"><span class="section-number-4">2.1.2</span> Third level Headline</h4>
|
||||
<div id="outline-container-orgf374b5e" class="outline-4">
|
||||
<h4 id="orgf374b5e"><span class="section-number-4">2.1.2</span> Third level Headline</h4>
|
||||
<div class="outline-text-4" id="text-2-1-2">
|
||||
</div>
|
||||
<div id="outline-container-org3b46228" class="outline-5">
|
||||
<h5 id="org3b46228"><span class="section-number-5">2.1.2.1</span> Fourth level Headline</h5>
|
||||
<div id="outline-container-org4176fd6" class="outline-5">
|
||||
<h5 id="org4176fd6"><span class="section-number-5">2.1.2.1</span> Fourth level Headline</h5>
|
||||
<div class="outline-text-5" id="text-2-1-2-1">
|
||||
<p>
|
||||
Aliquam aliquet sagittis lorem in rutrum. Cras pharetra viverra nisi, at placerat felis malesuada elementum. Donec tincidunt pharetra tincidunt. Praesent id lectus eget erat porttitor placerat non a magna. Cras non mauris ex. Morbi ut eros eu tellus egestas dapibus et et est. Aenean sollicitudin nibh enim, sed pulvinar massa iaculis sit amet. Vivamus egestas laoreet varius. Sed finibus libero nec quam tempor, eget viverra sapien fermentum. Donec dictum eleifend velit, vel elementum ex ultrices non. Vivamus mauris ex, ultrices quis sem vel, dapibus lacinia est. Praesent a sapien id diam venenatis finibus non vel justo. Cras sagittis tortor ac rutrum elementum. Maecenas luctus tempor enim, vitae suscipit quam consequat a. Phasellus feugiat congue sapien commodo cursus. Interdum et malesuada fames ac ante ipsum primis in faucibus.
|
||||
@ -351,8 +351,8 @@ Aliquam aliquet sagittis lorem in rutrum. Cras pharetra viverra nisi, at placera
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8f14532" class="outline-3">
|
||||
<h3 id="org8f14532"><span class="section-number-3">2.2</span> <span class="todo TODO">TODO</span> Second level Headline with Schedule</h3>
|
||||
<div id="outline-container-orgf8785d7" class="outline-3">
|
||||
<h3 id="orgf8785d7"><span class="section-number-3">2.2</span> <span class="todo TODO">TODO</span> Second level Headline with Schedule</h3>
|
||||
<div class="outline-text-3" id="text-2-2">
|
||||
<p><span class="timestamp-wrapper"><span class="timestamp-kwd">SCHEDULED:</span> <span class="timestamp"><2020-11-26 jeu.></span></span></p>
|
||||
|
||||
@ -362,8 +362,8 @@ Aliquam aliquet sagittis lorem in rutrum. Cras pharetra viverra nisi, at placera
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org2d3de1d" class="outline-3">
|
||||
<h3 id="org2d3de1d"><span class="section-number-3">2.3</span> <span class="priority">[B]</span> Second level Headline with a priority</h3>
|
||||
<div id="outline-container-orgb7b0768" class="outline-3">
|
||||
<h3 id="orgb7b0768"><span class="section-number-3">2.3</span> <span class="priority">[B]</span> Second level Headline with a priority</h3>
|
||||
<div class="outline-text-3" id="text-2-3">
|
||||
<p>
|
||||
Aliquam aliquet sagittis lorem in rutrum. Cras pharetra viverra nisi, at placerat felis malesuada elementum. Donec tincidunt pharetra tincidunt. Praesent id lectus eget erat porttitor placerat non a magna.
|
||||
@ -371,8 +371,8 @@ Aliquam aliquet sagittis lorem in rutrum. Cras pharetra viverra nisi, at placera
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgb65c522" class="outline-3">
|
||||
<h3 id="orgb65c522"><span class="section-number-3">2.4</span> <span class="todo TODO">TODO</span> <span class="priority">[C]</span> Second level Headline with TODO State</h3>
|
||||
<div id="outline-container-orga9f480f" class="outline-3">
|
||||
<h3 id="orga9f480f"><span class="section-number-3">2.4</span> <span class="todo TODO">TODO</span> <span class="priority">[C]</span> Second level Headline with TODO State</h3>
|
||||
<div class="outline-text-3" id="text-2-4">
|
||||
<p>
|
||||
Vivamus egestas laoreet varius. Sed finibus libero nec quam tempor, eget viverra sapien fermentum. Donec dictum eleifend velit, vel elementum ex ultrices non. Vivamus mauris ex, ultrices quis sem vel, dapibus lacinia est. Praesent a sapien id diam venenatis finibus non vel justo.
|
||||
@ -380,8 +380,8 @@ Vivamus egestas laoreet varius. Sed finibus libero nec quam tempor, eget viverra
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgdb2780e" class="outline-3">
|
||||
<h3 id="orgdb2780e"><span class="section-number-3">2.5</span> <span class="done DONE">DONE</span> <span class="priority">[A]</span> Second level Headline with DONE State</h3>
|
||||
<div id="outline-container-org9f0814c" class="outline-3">
|
||||
<h3 id="org9f0814c"><span class="section-number-3">2.5</span> <span class="done DONE">DONE</span> <span class="priority">[A]</span> Second level Headline with DONE State</h3>
|
||||
<div class="outline-text-3" id="text-2-5">
|
||||
<p><span class="timestamp-wrapper"><span class="timestamp-kwd">CLOSED:</span> <span class="timestamp">[2020-11-26 jeu. 18:53]</span></span></p>
|
||||
<p>
|
||||
@ -389,8 +389,8 @@ Cras sagittis tortor ac rutrum elementum. Maecenas luctus tempor enim, vitae sus
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgfe05c9f" class="outline-4">
|
||||
<h4 id="orgfe05c9f"><span class="section-number-4">2.5.1</span> <span class="todo WAIT">WAIT</span> Third level Headline with DONE State</h4>
|
||||
<div id="outline-container-org66b96e6" class="outline-4">
|
||||
<h4 id="org66b96e6"><span class="section-number-4">2.5.1</span> <span class="todo WAIT">WAIT</span> Third level Headline with DONE State</h4>
|
||||
<div class="outline-text-4" id="text-2-5-1">
|
||||
<p><span class="timestamp-wrapper"><span class="timestamp-kwd">CLOSED:</span> <span class="timestamp">[2020-11-26 jeu. 18:53]</span></span></p>
|
||||
<p>
|
||||
@ -401,80 +401,80 @@ Cras non mauris ex. Morbi ut eros eu tellus egestas dapibus et et est. Aenean so
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org1f43e18" class="outline-2">
|
||||
<h2 id="org1f43e18"><span class="section-number-2">3</span> Blocks</h2>
|
||||
<div id="outline-container-org8fe71cc" class="outline-2">
|
||||
<h2 id="org8fe71cc"><span class="section-number-2">3</span> Blocks</h2>
|
||||
<div class="outline-text-2" id="text-3">
|
||||
<div class="seealso" id="orge939d14">
|
||||
<div class="seealso" id="orge22c7c8">
|
||||
<p>
|
||||
<code>seealso</code> block.
|
||||
</p>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="hint" id="org005261a">
|
||||
<div class="hint" id="orgca32173">
|
||||
<p>
|
||||
<code>hint</code> block.
|
||||
</p>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="definition" id="org437491d">
|
||||
<div class="definition" id="org4194c31">
|
||||
<p>
|
||||
<code>definition</code> block.
|
||||
</p>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="important" id="org5455aab">
|
||||
<div class="important" id="org429ae42">
|
||||
<p>
|
||||
<code>important</code> block.
|
||||
</p>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="exampl" id="orgf659c26">
|
||||
<div class="exampl" id="org4ae6bba">
|
||||
<p>
|
||||
<code>exampl</code> block.
|
||||
</p>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="exercice" id="org1879088">
|
||||
<div class="exercice" id="org0bfd9e9">
|
||||
<p>
|
||||
<code>exercice</code> block.
|
||||
</p>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="question" id="org029b69e">
|
||||
<div class="question" id="orgcfc1932">
|
||||
<p>
|
||||
<code>question</code> block.
|
||||
</p>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="answer" id="org858c94c">
|
||||
<div class="answer" id="org67319d2">
|
||||
<p>
|
||||
<code>answer</code> block.
|
||||
</p>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="summary" id="org570fee0">
|
||||
<div class="summary" id="org5aabb0c">
|
||||
<p>
|
||||
<code>summary</code> block.
|
||||
</p>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="caution" id="orgb7e0a6d">
|
||||
<div class="caution" id="org26b7a06">
|
||||
<p>
|
||||
<code>caution</code> block.
|
||||
</p>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="warning" id="orgac5dc8a">
|
||||
<div class="warning" id="org38cf9b9">
|
||||
<p>
|
||||
<code>warning</code> block.
|
||||
</p>
|
||||
@ -483,12 +483,12 @@ Cras non mauris ex. Morbi ut eros eu tellus egestas dapibus et et est. Aenean so
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org217b2ee" class="outline-2">
|
||||
<h2 id="org217b2ee"><span class="section-number-2">4</span> Source Blocks</h2>
|
||||
<div id="outline-container-orge636b6e" class="outline-2">
|
||||
<h2 id="orge636b6e"><span class="section-number-2">4</span> Source Blocks</h2>
|
||||
<div class="outline-text-2" id="text-4">
|
||||
</div>
|
||||
<div id="outline-container-orgcfbe53a" class="outline-3">
|
||||
<h3 id="orgcfbe53a"><span class="section-number-3">4.1</span> Figures</h3>
|
||||
<div id="outline-container-org1f4f5d0" class="outline-3">
|
||||
<h3 id="org1f4f5d0"><span class="section-number-3">4.1</span> Figures</h3>
|
||||
<div class="outline-text-3" id="text-4-1">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-matlab">t = 0<span class="org-type">:</span>0.01<span class="org-type">:</span>5; <span class="org-comment">% Time [s]</span>
|
||||
@ -504,7 +504,7 @@ xlabel(<span class="org-string">'Time [s]'</span>); ylabel(<span class="org-stri
|
||||
</div>
|
||||
|
||||
|
||||
<div id="org0317ef9" class="figure">
|
||||
<div id="org7d27f3b" class="figure">
|
||||
<p><img src="figs/matlab_fig_example.png" alt="matlab_fig_example.png" />
|
||||
</p>
|
||||
<p><span class="figure-number">Figure 1: </span>Matlab Figure</p>
|
||||
@ -512,8 +512,8 @@ xlabel(<span class="org-string">'Time [s]'</span>); ylabel(<span class="org-stri
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0b5c367" class="outline-3">
|
||||
<h3 id="org0b5c367"><span class="section-number-3">4.2</span> Table Result</h3>
|
||||
<div id="outline-container-org22eedd9" class="outline-3">
|
||||
<h3 id="org22eedd9"><span class="section-number-3">4.2</span> Table Result</h3>
|
||||
<div class="outline-text-3" id="text-4-2">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-matlab">x = 1<span class="org-type">:</span>10;
|
||||
@ -521,7 +521,7 @@ y = x<span class="org-type">.^</span>2;
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
<table id="org17167ea" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="orgc203c2d" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<caption class="t-above"><span class="table-number">Table 1:</span> Table caption</caption>
|
||||
|
||||
<colgroup>
|
||||
@ -590,8 +590,8 @@ y = x<span class="org-type">.^</span>2;
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org709a452" class="outline-3">
|
||||
<h3 id="org709a452"><span class="section-number-3">4.3</span> Inline Results</h3>
|
||||
<div id="outline-container-org4fab781" class="outline-3">
|
||||
<h3 id="org4fab781"><span class="section-number-3">4.3</span> Inline Results</h3>
|
||||
<div class="outline-text-3" id="text-4-3">
|
||||
<p>
|
||||
Results can be automatically outputed as shown below.
|
||||
@ -620,35 +620,35 @@ y =
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org0950d4e" class="outline-3">
|
||||
<h3 id="org0950d4e"><span class="section-number-3">4.4</span> Caption and Reference</h3>
|
||||
<div id="outline-container-orgf2c1e94" class="outline-3">
|
||||
<h3 id="orgf2c1e94"><span class="section-number-3">4.4</span> Caption and Reference</h3>
|
||||
<div class="outline-text-3" id="text-4-4">
|
||||
<p>
|
||||
Captions can be added to code blocks.
|
||||
Moreover, we can link to specific bode blocks (Listing <a href="#orge670a6d">1</a> or <a href="#org14864bc">2</a>).
|
||||
Moreover, we can link to specific bode blocks (Listing <a href="#org7a654ca">1</a> or <a href="#org3862c0c">2</a>).
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
<label class="org-src-name"><span class="listing-number">Listing 1: </span>Code to produce a nice contour plot</label><pre class="src src-matlab" id="orge670a6d"><span class="org-type">figure</span>;
|
||||
<label class="org-src-name"><span class="listing-number">Listing 1: </span>Code to produce a nice contour plot</label><pre class="src src-matlab" id="org7a654ca"><span class="org-type">figure</span>;
|
||||
[X,Y,Z] = peaks;
|
||||
contour(X,Y,Z,20)
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="org6403ad3" class="figure">
|
||||
<div id="orgf36a25e" class="figure">
|
||||
<p><img src="figs/matlab_logo.png" alt="matlab_logo.png" />
|
||||
</p>
|
||||
<p><span class="figure-number">Figure 2: </span>Obtained Contour Plot</p>
|
||||
</div>
|
||||
|
||||
<div class="org-src-container">
|
||||
<label class="org-src-name"><span class="listing-number">Listing 2: </span>Code to compute the Singular Value Decomposition</label><pre class="src src-matlab" id="org14864bc">A = [1 2; 3 4; 5 6; 7 8]
|
||||
<label class="org-src-name"><span class="listing-number">Listing 2: </span>Code to compute the Singular Value Decomposition</label><pre class="src src-matlab" id="org3862c0c">A = [1 2; 3 4; 5 6; 7 8]
|
||||
[U,S,V] = svd(A)
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
<pre class="example" id="org024df95">
|
||||
<pre class="example" id="org6587bcc">
|
||||
A = [1 2; 3 4; 5 6; 7 8]
|
||||
A =
|
||||
1 2
|
||||
@ -673,11 +673,11 @@ V =
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org033acad" class="outline-3">
|
||||
<h3 id="org033acad"><span class="section-number-3">4.5</span> Source Blocks with Line Numbers</h3>
|
||||
<div id="outline-container-orgd2edfd7" class="outline-3">
|
||||
<h3 id="orgd2edfd7"><span class="section-number-3">4.5</span> Source Blocks with Line Numbers</h3>
|
||||
<div class="outline-text-3" id="text-4-5">
|
||||
<p>
|
||||
The Listing <a href="#org46fa159">3</a> has line numbers as the <code>-n</code> option was used.
|
||||
The Listing <a href="#org0c8965c">3</a> has line numbers as the <code>-n</code> option was used.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
@ -686,7 +686,7 @@ For instance, the code used to specify the wanted the vertical label is on line
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
<label class="org-src-name"><span class="listing-number">Listing 3: </span>Specify Labels</label><pre class="src src-matlab" id="org46fa159"><span class="linenr">1: </span><span class="org-type">figure</span>;
|
||||
<label class="org-src-name"><span class="listing-number">Listing 3: </span>Specify Labels</label><pre class="src src-matlab" id="org0c8965c"><span class="linenr">1: </span><span class="org-type">figure</span>;
|
||||
<span class="linenr">2: </span>plot(t, x)
|
||||
<span class="linenr">3: </span>xlabel(<span class="org-string">'Time [s]'</span>);
|
||||
<span id="coderef-test" class="coderef-off"><span class="linenr">4: </span>ylabel(<span class="org-string">'Output [V]'</span>);</span>
|
||||
@ -707,15 +707,15 @@ Numbering can be continued by using <code>+n</code> option as shown below.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org3c26fb9" class="outline-2">
|
||||
<h2 id="org3c26fb9"><span class="section-number-2">5</span> Images</h2>
|
||||
<div id="outline-container-org8abeb8a" class="outline-2">
|
||||
<h2 id="org8abeb8a"><span class="section-number-2">5</span> Images</h2>
|
||||
<div class="outline-text-2" id="text-5">
|
||||
<p>
|
||||
Figure <a href="#org5fd79cb">3</a> shows the results of the Tikz code of listing <a href="#org8a8098f">4</a>.
|
||||
Figure <a href="#org0d0b9d8">3</a> shows the results of the Tikz code of listing <a href="#org54a233d">4</a>.
|
||||
</p>
|
||||
|
||||
<div class="org-src-container">
|
||||
<label class="org-src-name"><span class="listing-number">Listing 4: </span>Tikz code that is used to generate Figure <a href="#org5fd79cb">3</a></label><pre class="src src-latex" id="org8a8098f"><span class="org-font-latex-sedate"><span class="org-keyword">\begin</span></span>{<span class="org-function-name">tikzpicture</span>}
|
||||
<label class="org-src-name"><span class="listing-number">Listing 4: </span>Tikz code that is used to generate Figure <a href="#org0d0b9d8">3</a></label><pre class="src src-latex" id="org54a233d"><span class="org-font-latex-sedate"><span class="org-keyword">\begin</span></span>{<span class="org-function-name">tikzpicture</span>}
|
||||
|
||||
<span class="org-comment">% Blocs</span>
|
||||
<span class="org-font-latex-sedate">\node</span>[block={2.0cm}{2.0cm}] (P) {<span class="org-font-latex-math">$P$</span>};
|
||||
@ -738,7 +738,7 @@ Figure <a href="#org5fd79cb">3</a> shows the results of the Tikz code of listing
|
||||
</div>
|
||||
|
||||
|
||||
<div id="org5fd79cb" class="figure">
|
||||
<div id="org0d0b9d8" class="figure">
|
||||
<p><img src="figs/general_control_names.png" alt="general_control_names.png" />
|
||||
</p>
|
||||
<p><span class="figure-number">Figure 3: </span>General Control Configuration</p>
|
||||
@ -746,14 +746,14 @@ Figure <a href="#org5fd79cb">3</a> shows the results of the Tikz code of listing
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org00a5411" class="outline-2">
|
||||
<h2 id="org00a5411"><span class="section-number-2">6</span> Tables</h2>
|
||||
<div id="outline-container-orga383787" class="outline-2">
|
||||
<h2 id="orga383787"><span class="section-number-2">6</span> Tables</h2>
|
||||
<div class="outline-text-2" id="text-6">
|
||||
<p>
|
||||
Table <a href="#org8c1199c">2</a> shows a table with some mathematics inside.
|
||||
Table <a href="#org8956047">2</a> shows a table with some mathematics inside.
|
||||
</p>
|
||||
|
||||
<table id="org8c1199c" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org8956047" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<caption class="t-above"><span class="table-number">Table 2:</span> A Simple table with included math</caption>
|
||||
|
||||
<colgroup>
|
||||
@ -809,7 +809,7 @@ Table <a href="#org8c1199c">2</a> shows a table with some mathematics inside.
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table id="org64079c8" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org4f4f7f2" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<caption class="t-above"><span class="table-number">Table 3:</span> Table without Head</caption>
|
||||
|
||||
<colgroup>
|
||||
@ -882,7 +882,7 @@ Table <a href="#org8c1199c">2</a> shows a table with some mathematics inside.
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table id="org18dedae" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org8cb1ac1" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<caption class="t-above"><span class="table-number">Table 4:</span> Table with multiples groups</caption>
|
||||
|
||||
<colgroup>
|
||||
@ -1016,8 +1016,8 @@ Table <a href="#org8c1199c">2</a> shows a table with some mathematics inside.
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-orgc5ddb79" class="outline-2">
|
||||
<h2 id="orgc5ddb79"><span class="section-number-2">7</span> Details</h2>
|
||||
<div id="outline-container-orgb8a5d11" class="outline-2">
|
||||
<h2 id="orgb8a5d11"><span class="section-number-2">7</span> Details</h2>
|
||||
<div class="outline-text-2" id="text-7">
|
||||
<p>
|
||||
Below is some content hidden until you click the bar.
|
||||
@ -1028,7 +1028,7 @@ Below is some content hidden until you click the bar.
|
||||
Almost anything can be put here for instance this table below.
|
||||
</p>
|
||||
|
||||
<table id="org9d4f549" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<table id="org2b91cc9" border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
|
||||
<caption class="t-above"><span class="table-number">Table 5:</span> A Simple table with included math</caption>
|
||||
|
||||
<colgroup>
|
||||
@ -1096,7 +1096,7 @@ It is approximately <b>12,742 km</b>
|
||||
</p>
|
||||
</details>
|
||||
|
||||
<div class="question" id="org6d56e95">
|
||||
<div class="question" id="orga68b480">
|
||||
<p>
|
||||
What is the approximate diameter of the earth?
|
||||
</p>
|
||||
@ -1111,8 +1111,8 @@ It is approximately <b>12,742 km</b>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org8b65486" class="outline-2">
|
||||
<h2 id="org8b65486"><span class="section-number-2">8</span> Videos</h2>
|
||||
<div id="outline-container-orgf0c9c89" class="outline-2">
|
||||
<h2 id="orgf0c9c89"><span class="section-number-2">8</span> Videos</h2>
|
||||
<div class="outline-text-2" id="text-8">
|
||||
<p>
|
||||
<div class="yt"><iframe width="100%" height="100%" src="https://www.youtube.com/embed/SzA2YODtgK4" frameborder="0" allowfullscreen></iframe></div>
|
||||
@ -1120,8 +1120,8 @@ It is approximately <b>12,742 km</b>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-org4363737" class="outline-2">
|
||||
<h2 id="org4363737"><span class="section-number-2">9</span> Bibliography</h2>
|
||||
<div id="outline-container-org73f9592" class="outline-2">
|
||||
<h2 id="org73f9592"><span class="section-number-2">9</span> Bibliography</h2>
|
||||
<div class="outline-text-2" id="text-9">
|
||||
<p>
|
||||
|
||||
@ -1146,7 +1146,7 @@ It is approximately <b>12,742 km</b>
|
||||
<div id="text-footnotes">
|
||||
|
||||
<div class="footdef"><sup><a id="fn.1" class="footnum" href="#fnr.1">1</a></sup> <div class="footpara"><p class="footpara">
|
||||
A long foot note. Lorem ipsum dolor sit amet, consectetur adipiscing elit. With a reference to Figure <a href="#org5fd79cb">3</a>.
|
||||
A long foot note. Lorem ipsum dolor sit amet, consectetur adipiscing elit. With a reference to Figure <a href="#org0d0b9d8">3</a>.
|
||||
</p></div></div>
|
||||
|
||||
<div class="footdef"><sup><a id="fn.2" class="footnum" href="#fnr.2">2</a></sup> <div class="footpara"><p class="footpara">
|
||||
@ -1158,7 +1158,7 @@ An other footnote.
|
||||
</div></div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="author">Author: Dehaeze Thomas</p>
|
||||
<p class="date">Created: 2020-11-27 ven. 23:05</p>
|
||||
<p class="date">Created: 2020-12-01 mar. 17:20</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
52
js/script.js
52
js/script.js
@ -1,7 +1,3 @@
|
||||
// var $ = require('jquery');
|
||||
// window.$ = $;
|
||||
// require('bootstrap');
|
||||
//
|
||||
// Blocks
|
||||
docReady(function() {
|
||||
var boxesNames = {
|
||||
@ -76,6 +72,51 @@ function docReady(fn) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Load Jquery
|
||||
var scr = document.createElement('script'),
|
||||
head = document.head || document.getElementsByTagName('head')[0];
|
||||
scr.src = 'https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js';
|
||||
scr.async = false; // optionally
|
||||
|
||||
head.insertBefore(scr, head.firstChild);
|
||||
|
||||
|
||||
// Load Bootstrap.js
|
||||
var scr = document.createElement('script'),
|
||||
head = document.head || document.getElementsByTagName('head')[0];
|
||||
scr.src = 'https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js';
|
||||
scr.async = false; // optionally
|
||||
|
||||
head.insertBefore(scr, head.firstChild);
|
||||
|
||||
// After it is loaded
|
||||
scr.addEventListener('load', () => {
|
||||
$(document).ready(function() {
|
||||
$('#text-table-of-contents ul').first().addClass('nav');
|
||||
// ScrollSpy also requires that we use
|
||||
// a Bootstrap nav component.
|
||||
$('body').scrollspy({target: '#text-table-of-contents'});
|
||||
|
||||
// set the height of tableOfContents
|
||||
var $postamble = $('#postamble');
|
||||
var $tableOfContents = $('#table-of-contents');
|
||||
$tableOfContents.css({paddingBottom: $postamble.outerHeight()});
|
||||
|
||||
// add TOC button
|
||||
var toggleSidebar = $('<div id="toggle-sidebar"><a href="#table-of-contents"><h2>Table of Contents</h2></a></div>');
|
||||
$('#content').prepend(toggleSidebar);
|
||||
|
||||
// add close button when sidebar showed in mobile screen
|
||||
var closeBtn = $('<a class="close-sidebar" href="#">Close</a>');
|
||||
var tocTitle = $('#table-of-contents').find('h2');
|
||||
tocTitle.append(closeBtn);
|
||||
});
|
||||
})
|
||||
|
||||
|
||||
|
||||
|
||||
// function collapse_toc_elements_on_click (nav_li_a){
|
||||
// /*
|
||||
// When an `a' element in the TOC is clicked, its parent
|
||||
@ -121,9 +162,6 @@ function docReady(fn) {
|
||||
// // a Bootstrap nav component.
|
||||
// $('body').scrollspy({target: '#text-table-of-contents'});
|
||||
|
||||
// // DON'T add sticky table headers (Fix issue #69?)
|
||||
// // $('table').stickyTableHeaders();
|
||||
|
||||
// // set the height of tableOfContents
|
||||
// var $postamble = $('#postamble');
|
||||
// var $tableOfContents = $('#table-of-contents');
|
||||
|
@ -34,6 +34,10 @@
|
||||
}
|
||||
}
|
||||
|
||||
.close-sidebar {
|
||||
display: none;
|
||||
}
|
||||
|
||||
// ToC Items
|
||||
li {
|
||||
list-style: none;
|
||||
@ -70,134 +74,138 @@
|
||||
|
||||
|
||||
|
||||
// ul.nav li ul li {
|
||||
// display: none;
|
||||
// }
|
||||
|
||||
// ul.nav li ul li ul li {
|
||||
// display: none;
|
||||
// }
|
||||
|
||||
// ul.nav li.active ul li {
|
||||
// display: inline;
|
||||
// }
|
||||
|
||||
// ul.nav li.active ul li ul li {
|
||||
// display: inline;
|
||||
// }
|
||||
|
||||
// ul.nav li.active ul li a {
|
||||
// background-color: #E3E3E3;
|
||||
// color: #8099B0;
|
||||
// border-right:solid 1px #c9c9c9 !important;
|
||||
// }
|
||||
|
||||
// ul.nav li.active ul li.active a {
|
||||
// background-color: #C9C9C9;
|
||||
// color: black !important;
|
||||
// font-weight: bold !important;
|
||||
// }
|
||||
|
||||
// ul.nav li.active ul li.active ul li.active a {
|
||||
// color: black !important;
|
||||
// font-weight: bold !important;
|
||||
// display: block !important;
|
||||
// }
|
||||
|
||||
// ul.nav li.active ul li.active ul li a {
|
||||
// color: #808080 !important;
|
||||
// font-weight: normal !important;
|
||||
// display: block !important;
|
||||
// }
|
||||
|
||||
// ul.nav li.active ul li ul li a {
|
||||
// display: none !important;
|
||||
// }
|
||||
|
||||
// ul.nav li ul li ul li ul li {
|
||||
// display: none !important;
|
||||
// }
|
||||
|
||||
// ul.nav li.active > a {
|
||||
// border-bottom:solid 1px #c9c9c9 !important;
|
||||
// border-right:solid 1px #c9c9c9 !important;
|
||||
// }
|
||||
|
||||
// ul.nav li.active a {
|
||||
// color: gray !important;
|
||||
// font-weight:bold;
|
||||
// background-color: white;
|
||||
// border-right:solid 0px white !important;
|
||||
// }
|
||||
|
||||
// ul.nav > li.active > a {
|
||||
// color: black !important;
|
||||
// }
|
||||
|
||||
// #toggle-sidebar {
|
||||
// display: none;
|
||||
// }
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// li {
|
||||
// &.divide-top {
|
||||
// border-top:solid 1px #404040;
|
||||
// }
|
||||
// Additionnal things to order
|
||||
|
||||
// &.divide-bottom {
|
||||
// border-bottom:solid 1px #404040;
|
||||
// }
|
||||
ul.nav li ul li {
|
||||
display: none;
|
||||
}
|
||||
|
||||
// &.current {
|
||||
// background:#e3e3e3;
|
||||
ul.nav li ul li ul li {
|
||||
display: none;
|
||||
}
|
||||
|
||||
// a {
|
||||
// color: gray;
|
||||
// border-right: solid 1px #c9c9c9;
|
||||
// padding: 0.4045em 2.427em;
|
||||
// &:hover{
|
||||
// background: #d6d6d6;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
ul.nav li.active ul li {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
// a {
|
||||
// // padding:0.4045em 1.618em;
|
||||
// position:relative;
|
||||
// border:none;
|
||||
// padding-left:1.618em -4px;
|
||||
// }
|
||||
ul.nav li.active ul li ul li {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
// &.on a:hover {
|
||||
// background: #fcfcfc;
|
||||
// }
|
||||
// &.current>a:hover{
|
||||
// background: #fcfcfc;
|
||||
// }
|
||||
// }
|
||||
ul.nav li.active ul li a {
|
||||
background-color: #E3E3E3;
|
||||
color: #8099B0;
|
||||
border-right:solid 1px #c9c9c9 !important;
|
||||
}
|
||||
|
||||
ul.nav li.active ul li.active a {
|
||||
background-color: #C9C9C9;
|
||||
color: black !important;
|
||||
font-weight: bold !important;
|
||||
}
|
||||
|
||||
ul.nav li.active ul li.active ul li.active a {
|
||||
color: black !important;
|
||||
font-weight: bold !important;
|
||||
display: block !important;
|
||||
}
|
||||
|
||||
ul.nav li.active ul li.active ul li a {
|
||||
color: #808080 !important;
|
||||
font-weight: normal !important;
|
||||
display: block !important;
|
||||
}
|
||||
|
||||
ul.nav li.active ul li ul li a {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
ul.nav li ul li ul li ul li {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
ul.nav li.active > a {
|
||||
border-bottom:solid 1px #c9c9c9 !important;
|
||||
border-right:solid 1px #c9c9c9 !important;
|
||||
}
|
||||
|
||||
ul.nav li.active a {
|
||||
color: gray !important;
|
||||
font-weight:bold;
|
||||
background-color: white;
|
||||
border-right:solid 0px white !important;
|
||||
}
|
||||
|
||||
ul.nav > li.active > a {
|
||||
color: black !important;
|
||||
}
|
||||
|
||||
#toggle-sidebar {
|
||||
display: none;
|
||||
}
|
||||
|
||||
|
||||
// .close-sidebar {
|
||||
// display: none;
|
||||
// }
|
||||
|
||||
|
||||
// li.current ul{
|
||||
// display:block;
|
||||
// }
|
||||
|
||||
|
||||
// .local-toc li ul{
|
||||
// display:block;
|
||||
// }
|
||||
li {
|
||||
&.divide-top {
|
||||
border-top:solid 1px #404040;
|
||||
}
|
||||
|
||||
&.divide-bottom {
|
||||
border-bottom:solid 1px #404040;
|
||||
}
|
||||
|
||||
&.current {
|
||||
background:#e3e3e3;
|
||||
|
||||
a {
|
||||
color: gray;
|
||||
border-right: solid 1px #c9c9c9;
|
||||
padding: 0.4045em 2.427em;
|
||||
&:hover{
|
||||
background: #d6d6d6;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
a {
|
||||
// padding:0.4045em 1.618em;
|
||||
position:relative;
|
||||
border:none;
|
||||
padding-left:1.618em -4px;
|
||||
}
|
||||
|
||||
&.on a:hover {
|
||||
background: #fcfcfc;
|
||||
}
|
||||
&.current>a:hover{
|
||||
background: #fcfcfc;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// li ul li a{
|
||||
// margin-bottom:0;
|
||||
// color:#b3b3b3;
|
||||
// font-weight:normal;
|
||||
// }
|
||||
|
||||
li.current ul{
|
||||
display:block;
|
||||
}
|
||||
|
||||
|
||||
.local-toc li ul{
|
||||
display:block;
|
||||
}
|
||||
|
||||
|
||||
li ul li a{
|
||||
margin-bottom:0;
|
||||
color:#b3b3b3;
|
||||
font-weight:normal;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user