2.0.5 • Published 2 years 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
2 years ago
2.0.2
2 years ago
2.0.5
2 years ago
2.0.4
2 years ago
2.0.1
2 years ago
2.0.0
2 years ago
1.1.7
2 years ago
1.1.5
2 years ago
1.1.1
3 years ago
1.1.0
3 years ago
1.1.4
2 years ago
1.1.3
2 years ago
1.1.2
3 years ago
1.0.8
3 years ago
1.0.7
3 years ago
1.0.6
3 years ago
1.0.5
3 years ago
1.0.4
3 years ago
1.0.3
3 years ago
1.0.2
3 years ago
1.0.1
3 years ago