What I would like to do is register a custom event in Javascript (I'm working with Html + Css + Javascript + jQuery)
But this "custom event" is not a predefined event. What I'm looking for is something like this:
document.addEventListener($(#div1).css("width") == "35px" (OR, another example condition:) $(#div1).css("left") == "20px" (OR, another example condition:) $(#div1).css("color") == "#FF0000", function(););
Is this possible?. How is the correct syntax?, inside and if? I mean: document.addEventListener(if ($(#div1).css("width") == "35px"), function(););
I have no idea of how get this "customized daemon" working!.