-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtestclip.html
99 lines (94 loc) · 4.92 KB
/
testclip.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<title>ZeroClipboard</title>
<meta name="description" content="Copy to clipboard html browser.">
<link rel="stylesheet" href="stylesheets/styles.css">
<link rel="stylesheet" href="stylesheets/pygment_trac.css">
<script type="text/javascript" src="javascripts/scale.fix.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<!--[if lt IE 9]>
<script type="text/javascript" src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body>
<div class="wrapper">
<header>
<h2 class="header">ZeroClipboard</h2>
<p class="header">The ZeroClipboard library provides an easy way to copy text to the clipboard using an invisible Adobe Flash movie and a JavaScript interface. The "Zero" signifies that the library is invisible and the user interface is left entirely up to you.</p>
<ul>
<li class="download"><a class="buttons" href="#">ZIP</a></li>
<li><a class="buttons github" href="https://github.com/zeroclipboard/ZeroClipboard">View On GitHub</a></li>
</ul>
</header>
<section>
<h1>ZeroClipboard</h1>
<div>The ZeroClipboard library provides an easy way to copy text to the clipboard using an invisible <a href="http://en.wikipedia.org/wiki/Adobe_Flash">Adobe Flash</a> movie and a <a href="http://en.wikipedia.org/wiki/JavaScript">JavaScript</a> interface. The "Zero" signifies that the library is invisible and the user interface is left entirely up to you.</div>
<h3>Testing this page locally</h3>
<div>To test this page locally, checkout the <code>gh-pages</code> branch and run <code>make</code> to open <a href="http://localhost:3000/">localhost:3000</a></div>
<h3>Demo</h3>
<div>
<div><strong>Browser:</strong> <script type="text/javascript">document.write(navigator.userAgent);</script></div>
<div><strong>Current config:</strong> <span id="current-demo-config">???</span></div>
<div>
<strong>Choose config:</strong>
<!--
IMPORTANT!!!
The version numbers listed in the following `demo-version` select menu control the actual script and SWF version
targeting (see "boot.js"). This is the only place you need to change the version numbers!
Double-check that the current stable release is marked as the only `option` with the `selected` attribute.
-->
<select id="demo-version">
<option>git:master</option>
<option selected="selected">v1.3.2</option>
<option>v1.3.1</option>
<option>v1.3.0</option>
<option>v1.2.3</option>
<option>v1.2.2</option>
<option>v1.2.1</option>
<option>v1.2.0</option>
<option>v1.1.7</option>
</select>
<select id="demo-type">
<option value="traditional" selected="selected">Traditional</option>
<option value="amd">AMD</option>
<option value="commonjs" disabled="disabled">CommonJS</option>
</select>
<button id="boot" type="button">Boot!</button>
</div>
<div class="demo-area">
<h4><label for="fe_text">Text to Copy:</label></h4>
<textarea id="fe_text" cols="50" rows="3">Copy me!</textarea>
<p><button id="d_clip_button" class="my_clip_button" title="Click me to copy to clipboard." data-clipboard-target="fe_text" data-clipboard-text="Default clipboard text from attribute"><b>Copy To Clipboard...</b></button></p>
<h4><label for="testarea">Paste Here:</label></h4>
<textarea id="testarea" cols="50" rows="3"></textarea>
<p><button id="clear-test">Clear Test Area</button></p>
</div>
<h4>Debug Console:</h4>
<div id="d_debug"></div>
</div>
</section>
<footer>
<p><small>Hosted on <a href="https://pages.github.com">GitHub Pages</a> using the Dinky theme</small></p>
</footer>
</div>
<!--[if !IE]><script type="text/javascript">fixScale(document);</script><!--<![endif]-->
<script type="text/javascript" src="javascripts/vendor/jquery.min.js"></script>
<script type="text/javascript" src="javascripts/boot.js"></script>
<script type="text/javascript">
var _gauges = _gauges || [];
(function() {
var t = document.createElement('script');
t.type = 'text/javascript';
t.async = true;
t.id = 'gauges-tracker';
t.setAttribute('data-site-id', '501d5697f5a1f502f2000057');
t.src = '//secure.gaug.es/track.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(t, s);
})();
</script>
</body>
</html>