mirror of
https://github.com/kognise/water.css.git
synced 2025-08-28 07:19:49 +02:00
feat: wire up copy button
This commit is contained in:
@@ -57,6 +57,11 @@
|
||||
}
|
||||
</script>
|
||||
|
||||
<script>
|
||||
// eslint-disable-next-line no-useless-escape
|
||||
window.navigator.clipboard || document.write('<script src="https://unpkg.com/clipboard-polyfill@2.8.6/dist/clipboard-polyfill.promise.js"><\/script>')
|
||||
</script>
|
||||
|
||||
<!-- Use bright favicons when the browser is in dark mode. -->
|
||||
<script type="module">
|
||||
import faviconSwitcher from 'https://unpkg.com/favicon-mode-switcher@1.0.4/dist/index.min.mjs'
|
||||
@@ -117,7 +122,8 @@
|
||||
<div id="installation">
|
||||
<header class="row version-select-snippet">
|
||||
<h3>Paste this into the <code><head></code> of your HTML:</h3>
|
||||
<button type="button" id="copy-snippet">
|
||||
<button type="button" id="copy-button">
|
||||
<span id="copy-button-feedback" class="emoji"></span>
|
||||
Copy to clipboard
|
||||
</button>
|
||||
</header>
|
||||
|
Reference in New Issue
Block a user