There was an error while loading. Please reload this page.
1 parent 914f3f9 commit 4b512e5Copy full SHA for 4b512e5
Example.html
@@ -9,12 +9,20 @@
9
<h1>Example CopyClipboard.js</h1>
10
<br><br>
11
<button data-copy-text="Hello!">
12
-Click , Copy from inline text
+Click , Copy text
13
</button>
14
15
<label id="label_text" style="display: none;">This is a sample!</label>
16
<button data-copy-from="#label_text">
17
Click , Copy from #id
18
19
+<br><br>
20
+<button data-copy-text="5+5" onclick="copy.text(this);">
21
+Click , Copy text with onclick
22
+</button>
23
24
+<button data-copy-from="#label_text" onclick="copy.from(this);">
25
+Click , Copy from #id with onclick
26
27
</body>
28
</html>
0 commit comments