fix classes, status wasn't updating
This commit is contained in:
parent
ce0bdc46a9
commit
e193d50efd
@ -19,10 +19,10 @@ body
|
||||
@include span(18%)
|
||||
|
||||
.mom_view
|
||||
@include span(18%)
|
||||
@include span(20%)
|
||||
|
||||
.risc_view
|
||||
@include span(18%)
|
||||
@include span(24%)
|
||||
|
||||
.status_view
|
||||
@include span(14%)
|
||||
@ -79,12 +79,11 @@ body
|
||||
background-color: #009900
|
||||
|
||||
|
||||
.bright
|
||||
.risc_bright , .mom_bright
|
||||
padding-right: 6px
|
||||
padding-left: 6px
|
||||
background-color: #00E3FF
|
||||
-moz-border-radius: 7px
|
||||
-webkit-border-radius: 7px
|
||||
border-radius: 7px
|
||||
|
||||
|
||||
.fade_in
|
||||
|
@ -12,7 +12,7 @@ class MomView < ListView
|
||||
end
|
||||
|
||||
def start_view
|
||||
ConstantView.new( "span.bright" , "starting" )
|
||||
ConstantView.new( "span.mom_bright" , "starting" )
|
||||
end
|
||||
|
||||
def instruction_changed
|
||||
|
@ -11,12 +11,12 @@ class RiscView < ListView
|
||||
end
|
||||
|
||||
def start_view
|
||||
ConstantView.new( "span.bright" , "starting" )
|
||||
ConstantView.new( "span.risc_bright" , "starting" )
|
||||
end
|
||||
|
||||
def instruction_changed
|
||||
@element.at_css(".bright").remove_class("bright")
|
||||
instruction = append_view( ConstantView.new( "span.bright" , instruction_text ) )
|
||||
@element.at_css(".risc_bright").remove_class("risc_bright")
|
||||
instruction = append_view( ConstantView.new( "span.risc_bright" , instruction_text ) )
|
||||
wrap_node_with instruction , div
|
||||
remove_first if( @elements.length > 6)
|
||||
end
|
||||
|
@ -49,7 +49,7 @@ class StatusView < ElementView
|
||||
def update
|
||||
@interpreter.tick
|
||||
@element.at_css(".clock").text = clock_text
|
||||
@element.at_css(".state").text = state_text
|
||||
@element.at_css(".header_state").text = state_text
|
||||
@element.at_css(".flags").text = flags_text
|
||||
@element.at_css(".stdout").text = @interpreter.stdout
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user