chore: remove the cdn script (#341).

This commit is contained in:
jaywcjlove 2022-03-10 11:44:04 +08:00
parent 432b3abb4f
commit b7095693ac
1 changed files with 3 additions and 1 deletions

View File

@ -1,7 +1,9 @@
<%- include('partial/header'); %> <%- include('partial/header'); %>
<%- include('widget/search',{type: "list"}); %> <%- include('widget/search',{type: "list"}); %>
<script src="https://unpkg.com/@uiw/copy-to-clipboard/dist/copy-to-clipboard.umd.js"></script>
<script> <script>
/*! @uiw/copy-to-clipboard v1.0.12 | MIT (c) 2021 Kenny Wang | https://github.com/uiwjs/copy-to-clipboard.git */
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).copyTextToClipboard=t()}(this,(function(){"use strict";return function(e,t){const o=document.createElement("textarea");o.value=e,o.setAttribute("readonly",""),o.style={position:"absolute",left:"-9999px"},document.body.appendChild(o);const n=document.getSelection().rangeCount>0&&document.getSelection().getRangeAt(0);o.select();let c=!1;try{c=!!document.execCommand("copy")}catch(e){c=!1}document.body.removeChild(o),n&&document.getSelection&&(document.getSelection().removeAllRanges(),document.getSelection().addRange(n)),t&&t(c)}}));
function copied(target, str) { function copied(target, str) {
target.classList.add('active'); target.classList.add('active');
copyTextToClipboard(target.dataset.code, function() { copyTextToClipboard(target.dataset.code, function() {