-
Notifications
You must be signed in to change notification settings - Fork 1
/
Example.html
32 lines (32 loc) · 857 Bytes
/
Example.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<title>Example CopyClipboard.js</title>
<meta charset="utf-8">
<script type="text/javascript" src="CopyClipboard.min.js"></script>
</head>
<body>
<h1>Example CopyClipboard.js</h1>
<br><br>
<button data-copy-text="Hello!">
Click , Copy text
</button>
<br><br>
<label id="label_text" style="display: none;">This is a sample!</label>
<button data-copy-from="#label_text">
Click , Copy from #id
</button>
<br><br>
<button data-copy-text="5+5" onclick="copy.text(this);">
Click , Copy text with onclick
</button>
<br><br>
<button data-copy-from="#label_text" onclick="copy.from(this);">
Click , Copy from #id with onclick
</button>
<br><br>
<button onclick="copy.copy_text('Hello my friend!');">
Click , Copy text with onclick
</button>
</body>
</html>