mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-08-07 23:03:00 +03:00
Improved code pasting experience. Fixes #6
This commit is contained in:
@@ -62,6 +62,7 @@
|
||||
header.smoothScrollTo();
|
||||
})
|
||||
});
|
||||
$('.side-nav').fadeIn();
|
||||
} else {
|
||||
$('.side-nav').hide();
|
||||
}
|
||||
@@ -93,4 +94,15 @@
|
||||
//$('[data-toggle="popover"]').popover()
|
||||
});
|
||||
</script>
|
||||
|
||||
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.7/styles/solarized_light.min.css">
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.7/highlight.min.js"></script>
|
||||
<script>
|
||||
window.onload = function() {
|
||||
var aCodes = document.getElementsByTagName('pre');
|
||||
for (var i=0; i < aCodes.length; i++) {
|
||||
hljs.highlightBlock(aCodes[i]);
|
||||
}
|
||||
};
|
||||
</script>
|
||||
@stop
|
||||
|
Reference in New Issue
Block a user