blob: 5a084b2a441f13015513a4e7da07f9dac0062b93 (
plain)
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
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<link rel="stylesheet" type="text/css" href="/git/static/cgithub/cgithub/github-markdown-dark.css"/>
<link rel="stylesheet" type="text/css" href="/git/static/cgithub/cgithub/cgithub.css"/>
<link rel="stylesheet" type="text/css" href="/git/static/cgithub/cgithub/prism-one-dark.css"/>
<style>
/* https://stackoverflow.com/a/20104746 */
.tab-folder > .tab-content:target ~ .tab-content:last-child, .tab-folder > .tab-content {
display: none;
}
.tab-folder > :last-child, .tab-folder > .tab-content:target {
display: block;
}
.blob-hash {
width: 100%;
max-width: 1280px;
box-sizing: border-box;
margin: var(--content-v-margin) auto;
margin-top: 0; margin-bottom: 0;
}
table.list tr:nth-child(n+11):has(~ tr td input[type=checkbox]:not(:checked)) {
display: none;
}
</style>
<script type="module">
const blob = document.querySelector('div#cgit table.blob td.lines pre code');
const path = document.querySelector('div#cgit div.path a:last-child');
if (blob !== null && path !== null) {
let lang = path.textContent.split(".").pop();
if (lang == 'h') lang = 'cpp';
if (lang == 'hpp') lang = 'cpp';
blob.classList.add('language-' + lang);
}
</script>
<script src="/git/static/cgithub/cgithub/prism.js"></script>
|