mirror of
https://github.com/zenorocha/clipboard.js.git
synced 2023-08-10 21:12:48 +03:00
Merge pull request #22 from mathiasbynens/patch-1
Use HTTPS where possible
This commit is contained in:
commit
fa74e67585
12
index.html
12
index.html
@ -8,8 +8,8 @@
|
||||
|
||||
<meta property="og:title" content="clipboard.js">
|
||||
<meta property="og:description" content="A modern approach to copy text to clipboard. No Flash. No dependencies. Just 2kb">
|
||||
<meta property="og:url" content="http://zenorocha.github.io/clipboard.js/">
|
||||
<meta property="og:image" content="http://zenorocha.github.io/clipboard.js/assets/images/facebook.png">
|
||||
<meta property="og:url" content="https://zenorocha.github.io/clipboard.js/">
|
||||
<meta property="og:image" content="https://zenorocha.github.io/clipboard.js/assets/images/facebook.png">
|
||||
|
||||
<link rel="icon" href="favicon.ico" type="image/x-icon">
|
||||
<link rel="stylesheet" href="bower_components/primer-css/css/primer.css">
|
||||
@ -23,9 +23,9 @@
|
||||
<h2 class="subtitle">A modern approach to copy text to clipboard</h2>
|
||||
<h2 class="subtitle">No Flash. No dependencies. Just 2kb</h2>
|
||||
<p class="gh-btns">
|
||||
<iframe src="http://ghbtns.com/github-btn.html?user=zenorocha&repo=clipboard.js&type=watch&count=true&size=large"
|
||||
<iframe src="https://ghbtns.com/github-btn.html?user=zenorocha&repo=clipboard.js&type=watch&count=true&size=large"
|
||||
allowtransparency="true" frameborder="0" scrolling="0" width="152" height="30"></iframe>
|
||||
<iframe src="http://ghbtns.com/github-btn.html?user=zenorocha&repo=clipboard.js&type=fork&count=true&size=large"
|
||||
<iframe src="https://ghbtns.com/github-btn.html?user=zenorocha&repo=clipboard.js&type=fork&count=true&size=large"
|
||||
allowtransparency="true" frameborder="0" scrolling="0" width="156" height="30"></iframe>
|
||||
</p>
|
||||
</header>
|
||||
@ -61,7 +61,7 @@ allowtransparency="true" frameborder="0" scrolling="0" width="156" height="30"><
|
||||
|
||||
<p>Internally, we need to fetch all elements that matches with your selector and attach event listeners for each one. But guess what? If you have hundreds of matches, this operation can consume a lot of memory.</p>
|
||||
|
||||
<p>For this reason we use <a href="http://stackoverflow.com/questions/1687296/what-is-dom-event-delegation">event delegation</a> which replaces multiple event listeners with just a single listener. After all, <a href="https://twitter.com/hashtag/perfmatters">#perfmatters</a>.</p>
|
||||
<p>For this reason we use <a href="https://stackoverflow.com/questions/1687296/what-is-dom-event-delegation">event delegation</a> which replaces multiple event listeners with just a single listener. After all, <a href="https://twitter.com/hashtag/perfmatters">#perfmatters</a>.</p>
|
||||
|
||||
<h1 id="usage">Usage</h1>
|
||||
|
||||
@ -223,7 +223,7 @@ clipboard.on('error', function(e) {
|
||||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
||||
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
||||
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
||||
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
||||
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
|
||||
|
||||
ga('create', 'UA-4114546-44', 'auto');
|
||||
ga('send', 'pageview');
|
||||
|
Loading…
Reference in New Issue
Block a user