Sha256: 4c727c9426cda249546c0c363582f29396cdb1e45199f04e48dd7fb3efd0ab20

Contents?: true

Size: 482 Bytes

Versions: 81

Compression:

Stored size: 482 Bytes

Contents

#  frozen_string_literal: true

b = box({ left: 666, color: :blue, smooth: 6, id: :the_box2 })
b.over(true) do
  b.color(:black)
  # puts "I'm inside"
end
b.over(:enter) do
  puts "in"
  puts "enter"
  b.width= b.width+30
  # alert :in
  b.color(:yellow)
end
b.over(:leave) do
  b.height= b.height+10
  puts "out"
  puts "leave"
  # alert :out
  b.color(:orange)
end

#
t=b.text('touch me to stop over leave')
b.touch(true) do
  b.over({ remove: :enter })
  t.data('finished')
end

Version data entries

81 entries across 81 versions & 1 rubygems

Version Path
atome-0.5.6.5.4 vendor/assets/application/examples/over.rb
atome-0.5.6.5.1 vendor/assets/application/examples/over.rb
atome-0.5.6.4.8 vendor/assets/application/examples/over.rb
atome-0.5.6.4.5 vendor/assets/application/examples/over.rb
atome-0.5.6.4.2 vendor/assets/application/examples/over.rb
atome-0.5.6.4.1 vendor/assets/application/examples/over.rb
atome-0.5.6.4.0 vendor/assets/application/examples/over.rb
atome-0.5.6.3.9 vendor/assets/application/examples/over.rb
atome-0.5.6.3.6 vendor/assets/application/examples/over.rb
atome-0.5.6.3.5 vendor/assets/application/examples/over.rb
atome-0.5.6.3.1 vendor/assets/application/examples/over.rb
atome-0.5.6.3.0 vendor/assets/application/examples/over.rb
atome-0.5.6.2.9 vendor/assets/application/examples/over.rb
atome-0.5.6.2.7 vendor/assets/application/examples/over.rb
atome-0.5.6.2.5 vendor/assets/application/examples/over.rb
atome-0.5.6.2.4 vendor/assets/application/examples/over.rb
atome-0.5.6.2.3 vendor/assets/application/examples/over.rb
atome-0.5.6.2.1 vendor/assets/application/examples/over.rb
atome-0.5.6.2.0 vendor/assets/application/examples/over.rb
atome-0.5.6.1.9 vendor/assets/application/examples/over.rb