03.09.2023, 09:15
Code:
$(function() {
$('.color-by-door-opacity').each(function(_, el) {
var addr = $(el).data('object');
if (addr) {
grp.listen(addr, function(obj) {
var color;
var opacityValue;
if (obj.value) {
color = '#f44236';
opacityValue = 1; // Synlig
}
else {
color = 'transparent'; // Istället för att ändra färgen till grön, gör vi den genomskinlig
opacityValue = 0; // Osynlig
}
$(el).css({'color': color, 'opacity': opacityValue}).toggleClass('blink', obj.value);
});
}
});
});
I use this script for visu an icon to blink when 1 and not be visable when 0. works well except from that my android 12 10" touch screen that runs the visu on Fully Kiosk Browser is crashing when the scripts reslut is 1, that is not happening when script result is 0.
Is this somthing with the script? Or maybe something that Fully Kiosk Browser cannot handle