Skip to content

Commit 4b512e5

Browse files
authored
Update Example.html
1 parent 914f3f9 commit 4b512e5

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

Example.html

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,20 @@
99
<h1>Example CopyClipboard.js</h1>
1010
<br><br>
1111
<button data-copy-text="Hello!">
12-
Click , Copy from inline text
12+
Click , Copy text
1313
</button>
1414
<br><br>
1515
<label id="label_text" style="display: none;">This is a sample!</label>
1616
<button data-copy-from="#label_text">
1717
Click , Copy from #id
1818
</button>
19+
<br><br>
20+
<button data-copy-text="5+5" onclick="copy.text(this);">
21+
Click , Copy text with onclick
22+
</button>
23+
<br><br>
24+
<button data-copy-from="#label_text" onclick="copy.from(this);">
25+
Click , Copy from #id with onclick
26+
</button>
1927
</body>
2028
</html>

0 commit comments

Comments
 (0)