Skip to content

Commit

Permalink
Update README.md and examples
Browse files Browse the repository at this point in the history
  • Loading branch information
nabeghe committed May 17, 2023
1 parent 661e659 commit bbf1b36
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ world (screen size) in order to move elements between them. 😅
Include the following `<script>` tag in the `<head>` of your document, just before Alpine.

```html
<script src="https://cdn.jsdelivr.net/gh/nabeghe/[email protected].1/dist/alpine-portal.min.js" defer></script>
<script src="https://cdn.jsdelivr.net/gh/nabeghe/[email protected].x/dist/alpine-portal.min.js" defer></script>
```

### NPM
Expand Down Expand Up @@ -83,10 +83,10 @@ If we were to use -640, it would mean that it should be smaller than or equal to

## Changes

- v0.2.0
- v0.2.x
- Instead of using the resize event in the window, matchMedia was used. Thanks to ekvoka [#1](https://github.com/nabeghe/alpine-portal/issues/1).
- `x-portal:is` has been removed, and from now on, it can be specified within `x-portal:screen` itself.
- v0.1.0
- v0.1.x
- Initial release

## License
Expand Down
4 changes: 2 additions & 2 deletions examples/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@

<div x-data id="div1" style="background: #E91E63; padding: 5px;">
<h2>Div 1</h2>
<div x-portal="#div2" x-portal:screen="640" x-portal:is="true">
<div x-portal="#div2" x-portal:screen="640">
lorem ipsum dolor sit amet, consectetur adipisicing elit
</div>
</div>

<div x-data id="div2" style="background: #8BC34A; padding: 5px;">
<div x-data id="div2" style="background: #8BC34A; padding: 5px;">
<h2>Div 2</h2>
</div>

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "alpine-portal",
"version": "0.2.2",
"version": "0.2.3",
"description": "x-portal directive for alpine to moving elements between different points based on the screen size.",
"main": "src/index.js",
"scripts": {
Expand Down

0 comments on commit bbf1b36

Please sign in to comment.