From 5865097e571ca7a52e786200b3baa107b2ada6f6 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Thu, 27 Feb 2020 13:17:21 +0100 Subject: [PATCH] add clipboard.js --- layouts/partials/foot.html | 14 ++++++++++++++ static/js/clipboard.min.js | 7 +++++++ 2 files changed, 21 insertions(+) create mode 100644 layouts/partials/foot.html create mode 100644 static/js/clipboard.min.js diff --git a/layouts/partials/foot.html b/layouts/partials/foot.html new file mode 100644 index 0000000..cc5506b --- /dev/null +++ b/layouts/partials/foot.html @@ -0,0 +1,14 @@ +{{ if default true .Site.Params.GeekdocSearch }} +{{ .Scratch.Set "geekdocSearchConfig" .Site.Params.GeekdocSearchConfig }} + +{{ $searchJSFile := printf "js/%s.search.js" .Language.Lang }} +{{ $searchJS := resources.Get "js/search.js" | resources.ExecuteAsTemplate $searchJSFile . | resources.Minify }} + +{{ end }} + +{{ if default true .Site.Params.GeekdocAnchorCopy }} + + +{{ end }} diff --git a/static/js/clipboard.min.js b/static/js/clipboard.min.js new file mode 100644 index 0000000..02c549e --- /dev/null +++ b/static/js/clipboard.min.js @@ -0,0 +1,7 @@ +/*! + * clipboard.js v2.0.4 + * https://zenorocha.github.io/clipboard.js + * + * Licensed MIT © Zeno Rocha + */ +!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.ClipboardJS=e():t.ClipboardJS=e()}(this,function(){return function(n){var o={};function r(t){if(o[t])return o[t].exports;var e=o[t]={i:t,l:!1,exports:{}};return n[t].call(e.exports,e,e.exports,r),e.l=!0,e.exports}return r.m=n,r.c=o,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=0)}([function(t,e,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(){function o(t,e){for(var n=0;n