This is list of first party plugins for Aliveforms.
- NewAlert Notification Library
- Version 1.0
- Written by Nabeel Ali
This is to add new JS Popups.
In local logic unit, at boot or screen -1, at this code
$.ImportScript('https://cdn.jsdelivr.net/gh/nabeelalihashmi/aliveformsplugins@master/js/PNewAlert.min.js', function() {
window.newAlert = window.newAlert || new PNewAlert();
window.newAlert.init();
});
Once Initialized, it can be used in next logic units as:
window.newAlert.alert(message, default|success|danger, timeout)
- Speaker Notification Library
- Version 1.0
- Written by Nabeel Ali
Add text to speech in Aliveforms
In local logic unit, at boot or screen -1, at this code
$.ImportScript('https://cdn.jsdelivr.net/gh/nabeelalihashmi/aliveformsplugins@master/js/PSpeaker.min.js', function() {
window.speaker = window.speaker || new PSpeaker();
});
Once Initialized, it can be used in next logic units as:
window.speaker.speak(message)
for example
setTimeout(() => window.speaker.speak($.ScreenTitle(screen + 1)), 500)
screen + 1
is because logic in executed after next button is clicked.
Or you can use snippet syntax in every screen. i.e. [/ window.speaker.speak($.ScreenTitle(screen + 1)) /]
It is recommended to wrap in in setTimeout
depending upon transition duration of screen.