Skip to content

Commit

Permalink
docs: update all examples to 5.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Dabolus committed Aug 15, 2023
1 parent da6a067 commit b60fb7b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,16 @@ If you just want to directly include the script without installing it as a depen

```html
<!-- Main component -->
<script type="module" src="https://unpkg.com/[email protected].0?module"></script>
<script type="module" src="https://unpkg.com/[email protected].1?module"></script>
<!-- Single share target -->
<script
type="module"
src="https://unpkg.com/[email protected].0/targets/email.js?module"
src="https://unpkg.com/[email protected].1/targets/email.js?module"
></script>
<!-- Share target preset -->
<script
type="module"
src="https://unpkg.com/[email protected].0/targets/presets/all.js?module"
src="https://unpkg.com/[email protected].1/targets/presets/all.js?module"
></script>
```

Expand All @@ -70,7 +70,7 @@ Try copy-pasting this code on your browser's console in any website:
var a = document.createElement('script');
a.type = 'module';
a.textContent =
'import"https://unpkg.com/[email protected].0?module";import"https://unpkg.com/[email protected].0/targets/presets/all.js?module";var b=document.createElement("share-menu"),c=document.createElement("share-target-preset-all");b.appendChild(c),document.body.appendChild(b),b.share();';
'import"https://unpkg.com/[email protected].1?module";import"https://unpkg.com/[email protected].1/targets/presets/all.js?module";var b=document.createElement("share-menu"),c=document.createElement("share-target-preset-all");b.appendChild(c),document.body.appendChild(b),b.share();';
document.head.appendChild(a);
```

Expand Down
4 changes: 2 additions & 2 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,8 @@ <h3>&lt;share-menu&gt; demo</h3>
import 'https://unpkg.com/@material/[email protected]/switch/switch.js?module';
import 'https://unpkg.com/@material/[email protected]/button/filled-button.js?module';
import 'https://unpkg.com/@material/[email protected]/icon/icon.js?module';
import 'https://unpkg.com/[email protected].0/share-menu.js?module';
import 'https://unpkg.com/[email protected].0/targets/presets/all.js?module';
import 'https://unpkg.com/[email protected].1/share-menu.js?module';
import 'https://unpkg.com/[email protected].1/targets/presets/all.js?module';
<\/script>
`.replace(/ {12}/g, '');

Expand Down

0 comments on commit b60fb7b

Please sign in to comment.