Script defines a script with a specified type, (for example "application/javascript").
(scriptype string, data ...string)
| 152 | |
| 153 | // Script defines a script with a specified type, (for example "application/javascript"). |
| 154 | func (svg *SVG) Script(scriptype string, data ...string) { |
| 155 | svg.linkembed("script", scriptype, data...) |
| 156 | } |
| 157 | |
| 158 | // Style defines the specified style (for example "text/css") |
| 159 | func (svg *SVG) Style(scriptype string, data ...string) { |