summaryrefslogtreecommitdiff
path: root/head.html.template
diff options
context:
space:
mode:
Diffstat (limited to 'head.html.template')
-rw-r--r--head.html.template22
1 files changed, 10 insertions, 12 deletions
diff --git a/head.html.template b/head.html.template
index 2e56aa0..5fc6fec 100644
--- a/head.html.template
+++ b/head.html.template
@@ -1,9 +1,9 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="%VIRT_ROOT%/assets/fonts/fonts.min.css" rel="stylesheet" type="text/css">
<link href="%VIRT_ROOT%/assets/css/gruvbox.css" rel="stylesheet" type="text/css">
-<link href="%VIRT_ROOT%/assets/css/jquery.mCustomScrollbar.min.css" rel="stylesheet" type="text/css">
-<script src="%VIRT_ROOT%/assets/js/jquery.min.js"></script>
-<script src="%VIRT_ROOT%/assets/js/jquery.mCustomScrollbar.min.js"></script>
+<script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.4/jquery.min.js"></script>
+<link href="https://cdn.bootcdn.net/ajax/libs/simplebar/6.2.5/simplebar.css" rel="stylesheet">
+<script src="https://cdn.bootcdn.net/ajax/libs/simplebar/6.2.5/simplebar.js"></script>
<link href="%VIRT_ROOT%/assets/css/cgit.css" rel="stylesheet" type="text/css">
<script>
function go_responsive() {
@@ -40,15 +40,7 @@ function wrap_fat_elements() {
"table.diffstat, table.diff, table.list, table.stats, " +
"table.vgraph, table.hgraph, table.blame"
).wrap("<div class='table-wrap'></div>");
- $('.table-wrap, pre.literal-block').mCustomScrollbar({
- axis: 'x',
- theme: 'minimal',
- autoHideScrollbar: true,
- autoDraggerLength: true,
- scrollInertia: 100,
- mouseWheel: { enable: true, axis: 'x' },
- documentTouchScroll: true
- });
+ $('.table-wrap, pre.literal-block').each((index, el) => new SimpleBar(el));
}
$(function() {
@@ -56,3 +48,9 @@ $(function() {
wrap_fat_elements();
});
</script>
+<style>
+.simplebar-scrollbar::before {
+ background-color: grey;
+ height: 4px;
+}
+</style>