mirror of
https://github.com/eosswedenorg/apt
synced 2026-06-16 04:34:56 +02:00
Build assets.
This commit is contained in:
parent
db291a87df
commit
b54be6df63
1 changed files with 1 additions and 0 deletions
1
assets/scripts.js
Normal file
1
assets/scripts.js
Normal file
|
|
@ -0,0 +1 @@
|
|||
anchors.add(),$(document).ready(function(){$(".highlight > pre").each(function(t){if(!$(this).parent().hasClass("no-select-button")){var e="codeblock"+(t+1);$(this).find("code").attr("id",e);var i=document.createElement("a");i.setAttribute("type","button"),i.setAttribute("class","btn btn-copy-code"),i.setAttribute("data-clipboard-target","#"+e),i.innerHTML='<i class="far fa-file-code fa-2x"></i>',this.insertBefore(i,this.firstChild),tippy(i,{trigger:"manual",content:"Copied!",placement:"left"})}}),new ClipboardJS(".btn-copy-code").on("success",function(t){var e=t.trigger._tippy;t.clearSelection(),e.show(),setTimeout(function(){e.hide()},1e3,e)})});
|
||||
Loading…
Add table
Add a link
Reference in a new issue