mirror of
https://github.com/zenorocha/clipboard.js.git
synced 2023-08-10 21:12:48 +03:00
Add "copy to clipboard" buttons in all demos #68
This commit is contained in:
parent
39f7cda714
commit
9bf6bf6136
@ -87,7 +87,7 @@ allowtransparency="true" frameborder="0" scrolling="0" width="156" height="30"><
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<pre><code class="html"><!-- Target -->
|
||||
<pre class="snippet"><code class="html"><!-- Target -->
|
||||
<input id="foo" value="https://github.com/zenorocha/clipboard.js.git">
|
||||
|
||||
<!-- Trigger -->
|
||||
@ -111,7 +111,7 @@ allowtransparency="true" frameborder="0" scrolling="0" width="156" height="30"><
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<pre><code class="html"><!-- Target -->
|
||||
<pre class="snippet"><code class="html"><!-- Target -->
|
||||
<textarea id="bar">Mussum ipsum cacilds...</textarea>
|
||||
|
||||
<!-- Trigger -->
|
||||
@ -129,7 +129,7 @@ allowtransparency="true" frameborder="0" scrolling="0" width="156" height="30"><
|
||||
<button class="btn" data-clipboard-action="copy" data-clipboard-text="Just because you can doesn't mean you should — clipboard.js">Copy to clipboard</button>
|
||||
</div>
|
||||
|
||||
<pre><code class="html"><!-- Trigger -->
|
||||
<pre class="snippet"><code class="html"><!-- Trigger -->
|
||||
<button class="btn" data-clipboard-text="Just because you can doesn't mean you should — clipboard.js">
|
||||
Copy to clipboard
|
||||
</button></code></pre>
|
||||
|
Loading…
x
Reference in New Issue
Block a user