Libraryless. Click here for Pure Java version (2769L/18K).
// see https://github.com/JamieLivingstone/styled-notifications sS hNotificationPopups() { ret hStylesheetSnippet_maxCache(#1029723) + hjssnippet_maxCache(#1029726) + hjs([[ function successNotification(text) { window.createNotification({ theme: 'success', showDuration: 3000 })({ message: text }); } function errorNotification(text) { window.createNotification({ theme: 'error', showDuration: 3000 })({ message: text }); } ]]); }
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: | 194 / 288 |
Version history: | 3 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |