Skip to content

Commit

Permalink
Merge pull request #6 from viivue/0.0.5
Browse files Browse the repository at this point in the history
Release v0.0.5
  • Loading branch information
phucbm authored Aug 31, 2022
2 parents f7b163d + 40ba6ae commit 96f1e53
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 13 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Easy Popup v0.0.4
# Easy Popup v0.0.5

Super light-weight JavaScript library to create a simple popup with mobile layout.

Expand Down Expand Up @@ -35,7 +35,8 @@ Init with HTML attributes
<div data-easy-popup="demo"
data-easy-popup-mobile="true"
data-easy-popup-title="Popup title"
data-easy-popup-theme="my-style">
data-easy-popup-theme="my-style"
data-easy-popup-click-outside-to-close="false">
<p>Your content.</p>
</div>
```
Expand All @@ -51,6 +52,8 @@ EasyPopup.init('.popup', {
closeButtonHTML: '<span>Click to close</span>', // set custom HTML for close button
outerClass: 'my-popup', // custom class for popup
theme: 'default', // to create multiple themes
clickOutsideToClose: true, // true by default
keyboard: true, // to close the popup by keyboard (ESC)
onOpen: data => {
},
onClose: data => {
Expand Down
2 changes: 1 addition & 1 deletion dist/easy-popup.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/easy-popup.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Easy Popup v0.0.4</title>
<title>Easy Popup v0.0.5</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Nunito:wght@400;700&display=swap" rel="stylesheet">
Expand Down Expand Up @@ -39,7 +39,7 @@


<div class="container">
<h1>Easy Popup v0.0.4</h1>
<h1>Easy Popup v0.0.5</h1>
<p>Click here to <a href="#demo-1">open popup 1</a>.</p>
<p>Or here
<button data-easy-popup-toggle="demo-1">Open popup 1</button>
Expand Down Expand Up @@ -93,7 +93,8 @@ <h1>Easy Popup v0.0.4</h1>
iaculis. Inceptos pulvinar scelerisque duis facilisi elementum suscipit viverra ante velit litora. Viverra
ornare urna mi fames bibendum enim nunc neque et nostra placerat.
</p>
<div data-easy-popup="demo-1" data-easy-popup-title="Demo 1" data-easy-popup-theme="right-side">
<div data-easy-popup="demo-1" data-easy-popup-title="Demo 1" data-easy-popup-theme="right-side"
data-easy-popup-click-outside-to-close="false">
<h2>Demo 1</h2>
<p>Click here to <a href="#demo-2">open popup 2</a>.</p>
<p>
Expand Down
2 changes: 1 addition & 1 deletion src/easy-popup.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Easy Popup v0.0.4
* Easy Popup v0.0.5
* https://github.com/viivue/easy-popup
*/
/* master */
Expand Down
Loading

0 comments on commit 96f1e53

Please sign in to comment.