---
---
var snippets=document.querySelectorAll('pre.highlight');[].forEach.call(snippets,function(snippet){snippet.firstChild.insertAdjacentHTML('beforebegin','<button class="btn" data-clipboard-snippet><img class="clippy" width="13" src="{{site.baseurl}}/assets/images/clippy.svg" alt="Copy to clipboard"><span>Copy</span></button>');});var clipboardSnippets=new Clipboard('[data-clipboard-snippet]',{target:function(trigger){return trigger.nextElementSibling;}});clipboardSnippets.on('success',function(e){e.clearSelection();showTooltip(e.trigger,'Copied to clipboard');});clipboardSnippets.on('error',function(e){showTooltip(e.trigger,fallbackMessage(e.action));});