Fix documentation
parent
248db40b75
commit
6df84bc649
|
@ -18,8 +18,8 @@ Observe the live demo here: [shareon.js.org](https://shareon.js.org)
|
||||||
Include the link to shareon's JS and CSS in your website:
|
Include the link to shareon's JS and CSS in your website:
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<link href="https://cdn.jsdelivr.net/npm/shareon@1.3/dist/shareon.min.css" rel="stylesheet">
|
<link href="https://cdn.jsdelivr.net/npm/shareon@1/dist/shareon.min.css" rel="stylesheet">
|
||||||
<script src="https://cdn.jsdelivr.net/npm/shareon@1.3/dist/shareon.min.js" type="text/javascript"></script>
|
<script src="https://cdn.jsdelivr.net/npm/shareon@1/dist/shareon.min.js" type="text/javascript"></script>
|
||||||
```
|
```
|
||||||
|
|
||||||
or install it via NPM use it in a JS file that you will bundle:
|
or install it via NPM use it in a JS file that you will bundle:
|
||||||
|
@ -55,8 +55,8 @@ want the buttons to be initialized:
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<!-- notice the 'noinit' section of the url for JS -->
|
<!-- notice the 'noinit' section of the url for JS -->
|
||||||
<link href="https://cdn.jsdelivr.net/npm/shareon@1.3/dist/noinit/shareon.min.css" rel="stylesheet">
|
<link href="https://cdn.jsdelivr.net/npm/shareon@1/dist/shareon.min.css" rel="stylesheet">
|
||||||
<script src="https://cdn.jsdelivr.net/npm/shareon@1.3/dist/shareon.min.js" type="text/javascript"></script>
|
<script src="https://cdn.jsdelivr.net/npm/shareon@1/dist/noinit/shareon.min.js" type="text/javascript"></script>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
// do something important
|
// do something important
|
||||||
|
|
|
@ -103,9 +103,9 @@
|
||||||
Include the link to shareon's JS and CSS in your website:
|
Include the link to shareon's JS and CSS in your website:
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<pre><code><link href="https://cdn.jsdelivr.net/npm/shareon@1.3/dist/shareon.min.css"
|
<pre><code><link href="https://cdn.jsdelivr.net/npm/shareon@1/dist/shareon.min.css"
|
||||||
rel="stylesheet">
|
rel="stylesheet">
|
||||||
<script src="https://cdn.jsdelivr.net/npm/shareon@1.3/dist/shareon.min.js"
|
<script src="https://cdn.jsdelivr.net/npm/shareon@1/dist/shareon.min.js"
|
||||||
type="text/javascript"></script></code></pre>
|
type="text/javascript"></script></code></pre>
|
||||||
|
|
||||||
<p>or install it via NPM and use it in a JS file that you will later bundle:</p>
|
<p>or install it via NPM and use it in a JS file that you will later bundle:</p>
|
||||||
|
@ -137,9 +137,9 @@ shareon();</code></pre>
|
||||||
buttons to be initialized:
|
buttons to be initialized:
|
||||||
</p>
|
</p>
|
||||||
<pre><code><!-- notice the 'noinit' section of the url for JS -->
|
<pre><code><!-- notice the 'noinit' section of the url for JS -->
|
||||||
<script src="https://cdn.jsdelivr.net/npm/shareon@1.3/dist/shareon.min.js"
|
<script src="https://cdn.jsdelivr.net/npm/shareon@1/dist/noinit/shareon.min.js"
|
||||||
type="text/javascript"></script>
|
type="text/javascript"></script>
|
||||||
<link href="https://cdn.jsdelivr.net/npm/shareon@1.3/dist/shareon.min.css"
|
<link href="https://cdn.jsdelivr.net/npm/shareon@1/dist/shareon.min.css"
|
||||||
rel="stylesheet">
|
rel="stylesheet">
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
@ -271,7 +271,7 @@ shareon();</code></pre>
|
||||||
</p>
|
</p>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
<link href="https://cdn.jsdelivr.net/npm/shareon@1.3/dist/shareon.min.css" rel="stylesheet">
|
<link href="https://cdn.jsdelivr.net/npm/shareon@1/dist/shareon.min.css" rel="stylesheet">
|
||||||
<script src="https://cdn.jsdelivr.net/npm/shareon@1.3/dist/shareon.min.js" type="text/javascript"></script>
|
<script src="https://cdn.jsdelivr.net/npm/shareon@1/dist/shareon.min.js" type="text/javascript"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in New Issue