Module: ControllerActionHUD::Widget
- Defined in:
- lib/controller_action_hud/widget.rb
Defined Under Namespace
Modules: Helper
Class Method Summary collapse
Class Method Details
.css ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/controller_action_hud/widget.rb', line 5 def css <<-EOF <style type="text/css"> div#controller_action_hud { position: fixed; bottom: 0; right: 0; background-color: black; color: white; z-index: 999; padding: 4px 6px; font: normal 12px/12px Arial, sans-serif; cursor: pointer; } </style> EOF end |
.html(controller_name, action_name) ⇒ Object
23 24 25 26 27 28 29 |
# File 'lib/controller_action_hud/widget.rb', line 23 def html(controller_name, action_name) <<-EOF <div id="controller_action_hud" onclick="this.parentNode.removeChild(this);"> #{controller_name}##{action_name} </div> EOF end |