Libraryless. Click here for Pure Java version (2769L/18K).
1 | // see https://github.com/JamieLivingstone/styled-notifications |
2 | sS hNotificationPopups() {
|
3 | ret hStylesheetSnippet_maxCache(#1029723) |
4 | + hjssnippet_maxCache(#1029726) |
5 | + hjs([[ |
6 | function successNotification(text) {
|
7 | window.createNotification({ theme: 'success', showDuration: 3000 })({ message: text });
|
8 | } |
9 | |
10 | function errorNotification(text) {
|
11 | window.createNotification({ theme: 'error', showDuration: 3000 })({ message: text });
|
12 | } |
13 | ]]); |
14 | } |
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1029728 |
| Snippet name: | hNotificationPopups |
| Eternal ID of this version: | #1029728/4 |
| Text MD5: | 0fafc6bfc65f5620768dc14b4f3d4bfb |
| Transpilation MD5: | 3bc803df8a6d0e3ee5fce97c35a38f05 |
| Author: | stefan |
| Category: | javax / web |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2020-11-20 12:48:25 |
| Source code size: | 504 bytes / 14 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 408 / 539 |
| Version history: | 3 change(s) |
| Referenced in: | [show references] |