Sha256: 58e26c01801aa7eae052d9e3c139b2ece17287126616c394c7cb548faef32290
Contents?: true
Size: 1.32 KB
Versions: 24
Compression:
Stored size: 1.32 KB
Contents
- unit = u = 50 # pixels per dollar - grid_size = 100 # dollars to each side of origin .purses-gameui.padded = render '/iro/purses/header', purse: @purse - @positions.each_with_index do |position, idx| .CoordinatesW .Origin .Coordinates -# .Coordinates{ style: "left: #{ (position.inner_strike - position.stock.last) * u }px" } .grid-mark.mark0.origin .label Begin strike: = position.inner_strike - (1...grid_size).each_with_index do |idx| .grid-mark{ class: "mark#{idx}", style: "left: #{idx * u}px" } .label = position.inner_strike + idx .grid-mark{ class: "mark-#{idx}", style: "left: -#{idx * u}px" } .label = position.inner_strike - idx .Net{ style: "width: #{ (position.net_amount / 100) * u }px" } .label Net: = pp_amount position.net_amount .marker.sprite-bottom.Breakeven{ style: "width: #{ (position.begin_inner_price) * u }px" } .half-circle .label.hide Breakeven: = position.inner_strike + position.begin_inner_price .marker.Last{ style: "left: #{ (position.stock.last - position.inner_strike) * u }px" } .label Last: = position.stock.last %br %br
Version data entries
24 entries across 24 versions & 1 rubygems