CodePen

HTML

            
              <input name="output" id="X"/>
            
          
!

CSS

            
              
            
          
!

JS

            
              start = new Date()
elapsed = ->Math.round (new Date()-start)/1000

A = Bacon.fromPoll(1000,->new Bacon.Next("A:#{elapsed()}")).toProperty 'A:0'
B = Bacon.fromPoll(3000,->new Bacon.Next("B:#{elapsed()}")).toProperty('B:0').delay('5000')

X = Bacon.combineAsArray(A,B).onValue($("#X"),"val")
            
          
!
999px
Loading ..................