Add "copy to clipboard" buttons in all demos #68

This commit is contained in:
Zeno Rocha 2015-10-14 17:20:43 -07:00
parent 39f7cda714
commit 9bf6bf6136

View File

@ -87,7 +87,7 @@ allowtransparency="true" frameborder="0" scrolling="0" width="156" height="30"><
</div>
</div>
<pre><code class="html">&lt;!-- Target --&gt;
<pre class="snippet"><code class="html">&lt;!-- Target --&gt;
&lt;input id="foo" value="https://github.com/zenorocha/clipboard.js.git"&gt;
&lt;!-- Trigger --&gt;
@ -111,7 +111,7 @@ allowtransparency="true" frameborder="0" scrolling="0" width="156" height="30"><
</div>
</div>
<pre><code class="html">&lt;!-- Target --&gt;
<pre class="snippet"><code class="html">&lt;!-- Target --&gt;
&lt;textarea id="bar"&gt;Mussum ipsum cacilds...&lt;/textarea&gt;
&lt;!-- Trigger --&gt;
@ -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">&lt;!-- Trigger --&gt;
<pre class="snippet"><code class="html">&lt;!-- Trigger --&gt;
&lt;button class="btn" data-clipboard-text="Just because you can doesn't mean you should — clipboard.js"&gt;
Copy to clipboard
&lt;/button&gt;</code></pre>