abouttreesummaryrefslogcommitdiff
path: root/static/cgithub/head-include.html
blob: ee28d8c2ee643b1a5dc24b637e6ee50883462c28 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<meta name="viewport" content="width=device-width, initial-scale=1"/>

<link rel="stylesheet" type="text/css" href="/git/cgithub/github-markdown-dark.css"/>
<link rel="stylesheet" type="text/css" href="/git/cgithub/cgithub.css"/>
<link rel="stylesheet" type="text/css" href="/git/cgithub/prism-one-dark.css"/>

<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/cgithub/prism.js"></script>