sb-styleguide 0.0.9 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (163) hide show
  1. data/.codoopts +10 -0
  2. data/.env +1 -0
  3. data/.gitignore +1 -0
  4. data/.ruby-version +1 -0
  5. data/Gemfile +10 -3
  6. data/Gemfile.lock +134 -94
  7. data/Procfile +1 -0
  8. data/README.md +3 -5
  9. data/Rakefile +3 -0
  10. data/app/assets/images/layouts/basic-marketing-site.png +0 -0
  11. data/app/assets/images/layouts/jumbotron-site.png +0 -0
  12. data/app/assets/javascripts/base.js.coffee +3 -0
  13. data/app/assets/javascripts/grids.js.coffee +3 -0
  14. data/app/assets/javascripts/javascript.js.coffee +3 -0
  15. data/app/assets/javascripts/modules.js.coffee +3 -0
  16. data/app/assets/stylesheets/application-old-ie.css.scss +11 -0
  17. data/app/assets/stylesheets/application.css.scss +33 -30
  18. data/app/assets/stylesheets/base/_all.scss +6 -0
  19. data/app/assets/stylesheets/base/_reset.css.scss +16 -0
  20. data/app/assets/stylesheets/base/_type.scss +16 -0
  21. data/app/assets/stylesheets/{coderay_githubish.css.scss → modules/_coderay.css.scss} +40 -0
  22. data/app/assets/stylesheets/modules/_layout_examples.css.scss +13 -0
  23. data/app/assets/stylesheets/modules/_webfont_table.css.scss +47 -0
  24. data/app/assets/stylesheets/vanilla-normal-old-ie.css.scss +11 -0
  25. data/app/assets/stylesheets/vanilla-normal.css.scss +33 -0
  26. data/app/controllers/application_controller.rb +2 -0
  27. data/app/controllers/base_controller.rb +52 -0
  28. data/app/controllers/grids_controller.rb +48 -0
  29. data/app/controllers/javascript_controller.rb +20 -0
  30. data/app/controllers/modules_controller.rb +43 -0
  31. data/app/helpers/styleguide_helper.rb +33 -0
  32. data/app/views/base/_webfonts_social_standard.html +429 -0
  33. data/app/views/base/_webfonts_ss_standard.html +2413 -0
  34. data/app/views/base/buttons.html.haml +20 -0
  35. data/app/views/base/forms.html.haml +40 -0
  36. data/app/views/base/images.html.haml +1 -0
  37. data/app/views/base/index.html.haml +68 -0
  38. data/app/views/base/labels.html.haml +22 -0
  39. data/app/views/base/lists.html.haml +20 -0
  40. data/app/views/base/webfonts.html.haml +17 -0
  41. data/app/views/grids/index.html.haml +73 -0
  42. data/app/views/grids/layouts.html.haml +9 -0
  43. data/app/views/grids/layouts/basic-marketing-site.haml +69 -0
  44. data/app/views/grids/layouts/jumbotron-site.haml +92 -0
  45. data/app/views/layouts/_main_nav.html.haml +6 -6
  46. data/app/views/layouts/application.html.haml +6 -32
  47. data/app/views/modules/alerts.html.haml +12 -0
  48. data/app/views/modules/footer.html.haml +2 -0
  49. data/app/views/modules/index.html.haml +5 -0
  50. data/app/views/modules/nav.html.haml +12 -0
  51. data/app/views/modules/panels.html.haml +3 -0
  52. data/app/views/modules/tabs.html.haml +58 -0
  53. data/app/views/old_javascript/close.html.haml +2 -0
  54. data/app/views/old_javascript/forms.html.haml +2 -0
  55. data/app/views/old_javascript/ga_events.html.haml +2 -0
  56. data/app/views/old_javascript/index.html.haml +2 -0
  57. data/app/views/old_javascript/responsive_resize.html.haml +2 -0
  58. data/app/views/old_javascript/switch.html.haml +2 -0
  59. data/app/views/parts/base/_button.haml +3 -0
  60. data/app/views/parts/base/_button_colours.haml +4 -0
  61. data/app/views/parts/base/_button_group.haml +4 -0
  62. data/app/views/parts/base/_button_sizing.haml +3 -0
  63. data/app/views/parts/base/_button_states.haml +3 -0
  64. data/app/views/parts/base/_form_example.haml +26 -0
  65. data/app/views/parts/base/_form_example_horizontal.haml +26 -0
  66. data/app/views/parts/base/_form_group.haml +10 -0
  67. data/app/views/parts/base/_form_location.haml +3 -0
  68. data/app/views/parts/base/_labels.haml +5 -0
  69. data/app/views/parts/base/_labels_sizing.haml +3 -0
  70. data/app/views/parts/base/_list.haml +10 -0
  71. data/app/views/parts/base/_list_action.haml +5 -0
  72. data/app/views/parts/base/_list_nav.haml +12 -0
  73. data/app/views/parts/base/_list_unset.haml +10 -0
  74. data/app/views/parts/base/_type_body.haml +2 -0
  75. data/app/views/parts/base/_type_headings.haml +5 -0
  76. data/app/views/parts/base/_type_helpers.haml +3 -0
  77. data/app/views/parts/base/_type_links.haml +9 -0
  78. data/app/views/parts/base/_type_shouts.haml +4 -0
  79. data/app/views/parts/grids/_example_layout_1.haml +10 -0
  80. data/app/views/parts/grids/_live_grid.haml +29 -0
  81. data/app/views/parts/modules/_alerts.haml +11 -0
  82. data/app/views/parts/modules/_nav_footer.haml +34 -0
  83. data/app/views/parts/modules/_nav_header.haml +18 -0
  84. data/app/views/parts/modules/_panels.haml +9 -0
  85. data/app/views/parts/modules/_tabs_minimal.haml +11 -0
  86. data/app/views/parts/modules/_tabs_simple_group.haml +11 -0
  87. data/app/views/parts/modules/_tabs_simple_group_toggle.haml +11 -0
  88. data/app/views/parts/modules/_tabs_toggle.haml +5 -0
  89. data/app/views/parts/modules/_tabs_traditional.haml +11 -0
  90. data/app/views/shared/_title.html.haml +8 -0
  91. data/app/views/shared/_ui_nav.html.haml +5 -0
  92. data/app/views/ui/typography.html.haml +86 -96
  93. data/lib/sb-styleguide.rb +1 -1
  94. data/lib/sb-styleguide/version.rb +1 -1
  95. data/lib/templates/haml/scaffold/_form.html.haml +8 -0
  96. data/public/javascripts/LICENSE.html +158 -0
  97. data/public/javascripts/README.md.html +164 -0
  98. data/public/javascripts/assets/codo.css +1 -0
  99. data/public/javascripts/assets/codo.js +21 -0
  100. data/public/javascripts/assets/search_data.js +1 -0
  101. data/public/javascripts/class_index.html +215 -0
  102. data/public/javascripts/class_list.html +58 -0
  103. data/public/javascripts/classes/Close.html +259 -0
  104. data/public/javascripts/classes/GAEvent.html +231 -0
  105. data/public/javascripts/classes/ResizeHandler.html +225 -0
  106. data/public/javascripts/classes/Switch.html +318 -0
  107. data/public/javascripts/classes/TBGForm.html +373 -0
  108. data/public/javascripts/extra_list.html +36 -0
  109. data/public/javascripts/file_list.html +74 -0
  110. data/public/javascripts/files/styleguide/plugins/tbg-close.js.coffee.html +160 -0
  111. data/public/javascripts/files/styleguide/plugins/tbg-forms.js.coffee.html +160 -0
  112. data/public/javascripts/files/styleguide/plugins/tbg-ga-events.js.coffee.html +160 -0
  113. data/public/javascripts/files/styleguide/plugins/tbg-respinsiveresize.js.coffee.html +160 -0
  114. data/public/javascripts/files/styleguide/plugins/tbg-switch.js.coffee.html +160 -0
  115. data/public/javascripts/index.html +14 -0
  116. data/public/javascripts/method_list.html +187 -0
  117. data/public/javascripts/mixin_list.html +28 -0
  118. data/vendor/assets/javascripts/styleguide/plugins/doc/assets/codo.css +1 -0
  119. data/vendor/assets/javascripts/styleguide/plugins/doc/assets/codo.js +21 -0
  120. data/vendor/assets/javascripts/styleguide/plugins/doc/assets/search_data.js +1 -0
  121. data/vendor/assets/javascripts/styleguide/plugins/doc/class_index.html +194 -0
  122. data/vendor/assets/javascripts/styleguide/plugins/doc/class_list.html +58 -0
  123. data/vendor/assets/javascripts/styleguide/plugins/doc/classes/Close.html +215 -0
  124. data/vendor/assets/javascripts/styleguide/plugins/doc/classes/GAEvent.html +235 -0
  125. data/vendor/assets/javascripts/styleguide/plugins/doc/classes/ResizeHandler.html +192 -0
  126. data/vendor/assets/javascripts/styleguide/plugins/doc/classes/Switch.html +233 -0
  127. data/vendor/assets/javascripts/styleguide/plugins/doc/classes/TBGForm.html +318 -0
  128. data/vendor/assets/javascripts/styleguide/plugins/doc/extra_list.html +30 -0
  129. data/vendor/assets/javascripts/styleguide/plugins/doc/file_list.html +58 -0
  130. data/vendor/assets/javascripts/styleguide/plugins/doc/files/tbg-close.js.coffee.html +154 -0
  131. data/vendor/assets/javascripts/styleguide/plugins/doc/files/tbg-forms.js.coffee.html +154 -0
  132. data/vendor/assets/javascripts/styleguide/plugins/doc/files/tbg-ga-events.js.coffee.html +154 -0
  133. data/vendor/assets/javascripts/styleguide/plugins/doc/files/tbg-respinsiveresize.js.coffee.html +154 -0
  134. data/vendor/assets/javascripts/styleguide/plugins/doc/files/tbg-switch.js.coffee.html +154 -0
  135. data/vendor/assets/javascripts/styleguide/plugins/doc/index.html +14 -0
  136. data/vendor/assets/javascripts/styleguide/plugins/doc/method_list.html +163 -0
  137. data/vendor/assets/javascripts/styleguide/plugins/doc/mixin_list.html +28 -0
  138. data/vendor/assets/javascripts/styleguide/plugins/tbg-close.js.coffee +28 -4
  139. data/vendor/assets/javascripts/styleguide/plugins/tbg-forms.js.coffee +52 -5
  140. data/vendor/assets/javascripts/styleguide/plugins/tbg-ga-events.js.coffee +28 -8
  141. data/vendor/assets/javascripts/styleguide/plugins/tbg-respinsiveresize.js.coffee +21 -2
  142. data/vendor/assets/javascripts/styleguide/plugins/tbg-switch.js.coffee +37 -2
  143. data/vendor/assets/stylesheets/_mixins.css.scss +128 -35
  144. data/vendor/assets/stylesheets/_settings.css.scss +7 -4
  145. data/vendor/assets/stylesheets/styleguide/base/_labels.css.scss +22 -6
  146. data/vendor/assets/stylesheets/styleguide/base/_lists.css.scss +23 -18
  147. data/vendor/assets/stylesheets/styleguide/base/_type.css.scss +11 -5
  148. data/vendor/assets/stylesheets/styleguide/grid/_grid.css.scss +9 -9
  149. data/vendor/assets/stylesheets/styleguide/modules/_switch.css.scss +32 -16
  150. metadata +134 -18
  151. data/.rvmrc +0 -1
  152. data/app/helpers/application_helper.rb +0 -13
  153. data/app/helpers/javascripts_helper.rb +0 -2
  154. data/app/helpers/ui_helper.rb +0 -2
  155. data/app/mailers/.gitkeep +0 -0
  156. data/app/models/.gitkeep +0 -0
  157. data/app/views/javascripts/_js_nav.html.haml +0 -5
  158. data/app/views/javascripts/index.html.haml +0 -45
  159. data/app/views/type/_headings.haml +0 -6
  160. data/app/views/type/_paragraphs.haml +0 -4
  161. data/app/views/ui/_ui_nav.html.haml +0 -13
  162. data/vendor/assets/stylesheets/styleguide/layout/_all.css.scss +0 -5
  163. data/vendor/plugins/.gitkeep +0 -0
@@ -0,0 +1,259 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset='UTF-8'>
5
+ <title>Codo Documentation</title>
6
+ <link rel='stylesheet' href='../assets/codo.css' type='text/css'>
7
+ <script src='../assets/codo.js'></script>
8
+ <script src='../assets/search_data.js'></script>
9
+ </head>
10
+ <body>
11
+ <div id='base' data-path='../'></div>
12
+ <div id='header'>
13
+ <div id='menu'>
14
+ <a href='../README.md.html' title='Codo'>Codo</a>
15
+ &raquo;
16
+ <a href='../class_index.html' title='Index'>Index</a>
17
+ &raquo;
18
+ <span class='title'>Close</span>
19
+ <nav>
20
+ <ul>
21
+ <li class='noframes'>
22
+ (<a class='noframes' href='#'>no frames</a>)
23
+ </li>
24
+ </ul>
25
+ </nav>
26
+ <div id='search'>
27
+ <a id='class_list_link' href='../class_list.html'>Classes</a>
28
+ <a id='file_list_link' href='../file_list.html'>Files</a>
29
+ <a id='method_list_link' href='../method_list.html'>Methods</a>
30
+ <a id='extra_list_link' href='../extra_list.html'>Extras</a>
31
+ </div>
32
+ </div>
33
+ <iframe id='search_frame'></iframe>
34
+ <div id='fuzzySearch'>
35
+ <input type='text'>
36
+ <ol></ol>
37
+ </div>
38
+ <div id='help'>
39
+ <p>
40
+ Quickly fuzzy find classes, mixins, methods, file:
41
+ </p>
42
+ <ul>
43
+ <li>
44
+ <span>Ctrl-T</span>
45
+ Open fuzzy finder dialog
46
+ </li>
47
+ </ul>
48
+ <p>
49
+ In frame mode you can toggle the list naviation frame on the left side:
50
+ </p>
51
+ <ul>
52
+ <li>
53
+ <span>Ctrl-L</span>
54
+ Toggle list view
55
+ </li>
56
+ </ul>
57
+ <p>
58
+ You can focus a list in frame mode or toggle a tab in frameless mode:
59
+ </p>
60
+ <ul>
61
+ <li>
62
+ <span>Ctrl-C</span>
63
+ Class list
64
+ </li>
65
+ <li>
66
+ <span>Ctrl-I</span>
67
+ Mixin list
68
+ </li>
69
+ <li>
70
+ <span>Ctrl-F</span>
71
+ File list
72
+ </li>
73
+ <li>
74
+ <span>Ctrl-M</span>
75
+ Method list
76
+ </li>
77
+ <li>
78
+ <span>Ctrl-E</span>
79
+ Extras list
80
+ </li>
81
+ </ul>
82
+ <p>
83
+ You can focus and blur the search input:
84
+ </p>
85
+ <ul>
86
+ <li>
87
+ <span>Ctrl-S</span>
88
+ Focus search input
89
+ </li>
90
+ <li>
91
+ <span>Esc</span>
92
+ Blur search input
93
+ </li>
94
+ </ul>
95
+ <p>
96
+ In frameless mode you can close the list tab:
97
+ </p>
98
+ <ul>
99
+ <li>
100
+ <span>Esc</span>
101
+ Close list tab
102
+ </li>
103
+ </ul>
104
+ </div>
105
+ </div>
106
+ <div id='content'>
107
+ <h1>
108
+ Class:
109
+ Close
110
+ </h1>
111
+ <table class='box'>
112
+ <tr>
113
+ <td>Defined in:</td>
114
+ <td>vendor&#47;assets&#47;javascripts&#47;styleguide&#47;plugins&#47;tbg-close.js.coffee</td>
115
+ </tr>
116
+ </table>
117
+ <h2>Overview</h2>
118
+ <div class='docstring'>
119
+ <p>CLOSE CLASS DEFINITION</p>
120
+ <div class='examples'>
121
+ <h3>Examples:</h3>
122
+ <h4>
123
+ How to use the class
124
+ </h4>
125
+ <pre><code class='coffee'>closeInstance = new Close $(&#39;.my-element&#39;)
126
+ # Close element
127
+ closeInstance.close()</code></pre>
128
+ <h4>
129
+ How to use the class with jQuery
130
+ </h4>
131
+ <pre><code class='coffee'>$(&#39;.my-element&#39;).close(&#39;close&#39;)</code></pre>
132
+ <h4>
133
+ How to ensure plugin self initialises on element
134
+ </h4>
135
+ <pre><code class='coffee'>&lt;div data-close&gt; Close me &lt;&#47;div&gt;</code></pre>
136
+ </div>
137
+ </div>
138
+ <div class='tags'>
139
+ </div>
140
+ <h2>Instance Method Summary</h2>
141
+ <ul class='summary'>
142
+ <li>
143
+ <span class='signature'>
144
+ <a href='#constructor-instance'>
145
+ - (void) <strong>constructor</strong>(element)
146
+ </a>
147
+ </span>
148
+ <span class='constructor note title'>Constructor</span>
149
+ <span class='desc'>
150
+ Construct a new Close instance
151
+ </span>
152
+ </li>
153
+ <li>
154
+ <span class='signature'>
155
+ <a href='#close-instance'>
156
+ - (void) <strong>close</strong>()
157
+ </a>
158
+ </span>
159
+ <span class='desc'>
160
+ Close the element - Triggers &#39;close&#39; event on this.$
161
+ </span>
162
+ </li>
163
+ <li>
164
+ <span class='signature'>
165
+ <a href='#_getTarget-instance'>
166
+ - (Object) <strong>_getTarget</strong>($el)
167
+ </a>
168
+ </span>
169
+ <span class='note private title'>Private</span>
170
+ <span class='desc'>
171
+ Get the target element to be closed
172
+ </span>
173
+ </li>
174
+ </ul>
175
+ <h2>Constructor Details</h2>
176
+ <div class='methods'>
177
+ <div class='method_details'>
178
+ <p class='signature' id='constructor-instance'>
179
+ - (void) <strong>constructor</strong>(element)
180
+ </p>
181
+ <div class='docstring'>
182
+ <p>Construct a new Close instance</p>
183
+ </div>
184
+ <div class='tags'>
185
+ <h3>Parameters:</h3>
186
+ <ul class='param'>
187
+ <li>
188
+ <span class='name'>element</span>
189
+ <span class='type'>
190
+ (<tt>Object</tt>)
191
+ </span>
192
+ &mdash;
193
+ <span class='desc'>HTMLElement on which we will try to close</span>
194
+ </li>
195
+ </ul>
196
+ </div>
197
+ </div>
198
+ </div>
199
+ <h2>Instance Method Details</h2>
200
+ <div class='methods'>
201
+ <div class='method_details'>
202
+ <p class='signature' id='close-instance'>
203
+ - (void) <strong>close</strong>()
204
+ </p>
205
+ <div class='docstring'>
206
+ <p>Close the element - Triggers &#39;close&#39; event on this.$target then removes this.$target</p>
207
+ </div>
208
+ <div class='tags'>
209
+ </div>
210
+ </div>
211
+ <div class='method_details'>
212
+ <p class='signature' id='_getTarget-instance'>
213
+ - (Object) <strong>_getTarget</strong>($el)
214
+ (private)
215
+ </p>
216
+ <div class='docstring'>
217
+ <p>Get the target element to be closed</p>
218
+ </div>
219
+ <div class='tags'>
220
+ <h3>Parameters:</h3>
221
+ <ul class='param'>
222
+ <li>
223
+ <span class='name'>$el</span>
224
+ <span class='type'>
225
+ (<tt>Object</tt>)
226
+ </span>
227
+ &mdash;
228
+ <span class='desc'>jQuery wrapped HTMLElement to get target to be closed from</span>
229
+ </li>
230
+ </ul>
231
+ <h3>Returns:</h3>
232
+ <ul class='return'>
233
+ <li>
234
+ <span class='type'></span>
235
+ (<tt>Object</tt>)
236
+ &mdash;
237
+ <span class='desc'>jQuery wrapped HTMLElement to be closed</span>
238
+ </li>
239
+ </ul>
240
+ </div>
241
+ </div>
242
+ </div>
243
+ </div>
244
+ <div id='footer'>
245
+ Generated on
246
+ Thu Mar 14 2013 13:49:05 GMT+0000 (GMT)
247
+ by
248
+ <a href='https://github.com/netzpirat/codo' title='CoffeeScript API documentation generator'>Codo</a>
249
+ v1.5.6
250
+ (Node.js v0.8.8).
251
+ &#10034;
252
+ Press Ctrl-h to see the keyboard shortcuts
253
+ &#10034;
254
+ <a href='http://twitter.com/#!/netzpirat'>@netzpirat</a>
255
+ &#10034;
256
+ <a href='https://mksoft.ch'>mksoft.ch</a>
257
+ </div>
258
+ </body>
259
+ </html>
@@ -0,0 +1,231 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset='UTF-8'>
5
+ <title>Codo Documentation</title>
6
+ <link rel='stylesheet' href='../assets/codo.css' type='text/css'>
7
+ <script src='../assets/codo.js'></script>
8
+ <script src='../assets/search_data.js'></script>
9
+ </head>
10
+ <body>
11
+ <div id='base' data-path='../'></div>
12
+ <div id='header'>
13
+ <div id='menu'>
14
+ <a href='../README.md.html' title='Codo'>Codo</a>
15
+ &raquo;
16
+ <a href='../class_index.html' title='Index'>Index</a>
17
+ &raquo;
18
+ <span class='title'>GAEvent</span>
19
+ <nav>
20
+ <ul>
21
+ <li class='noframes'>
22
+ (<a class='noframes' href='#'>no frames</a>)
23
+ </li>
24
+ </ul>
25
+ </nav>
26
+ <div id='search'>
27
+ <a id='class_list_link' href='../class_list.html'>Classes</a>
28
+ <a id='file_list_link' href='../file_list.html'>Files</a>
29
+ <a id='method_list_link' href='../method_list.html'>Methods</a>
30
+ <a id='extra_list_link' href='../extra_list.html'>Extras</a>
31
+ </div>
32
+ </div>
33
+ <iframe id='search_frame'></iframe>
34
+ <div id='fuzzySearch'>
35
+ <input type='text'>
36
+ <ol></ol>
37
+ </div>
38
+ <div id='help'>
39
+ <p>
40
+ Quickly fuzzy find classes, mixins, methods, file:
41
+ </p>
42
+ <ul>
43
+ <li>
44
+ <span>Ctrl-T</span>
45
+ Open fuzzy finder dialog
46
+ </li>
47
+ </ul>
48
+ <p>
49
+ In frame mode you can toggle the list naviation frame on the left side:
50
+ </p>
51
+ <ul>
52
+ <li>
53
+ <span>Ctrl-L</span>
54
+ Toggle list view
55
+ </li>
56
+ </ul>
57
+ <p>
58
+ You can focus a list in frame mode or toggle a tab in frameless mode:
59
+ </p>
60
+ <ul>
61
+ <li>
62
+ <span>Ctrl-C</span>
63
+ Class list
64
+ </li>
65
+ <li>
66
+ <span>Ctrl-I</span>
67
+ Mixin list
68
+ </li>
69
+ <li>
70
+ <span>Ctrl-F</span>
71
+ File list
72
+ </li>
73
+ <li>
74
+ <span>Ctrl-M</span>
75
+ Method list
76
+ </li>
77
+ <li>
78
+ <span>Ctrl-E</span>
79
+ Extras list
80
+ </li>
81
+ </ul>
82
+ <p>
83
+ You can focus and blur the search input:
84
+ </p>
85
+ <ul>
86
+ <li>
87
+ <span>Ctrl-S</span>
88
+ Focus search input
89
+ </li>
90
+ <li>
91
+ <span>Esc</span>
92
+ Blur search input
93
+ </li>
94
+ </ul>
95
+ <p>
96
+ In frameless mode you can close the list tab:
97
+ </p>
98
+ <ul>
99
+ <li>
100
+ <span>Esc</span>
101
+ Close list tab
102
+ </li>
103
+ </ul>
104
+ </div>
105
+ </div>
106
+ <div id='content'>
107
+ <h1>
108
+ Class:
109
+ GAEvent
110
+ </h1>
111
+ <table class='box'>
112
+ <tr>
113
+ <td>Defined in:</td>
114
+ <td>vendor&#47;assets&#47;javascripts&#47;styleguide&#47;plugins&#47;tbg-ga-events.js.coffee</td>
115
+ </tr>
116
+ </table>
117
+ <h2>Overview</h2>
118
+ <div class='docstring'>
119
+ <p>GAEVENT CLASS DEFINITION</p>
120
+ <div class='examples'>
121
+ <h3>Examples:</h3>
122
+ <h4>
123
+ How to use with Haml
124
+ </h4>
125
+ <pre><code class='coffee'>%a{ :href =&gt; &#39;&#47;some&#47;link&#39;, :class =&gt; &#39;btn&#39;, :data =&gt; { :gaevent =&gt; &#39;category|action|opt_label|opt_value|opt_noninteraction&#39; } }
126
+ # See: https:&#47;&#47;developers.google.com&#47;analytics&#47;devguides&#47;collection&#47;gajs&#47;eventTrackerGuide</code></pre>
127
+ <h4>
128
+ How to ensure plugin self initialises on element
129
+ </h4>
130
+ <pre><code class='coffee'>&lt;form data-gaevent-load=&quot;true&quot;&gt; ... &lt;&#47;form&gt;</code></pre>
131
+ </div>
132
+ </div>
133
+ <div class='tags'>
134
+ </div>
135
+ <h2>Instance Method Summary</h2>
136
+ <ul class='summary'>
137
+ <li>
138
+ <span class='signature'>
139
+ <a href='#constructor-instance'>
140
+ - (void) <strong>constructor</strong>(element, eventcontent)
141
+ </a>
142
+ </span>
143
+ <span class='constructor note title'>Constructor</span>
144
+ <span class='desc'>
145
+ Construct a GAEvent instance - split the event content string and pass to sendEvent
146
+ </span>
147
+ </li>
148
+ <li>
149
+ <span class='signature'>
150
+ <a href='#sendEvent-instance'>
151
+ - (void) <strong>sendEvent</strong>(data)
152
+ </a>
153
+ </span>
154
+ <span class='desc'>
155
+ Send the event to Google Analytics
156
+ </span>
157
+ </li>
158
+ </ul>
159
+ <h2>Constructor Details</h2>
160
+ <div class='methods'>
161
+ <div class='method_details'>
162
+ <p class='signature' id='constructor-instance'>
163
+ - (void) <strong>constructor</strong>(element, eventcontent)
164
+ </p>
165
+ <div class='docstring'>
166
+ <p>Construct a GAEvent instance - split the event content string and pass to sendEvent</p>
167
+ </div>
168
+ <div class='tags'>
169
+ <h3>Parameters:</h3>
170
+ <ul class='param'>
171
+ <li>
172
+ <span class='name'>element</span>
173
+ <span class='type'>
174
+ (<tt>Object</tt>)
175
+ </span>
176
+ &mdash;
177
+ <span class='desc'>HTMLElement</span>
178
+ </li>
179
+ <li>
180
+ <span class='name'>eventcontent</span>
181
+ <span class='type'>
182
+ (<tt>String</tt>)
183
+ </span>
184
+ &mdash;
185
+ <span class='desc'>Pipe delimited string of event content</span>
186
+ </li>
187
+ </ul>
188
+ </div>
189
+ </div>
190
+ </div>
191
+ <h2>Instance Method Details</h2>
192
+ <div class='methods'>
193
+ <div class='method_details'>
194
+ <p class='signature' id='sendEvent-instance'>
195
+ - (void) <strong>sendEvent</strong>(data)
196
+ </p>
197
+ <div class='docstring'>
198
+ <p>Send the event to Google Analytics</p>
199
+ </div>
200
+ <div class='tags'>
201
+ <h3>Parameters:</h3>
202
+ <ul class='param'>
203
+ <li>
204
+ <span class='name'>data</span>
205
+ <span class='type'>
206
+ (<tt>Array</tt>)
207
+ </span>
208
+ &mdash;
209
+ <span class='desc'>If Google Analytics _gaq array defined then push data array after inserting &#39;_trackEvent&#39; string at beginning of data array</span>
210
+ </li>
211
+ </ul>
212
+ </div>
213
+ </div>
214
+ </div>
215
+ </div>
216
+ <div id='footer'>
217
+ Generated on
218
+ Thu Mar 14 2013 13:49:05 GMT+0000 (GMT)
219
+ by
220
+ <a href='https://github.com/netzpirat/codo' title='CoffeeScript API documentation generator'>Codo</a>
221
+ v1.5.6
222
+ (Node.js v0.8.8).
223
+ &#10034;
224
+ Press Ctrl-h to see the keyboard shortcuts
225
+ &#10034;
226
+ <a href='http://twitter.com/#!/netzpirat'>@netzpirat</a>
227
+ &#10034;
228
+ <a href='https://mksoft.ch'>mksoft.ch</a>
229
+ </div>
230
+ </body>
231
+ </html>