/**
  * Causes the default_site.css stylesheet to be included in the list of resources on the
  * page. This gives a basic form layout.
  * This also adds default JavaScript to the page to cause buttons to highlight when you
  * hover the mouse over them.
  */
 public static function link_default_stylesheet()
 {
     // make buttons highlight when hovering over them
     self::$javascript .= "indiciaFns.enableHoverEffect();\n";
     self::$default_styles = true;
 }
Esempio n. 2
0
 /**
  * Causes the default_site.css stylesheet to be included in the list of resources on the
  * page. This gives a basic form layout.
  * This also adds default JavaScript to the page to cause buttons to highlight when you
  * hover the mouse over them.
  */
 public static function link_default_stylesheet()
 {
     // make buttons highlight when hovering over them
     self::$javascript .= "\n\$('.ui-state-default').live('mouseover', function() {\n  \$(this).addClass('ui-state-hover');\n});\n\$('.ui-state-default').live('mouseout', function() {\n  \$(this).removeClass('ui-state-hover');\n});\n";
     self::$default_styles = true;
 }