2.0.5 • Published 5 months ago
@aamasri/popup v2.0.5
- Download & copy this package's "dist" folder into your web server's public folder eg.
public/js/dist/*
. - Rename "dist" to "popup" eg.
public/js/popup
- Load the popup script at the end of your web page (before the closing
body
tag) like this:
<body>
...
<script src="/js/popup/popup.mjs"></script>
</body>
</html>
When the browser loads, popup will be attached to the browser's global window object. Use it anywhere in your scripts like this:
<button>Target</button>
<script>
popup.open(); // Display the popup cheat sheet
...
popup.closeLast(); // close the on-top popup
...
popup.closeAll();
</script>
Then import and use it in your project's ES6 modules:
function helloWorld() { popup.open({ title: 'Greetings', source: 'Hello World' }); }
Popup supports npm under the name @aamasri/popup
.
Publishing Updates
- Ananda Masri
- And awesome contributors
2.0.3
5 months ago
2.0.2
5 months ago
2.0.5
5 months ago
2.0.4
5 months ago
2.0.1
5 months ago
2.0.0
5 months ago
1.1.7
1 year ago
1.1.5
1 year ago
1.1.1
1 year ago
1.1.0
1 year ago
1.1.4
1 year ago
1.1.3
1 year ago
1.1.2
1 year ago
1.0.8
1 year ago
1.0.7
1 year ago
1.0.6
1 year ago
1.0.5
1 year ago
1.0.4
1 year ago
1.0.3
1 year ago
1.0.2
1 year ago
1.0.1
1 year ago