30.09.2021, 07:00
(29.09.2021, 19:53)Nir70 Wrote:(29.09.2021, 06:12)admin Wrote:Code:$(function(){
if (window.grp) {
var timer;
grp.listen('0/1/24', function(object) {
if (object.value) {
if (!timer) {
timer = setInterval(function() {
$('.alert').toggleClass('hide');
}, 1000);
}
}
else {
$('.alert').removeClass('hide');
clearInterval(timer);
timer = null;
}
});
};
});
Hello
I entered the script but I have a lot of error messages you can check it again thanks
? p.s my object 1/7/20 thanks
I used the script and its works fine.
do you insert the script in the custom JavaScript page: Scripting> Tools> Edit custom JavaScript
Best Regards,