-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtemplate-topbar.html
182 lines (157 loc) · 5.77 KB
/
template-topbar.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="$lang$" xml:lang="$lang$" $if(dir)$ dir="$dir$" $endif$>
<head>
<meta charset="utf-8" />
<meta name="generator" content="pandoc" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
$for(author-meta)$
<meta name="author" content="$author-meta$" />
$endfor$
$if(date-meta)$
<meta name="dcterms.date" content="$date-meta$" />
$endif$
$if(keywords)$
<meta name="keywords" content="$for(keywords)$$keywords$$sep$, $endfor$" />
$endif$
<title>$if(title-prefix)$$title-prefix$ – $endif$$pagetitle$</title>
<style type="text/css">
code {
white-space: pre-wrap;
}
span.smallcaps {
font-variant: small-caps;
}
span.underline {
text-decoration: underline;
}
div.column {
display: inline-block;
vertical-align: top;
width: 50%;
}
.nopadding {
padding: 0 !important;
margin: 0 !important;
}
$if(quotes)$ q {
quotes: "“" "”" "‘" "’";
}
$endif$
</style>
$if(highlighting-css)$
<style type="text/css">
$highlighting-css$
</style>
$endif$
<!-- Bootstrap 4.5.0 stylesheet -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css"
integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
$for(css)$
<link rel="stylesheet" href="$css$" />
$endfor$
<!--[if lt IE 9]>
<script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv-printshiv.min.js"></script>
<![endif]-->
$for(header-includes)$
$header-includes$
$endfor$
<!-- <script data-main="scripts/main" src="js/require.js"></script> -->
<!-- Load React. -->
<!-- Note: when deploying, replace "development.js" with "production.min.js". -->
<!-- <script src="https://unpkg.com/react@16/umd/react.development.js" crossorigin></script>
<script src="https://unpkg.com/react-dom@16/umd/react-dom.development.js" crossorigin></script> -->
</head>
<body>
$for(include-before)$
$include-before$
$endfor$
<div class="container-fluid">
<div class="row">
<div id="sidebar" class="col-lg-2 nopadding d-none d-xl-block">
<nav id="$idprefix$TOC" class="navbar-expand-sm col-auto col-md-2 d-none d-md-block bg-light sidebar">
<div class="sidebar-sticky">
<a href="#" class="navbar-brand">$title$</a>
<div class="toc">
$table-of-contents$
</div>
</div>
</nav>
</div>
<div class="col-xl-10 nopadding d-block">
<nav class="navbar navbar-expand-lg navbar-light py-2">
<button class="ml-auto navbar-toggler" type="button" data-toggle="collapse"
data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false"
aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
$for(topbar)$
<li class="nav-item">
$topbar$
</li>
$endfor$
$if(github)$
<li class="nav-item">
<a href="$github$"><img src="img/github.png" alt="Octocat" style="height: 18pt" /> Github</a>
</li>
<li class="nav-item">
<a href="$github$releases"><img src="img/download.svg" alt="Download" style="height: 18pt" />
Downloads</a>
</li>
$endif$
</ul>
</div>
</nav>
<div id="title-bar" class="title-bar">
<div id="title">
$title$
</div>
<div id="subtitle">
$subtitle$
</div>
</div>
<main role="main" class="col-auto col-md-10 ml-sm-auto col-lg-10 px-3 pb-5">
$body$
</main>
</div>
</div>
</div>
$for(include-after)$
$include-after$
$endfor$
$if(footer)$
<footer class="py-2 footer fixed-bottom 1padding">
<div class="container-fluid">
$footer$
</div>
</footer>
$endif$
</div>
<!-- Bootstrap 4.5.0 -->
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"
integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj"
crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js"
integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo"
crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js"
integrity="sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI"
crossorigin="anonymous"></script>
<!-- Mathjax -->
$if(math)$
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
$endif$
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.8/clipboard.min.js"></script>
<script>
var clipboard = new ClipboardJS('.btn')
//const userAgent = navigator.userAgent.toLowerCase();
//const isTablet = /(ipad|tablet|(android(?!.*mobile))|(windows(?!.*phone)(.*touch))|kindle|playbook|silk|(puffin(?!.*(IP|AP|WP))))/.test(userAgent);
//if(isTablet) {
// console.log("here")
// document.getElementById("sidebar").style.display = 'none'
//}
</script>
</body>
</html>