Add copy clipboard to base
This commit is contained in:
parent
e46775301c
commit
69d23fded4
3 changed files with 29 additions and 1 deletions
|
@ -6,7 +6,6 @@
|
|||
|
||||
{% block js_media %}
|
||||
{% compress js %}
|
||||
<script src="{{ static('libs/clipboard/clipboard.js') }}"></script>
|
||||
<script type="text/javascript">
|
||||
$(function () {
|
||||
var info_float = $('.info-float');
|
||||
|
@ -23,6 +22,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
// TODO: remove this
|
||||
var copyButton;
|
||||
$('pre code').each(function () {
|
||||
$(this).parent().before($('<div>', {'class': 'copy-clipboard'})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue