Sha256: bd8242b813538a856f2b85a607424b62c9daf513450e6d6c4db342c8bc9ede3d

Contents?: true

Size: 527 Bytes

Versions: 10

Compression:

Stored size: 527 Bytes

Contents

module BivouacSample::Views
  def sound
    html do
      head do
        javascript_include_tag :defaults
      end
      body do
        h1 "Sound"
        a "play sound (parallel)", :href => "#", :onclick => play_sound_js( "sound/sword.mp3" ); br
        a "play sound (overwrite)", :href => "#", :onclick => play_sound_js( "sound/sword.mp3", :replace => true ); br
        a "Mute", :href => "#", :onclick => disable_sound_js
        a "Enable sounds", :href => "#", :onclick => enable_sound_js
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
bivouac-0.1.5 examples/bivouac_sample/app/views/sound.rb
bivouac-0.1.6 examples/bivouac_sample/app/views/sound.rb
bivouac-0.2.0 examples/bivouac_sample/app/views/sound.rb
bivouac-0.2.2 examples/bivouac_sample/app/views/sound.rb
bivouac-0.2.1 examples/bivouac_sample/app/views/sound.rb
bivouac-0.2.3 examples/bivouac_sample/app/views/sound.rb
bivouac-0.4.0 examples/bivouac_sample/app/views/sound.rb
bivouac-0.2.4 examples/bivouac_sample/app/views/sound.rb
bivouac-0.3.0 examples/bivouac_sample/app/views/sound.rb
bivouac-0.2.5 examples/bivouac_sample/app/views/sound.rb