abouttreesummaryrefslogcommitdiff
path: root/cgithub/head-include.html
diff options
context:
space:
mode:
Diffstat (limited to 'cgithub/head-include.html')
-rw-r--r--cgithub/head-include.html18
1 files changed, 18 insertions, 0 deletions
diff --git a/cgithub/head-include.html b/cgithub/head-include.html
new file mode 100644
index 0000000..5ad9caa
--- /dev/null
+++ b/cgithub/head-include.html
@@ -0,0 +1,18 @@
+<meta name="viewport" content="width=device-width, initial-scale=1"/>
+
+<link rel="stylesheet" type="text/css" href="/git/static/cgithub/github-markdown-dark.css"/>
+<link rel="stylesheet" type="text/css" href="/git/static/cgithub/cgithub.css"/>
+<link rel="stylesheet" type="text/css" href="/git/static/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/static/cgithub/prism.js"></script>