Method: Flammarion::Writeable::Progress#initialize

Defined in:
lib/cem/cflame/progress.rb

#initialize(name, owner) ⇒ Progress

Returns a new instance of Progress.



20
21
22
23
24
# File 'lib/cem/cflame/progress.rb', line 20

def initialize(name, owner)
  @name = name
  @owner = owner
  @owner.raw("<div id='progressBar' style='width: 100%; height: 22px; border: 1px solid #8f8f8f; background-color: #292929; border-radius: 2px; box-shadow: 0 2px 3px rgba(0, 0, 0, 0.25) inset;'><div id='progressBarInner-#{@name}' style='height: 100%; color: #fff; text-align: center; line-height: 22px; width: 0px; background-color: #0099ff;'></div></div>")
end