plinth 0.0.1.beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (237) hide show
  1. data/.codoopts +10 -0
  2. data/.env +1 -0
  3. data/.gitignore +23 -0
  4. data/.ruby-version +1 -0
  5. data/CHANGELOG.md +1 -0
  6. data/Capfile +4 -0
  7. data/Gemfile +52 -0
  8. data/Gemfile.lock +243 -0
  9. data/Guardfile +9 -0
  10. data/LICENSE +22 -0
  11. data/Procfile +1 -0
  12. data/README.md +79 -0
  13. data/Rakefile +35 -0
  14. data/app/assets/images/layouts/basic-marketing-site.png +0 -0
  15. data/app/assets/images/layouts/jumbotron-site.png +0 -0
  16. data/app/assets/images/rails.png +0 -0
  17. data/app/assets/javascripts/application.js +17 -0
  18. data/app/assets/javascripts/base.js.coffee +3 -0
  19. data/app/assets/javascripts/grids.js.coffee +3 -0
  20. data/app/assets/javascripts/javascript.js.coffee +3 -0
  21. data/app/assets/javascripts/lib/modernizr.js +4 -0
  22. data/app/assets/javascripts/modules.js.coffee +3 -0
  23. data/app/assets/stylesheets/application-old-ie.css.scss +10 -0
  24. data/app/assets/stylesheets/application.css.scss +57 -0
  25. data/app/assets/stylesheets/base/_all.scss +6 -0
  26. data/app/assets/stylesheets/base/_reset.css.scss +16 -0
  27. data/app/assets/stylesheets/base/_type.scss +16 -0
  28. data/app/assets/stylesheets/modules/_coderay.css.scss +171 -0
  29. data/app/assets/stylesheets/modules/_layout_examples.css.scss +13 -0
  30. data/app/assets/stylesheets/modules/_webfont_table.css.scss +47 -0
  31. data/app/assets/stylesheets/vanilla-normal-old-ie.css.scss +11 -0
  32. data/app/assets/stylesheets/vanilla-normal.css.scss +33 -0
  33. data/app/controllers/application_controller.rb +5 -0
  34. data/app/controllers/base_controller.rb +52 -0
  35. data/app/controllers/grids_controller.rb +48 -0
  36. data/app/controllers/javascript_controller.rb +20 -0
  37. data/app/controllers/javascripts_controller.rb +4 -0
  38. data/app/controllers/modules_controller.rb +43 -0
  39. data/app/controllers/ui_controller.rb +2 -0
  40. data/app/helpers/plinth_helper.rb +33 -0
  41. data/app/views/base/_webfonts_social_standard.html +429 -0
  42. data/app/views/base/_webfonts_ss_standard.html +2413 -0
  43. data/app/views/base/buttons.html.haml +20 -0
  44. data/app/views/base/forms.html.haml +40 -0
  45. data/app/views/base/images.html.haml +20 -0
  46. data/app/views/base/index.html.haml +68 -0
  47. data/app/views/base/labels.html.haml +22 -0
  48. data/app/views/base/lists.html.haml +20 -0
  49. data/app/views/base/webfonts.html.haml +17 -0
  50. data/app/views/grids/index.html.haml +73 -0
  51. data/app/views/grids/layouts/basic-marketing-site.haml +69 -0
  52. data/app/views/grids/layouts/jumbotron-site.haml +92 -0
  53. data/app/views/grids/layouts.html.haml +9 -0
  54. data/app/views/layouts/_main_nav.html.haml +15 -0
  55. data/app/views/layouts/application.html.haml +15 -0
  56. data/app/views/modules/alerts.html.haml +12 -0
  57. data/app/views/modules/footer.html.haml +2 -0
  58. data/app/views/modules/index.html.haml +5 -0
  59. data/app/views/modules/nav.html.haml +12 -0
  60. data/app/views/modules/panels.html.haml +3 -0
  61. data/app/views/modules/tabs.html.haml +58 -0
  62. data/app/views/old_javascript/close.html.haml +2 -0
  63. data/app/views/old_javascript/forms.html.haml +2 -0
  64. data/app/views/old_javascript/ga_events.html.haml +2 -0
  65. data/app/views/old_javascript/index.html.haml +2 -0
  66. data/app/views/old_javascript/responsive_resize.html.haml +2 -0
  67. data/app/views/old_javascript/switch.html.haml +2 -0
  68. data/app/views/parts/base/_button.haml +3 -0
  69. data/app/views/parts/base/_button_colours.haml +4 -0
  70. data/app/views/parts/base/_button_group.haml +4 -0
  71. data/app/views/parts/base/_button_sizing.haml +3 -0
  72. data/app/views/parts/base/_button_states.haml +3 -0
  73. data/app/views/parts/base/_form_example.haml +26 -0
  74. data/app/views/parts/base/_form_example_horizontal.haml +26 -0
  75. data/app/views/parts/base/_form_group.haml +10 -0
  76. data/app/views/parts/base/_form_location.haml +3 -0
  77. data/app/views/parts/base/_labels.haml +5 -0
  78. data/app/views/parts/base/_labels_sizing.haml +3 -0
  79. data/app/views/parts/base/_list.haml +10 -0
  80. data/app/views/parts/base/_list_action.haml +5 -0
  81. data/app/views/parts/base/_list_nav.haml +12 -0
  82. data/app/views/parts/base/_list_unset.haml +10 -0
  83. data/app/views/parts/base/_type_body.haml +2 -0
  84. data/app/views/parts/base/_type_headings.haml +5 -0
  85. data/app/views/parts/base/_type_helpers.haml +3 -0
  86. data/app/views/parts/base/_type_links.haml +9 -0
  87. data/app/views/parts/base/_type_shouts.haml +4 -0
  88. data/app/views/parts/grids/_example_layout_1.haml +10 -0
  89. data/app/views/parts/grids/_live_grid.haml +29 -0
  90. data/app/views/parts/modules/_alerts.haml +11 -0
  91. data/app/views/parts/modules/_nav_footer.haml +34 -0
  92. data/app/views/parts/modules/_nav_header.haml +18 -0
  93. data/app/views/parts/modules/_panels.haml +9 -0
  94. data/app/views/parts/modules/_tabs_minimal.haml +11 -0
  95. data/app/views/parts/modules/_tabs_simple_group.haml +11 -0
  96. data/app/views/parts/modules/_tabs_simple_group_toggle.haml +11 -0
  97. data/app/views/parts/modules/_tabs_toggle.haml +5 -0
  98. data/app/views/parts/modules/_tabs_traditional.haml +11 -0
  99. data/app/views/shared/_placeholder_text.html.haml +1 -0
  100. data/app/views/shared/_title.html.haml +8 -0
  101. data/app/views/shared/_ui_nav.html.haml +5 -0
  102. data/app/views/ui/alert.html.haml +35 -0
  103. data/app/views/ui/buttons.html.haml +116 -0
  104. data/app/views/ui/footer.html.haml +69 -0
  105. data/app/views/ui/forms/_vertical_form.haml +7 -0
  106. data/app/views/ui/forms.html.haml +59 -0
  107. data/app/views/ui/grids.html.haml +18 -0
  108. data/app/views/ui/index.html.haml +5 -0
  109. data/app/views/ui/labels.html.haml +15 -0
  110. data/app/views/ui/modules/panel.html.haml +3 -0
  111. data/app/views/ui/nav.html.haml +48 -0
  112. data/app/views/ui/tabs.html.haml +171 -0
  113. data/app/views/ui/typography.html.haml +118 -0
  114. data/db/development.sqlite3 +0 -0
  115. data/db/seeds.rb +7 -0
  116. data/doc/README_FOR_APP +2 -0
  117. data/lib/assets/.gitkeep +0 -0
  118. data/lib/plinth/version.rb +3 -0
  119. data/lib/plinth.rb +11 -0
  120. data/lib/tasks/.gitkeep +0 -0
  121. data/lib/templates/haml/scaffold/_form.html.haml +8 -0
  122. data/log/.gitkeep +0 -0
  123. data/plinth.gemspec +33 -0
  124. data/public/404.html +26 -0
  125. data/public/422.html +26 -0
  126. data/public/500.html +25 -0
  127. data/public/favicon.ico +0 -0
  128. data/public/javascripts/LICENSE.html +158 -0
  129. data/public/javascripts/README.md.html +163 -0
  130. data/public/javascripts/assets/codo.css +1 -0
  131. data/public/javascripts/assets/codo.js +21 -0
  132. data/public/javascripts/assets/search_data.js +1 -0
  133. data/public/javascripts/class_index.html +215 -0
  134. data/public/javascripts/class_list.html +58 -0
  135. data/public/javascripts/classes/Close.html +259 -0
  136. data/public/javascripts/classes/GAEvent.html +231 -0
  137. data/public/javascripts/classes/ResizeHandler.html +225 -0
  138. data/public/javascripts/classes/Switch.html +318 -0
  139. data/public/javascripts/classes/TBGForm.html +373 -0
  140. data/public/javascripts/extra_list.html +36 -0
  141. data/public/javascripts/file_list.html +74 -0
  142. data/public/javascripts/files/styleguide/plugins/tbg-close.js.coffee.html +160 -0
  143. data/public/javascripts/files/styleguide/plugins/tbg-forms.js.coffee.html +160 -0
  144. data/public/javascripts/files/styleguide/plugins/tbg-ga-events.js.coffee.html +160 -0
  145. data/public/javascripts/files/styleguide/plugins/tbg-respinsiveresize.js.coffee.html +160 -0
  146. data/public/javascripts/files/styleguide/plugins/tbg-switch.js.coffee.html +160 -0
  147. data/public/javascripts/index.html +14 -0
  148. data/public/javascripts/method_list.html +187 -0
  149. data/public/javascripts/mixin_list.html +28 -0
  150. data/public/robots.txt +5 -0
  151. data/script/rails +6 -0
  152. data/spec/javascripts/fixtures/plugins/tbg-close_fixture.html.haml +4 -0
  153. data/spec/javascripts/fixtures/plugins/tbg-forms_fixture.html.haml +12 -0
  154. data/spec/javascripts/fixtures/plugins/tbg-ga-events_fixture.html.haml +9 -0
  155. data/spec/javascripts/fixtures/plugins/tbg-switch_fixture.html.haml +11 -0
  156. data/spec/javascripts/plugins/tbg-close_spec.js.coffee +54 -0
  157. data/spec/javascripts/plugins/tbg-forms_spec.js.coffee +87 -0
  158. data/spec/javascripts/plugins/tbg-ga-events_spec.js.coffee +83 -0
  159. data/spec/javascripts/plugins/tbg-switch_spec.js.coffee +96 -0
  160. data/spec/javascripts/spec.js.coffee +2 -0
  161. data/vendor/assets/fonts/ss-social-circle.eot +0 -0
  162. data/vendor/assets/fonts/ss-social-circle.svg +139 -0
  163. data/vendor/assets/fonts/ss-social-circle.ttf +0 -0
  164. data/vendor/assets/fonts/ss-social-circle.woff +0 -0
  165. data/vendor/assets/fonts/ss-social-regular.eot +0 -0
  166. data/vendor/assets/fonts/ss-social-regular.svg +133 -0
  167. data/vendor/assets/fonts/ss-social-regular.ttf +0 -0
  168. data/vendor/assets/fonts/ss-social-regular.woff +0 -0
  169. data/vendor/assets/fonts/ss-social.js +75 -0
  170. data/vendor/assets/fonts/ss-standard.eot +0 -0
  171. data/vendor/assets/fonts/ss-standard.js +75 -0
  172. data/vendor/assets/fonts/ss-standard.svg +207 -0
  173. data/vendor/assets/fonts/ss-standard.ttf +0 -0
  174. data/vendor/assets/fonts/ss-standard.woff +0 -0
  175. data/vendor/assets/images/background.png +0 -0
  176. data/vendor/assets/images/logos/sb-logo-white.png +0 -0
  177. data/vendor/assets/images/logos/sb-logo-white.svg +5 -0
  178. data/vendor/assets/images/middleman.png +0 -0
  179. data/vendor/assets/index.html.haml +8 -0
  180. data/vendor/assets/javascripts/.gitkeep +0 -0
  181. data/vendor/assets/javascripts/plinth/lib/handlebars.js +3 -0
  182. data/vendor/assets/javascripts/plinth/lib/jquery.fitvids.js +81 -0
  183. data/vendor/assets/javascripts/plinth/lib/ss-social.js +75 -0
  184. data/vendor/assets/javascripts/plinth/lib/ss-standard.js +78 -0
  185. data/vendor/assets/javascripts/plinth/plugins/doc/assets/codo.css +1 -0
  186. data/vendor/assets/javascripts/plinth/plugins/doc/assets/codo.js +21 -0
  187. data/vendor/assets/javascripts/plinth/plugins/doc/assets/search_data.js +1 -0
  188. data/vendor/assets/javascripts/plinth/plugins/doc/class_index.html +194 -0
  189. data/vendor/assets/javascripts/plinth/plugins/doc/class_list.html +58 -0
  190. data/vendor/assets/javascripts/plinth/plugins/doc/classes/Close.html +215 -0
  191. data/vendor/assets/javascripts/plinth/plugins/doc/classes/GAEvent.html +235 -0
  192. data/vendor/assets/javascripts/plinth/plugins/doc/classes/ResizeHandler.html +192 -0
  193. data/vendor/assets/javascripts/plinth/plugins/doc/classes/Switch.html +233 -0
  194. data/vendor/assets/javascripts/plinth/plugins/doc/classes/TBGForm.html +318 -0
  195. data/vendor/assets/javascripts/plinth/plugins/doc/extra_list.html +30 -0
  196. data/vendor/assets/javascripts/plinth/plugins/doc/file_list.html +58 -0
  197. data/vendor/assets/javascripts/plinth/plugins/doc/files/tbg-close.js.coffee.html +154 -0
  198. data/vendor/assets/javascripts/plinth/plugins/doc/files/tbg-forms.js.coffee.html +154 -0
  199. data/vendor/assets/javascripts/plinth/plugins/doc/files/tbg-ga-events.js.coffee.html +154 -0
  200. data/vendor/assets/javascripts/plinth/plugins/doc/files/tbg-respinsiveresize.js.coffee.html +154 -0
  201. data/vendor/assets/javascripts/plinth/plugins/doc/files/tbg-switch.js.coffee.html +154 -0
  202. data/vendor/assets/javascripts/plinth/plugins/doc/index.html +14 -0
  203. data/vendor/assets/javascripts/plinth/plugins/doc/method_list.html +163 -0
  204. data/vendor/assets/javascripts/plinth/plugins/doc/mixin_list.html +28 -0
  205. data/vendor/assets/javascripts/plinth/plugins/tbg-close.js.coffee +97 -0
  206. data/vendor/assets/javascripts/plinth/plugins/tbg-forms.js.coffee +156 -0
  207. data/vendor/assets/javascripts/plinth/plugins/tbg-ga-events.js.coffee +107 -0
  208. data/vendor/assets/javascripts/plinth/plugins/tbg-respinsiveresize.js.coffee +73 -0
  209. data/vendor/assets/javascripts/plinth/plugins/tbg-switch.js.coffee +121 -0
  210. data/vendor/assets/stylesheets/.gitkeep +0 -0
  211. data/vendor/assets/stylesheets/_functions.scss +28 -0
  212. data/vendor/assets/stylesheets/_mixins.css.scss +273 -0
  213. data/vendor/assets/stylesheets/_settings.css.scss +120 -0
  214. data/vendor/assets/stylesheets/plinth/base/_all.css.scss +7 -0
  215. data/vendor/assets/stylesheets/plinth/base/_buttons.css.scss +166 -0
  216. data/vendor/assets/stylesheets/plinth/base/_form.css.scss +196 -0
  217. data/vendor/assets/stylesheets/plinth/base/_labels.css.scss +58 -0
  218. data/vendor/assets/stylesheets/plinth/base/_lists.css.scss +57 -0
  219. data/vendor/assets/stylesheets/plinth/base/_reset.css.scss +284 -0
  220. data/vendor/assets/stylesheets/plinth/base/_type.css.scss +328 -0
  221. data/vendor/assets/stylesheets/plinth/base/webfonts/_all.css.scss +2 -0
  222. data/vendor/assets/stylesheets/plinth/base/webfonts/ss-social.css.scss +57 -0
  223. data/vendor/assets/stylesheets/plinth/base/webfonts/ss-standard.css.scss +48 -0
  224. data/vendor/assets/stylesheets/plinth/grid/_grid.css.scss +127 -0
  225. data/vendor/assets/stylesheets/plinth/modules/_alert.css.scss +71 -0
  226. data/vendor/assets/stylesheets/plinth/modules/_all-grid.css.scss +1 -0
  227. data/vendor/assets/stylesheets/plinth/modules/_all-no-grid.css.scss +4 -0
  228. data/vendor/assets/stylesheets/plinth/modules/_footer.css.scss +93 -0
  229. data/vendor/assets/stylesheets/plinth/modules/_nav.css.scss +106 -0
  230. data/vendor/assets/stylesheets/plinth/modules/_panel.css.scss +28 -0
  231. data/vendor/assets/stylesheets/plinth/modules/_switch.css.scss +88 -0
  232. data/vendor/assets/stylesheets/plinth.css.scss +15 -0
  233. data/vendor/assets/views/buttons/_buttons.haml +9 -0
  234. data/vendor/assets/views/forms/_vertical_form.haml +7 -0
  235. data/vendor/assets/views/type/_headings.haml +6 -0
  236. data/vendor/assets/views/type/_paragraphs.haml +4 -0
  237. metadata +537 -0
@@ -0,0 +1,160 @@
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'>plinth</span>
19
+ &raquo;
20
+ <span class='title'>plugins</span>
21
+ &raquo;
22
+ <span class='title'>tbg-respinsiveresize.js.coffee</span>
23
+ <nav>
24
+ <ul>
25
+ <li class='noframes'>
26
+ (<a class='noframes' href='#'>no frames</a>)
27
+ </li>
28
+ </ul>
29
+ </nav>
30
+ <div id='search'>
31
+ <a id='class_list_link' href='../../../class_list.html'>Classes</a>
32
+ <a id='file_list_link' href='../../../file_list.html'>Files</a>
33
+ <a id='method_list_link' href='../../../method_list.html'>Methods</a>
34
+ <a id='extra_list_link' href='../../../extra_list.html'>Extras</a>
35
+ </div>
36
+ </div>
37
+ <iframe id='search_frame'></iframe>
38
+ <div id='fuzzySearch'>
39
+ <input type='text'>
40
+ <ol></ol>
41
+ </div>
42
+ <div id='help'>
43
+ <p>
44
+ Quickly fuzzy find classes, mixins, methods, file:
45
+ </p>
46
+ <ul>
47
+ <li>
48
+ <span>Ctrl-T</span>
49
+ Open fuzzy finder dialog
50
+ </li>
51
+ </ul>
52
+ <p>
53
+ In frame mode you can toggle the list naviation frame on the left side:
54
+ </p>
55
+ <ul>
56
+ <li>
57
+ <span>Ctrl-L</span>
58
+ Toggle list view
59
+ </li>
60
+ </ul>
61
+ <p>
62
+ You can focus a list in frame mode or toggle a tab in frameless mode:
63
+ </p>
64
+ <ul>
65
+ <li>
66
+ <span>Ctrl-C</span>
67
+ Class list
68
+ </li>
69
+ <li>
70
+ <span>Ctrl-I</span>
71
+ Mixin list
72
+ </li>
73
+ <li>
74
+ <span>Ctrl-F</span>
75
+ File list
76
+ </li>
77
+ <li>
78
+ <span>Ctrl-M</span>
79
+ Method list
80
+ </li>
81
+ <li>
82
+ <span>Ctrl-E</span>
83
+ Extras list
84
+ </li>
85
+ </ul>
86
+ <p>
87
+ You can focus and blur the search input:
88
+ </p>
89
+ <ul>
90
+ <li>
91
+ <span>Ctrl-S</span>
92
+ Focus search input
93
+ </li>
94
+ <li>
95
+ <span>Esc</span>
96
+ Blur search input
97
+ </li>
98
+ </ul>
99
+ <p>
100
+ In frameless mode you can close the list tab:
101
+ </p>
102
+ <ul>
103
+ <li>
104
+ <span>Esc</span>
105
+ Close list tab
106
+ </li>
107
+ </ul>
108
+ </div>
109
+ </div>
110
+ <div id='content'>
111
+ <h1>
112
+ File:
113
+ tbg-respinsiveresize.js.coffee
114
+ </h1>
115
+ <table class='box'>
116
+ <tr>
117
+ <td>Defined in:</td>
118
+ <td>plinth&#47;plugins</td>
119
+ </tr>
120
+ </table>
121
+ <h2>Method Summary</h2>
122
+ <ul class='summary'>
123
+ <li>
124
+ <span class='signature'>
125
+ <a href='#plugin-file'>
126
+ ? (void) <strong>plugin</strong>($)
127
+ </a>
128
+ </span>
129
+ <span class='desc'>
130
+
131
+ </span>
132
+ </li>
133
+ </ul>
134
+ <h2>Method Details</h2>
135
+ <div class='methods'>
136
+ <div class='method_details'>
137
+ <p class='signature' id='plugin-file'>
138
+ ? (void) <strong>plugin</strong>($)
139
+ </p>
140
+ <div class='tags'>
141
+ </div>
142
+ </div>
143
+ </div>
144
+ </div>
145
+ <div id='footer'>
146
+ Generated on
147
+ Thu Mar 14 2013 13:49:05 GMT+0000 (GMT)
148
+ by
149
+ <a href='https://github.com/netzpirat/codo' title='CoffeeScript API documentation generator'>Codo</a>
150
+ v1.5.6
151
+ (Node.js v0.8.8).
152
+ &#10034;
153
+ Press Ctrl-h to see the keyboard shortcuts
154
+ &#10034;
155
+ <a href='http://twitter.com/#!/netzpirat'>@netzpirat</a>
156
+ &#10034;
157
+ <a href='https://mksoft.ch'>mksoft.ch</a>
158
+ </div>
159
+ </body>
160
+ </html>
@@ -0,0 +1,160 @@
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'>plinth</span>
19
+ &raquo;
20
+ <span class='title'>plugins</span>
21
+ &raquo;
22
+ <span class='title'>tbg-switch.js.coffee</span>
23
+ <nav>
24
+ <ul>
25
+ <li class='noframes'>
26
+ (<a class='noframes' href='#'>no frames</a>)
27
+ </li>
28
+ </ul>
29
+ </nav>
30
+ <div id='search'>
31
+ <a id='class_list_link' href='../../../class_list.html'>Classes</a>
32
+ <a id='file_list_link' href='../../../file_list.html'>Files</a>
33
+ <a id='method_list_link' href='../../../method_list.html'>Methods</a>
34
+ <a id='extra_list_link' href='../../../extra_list.html'>Extras</a>
35
+ </div>
36
+ </div>
37
+ <iframe id='search_frame'></iframe>
38
+ <div id='fuzzySearch'>
39
+ <input type='text'>
40
+ <ol></ol>
41
+ </div>
42
+ <div id='help'>
43
+ <p>
44
+ Quickly fuzzy find classes, mixins, methods, file:
45
+ </p>
46
+ <ul>
47
+ <li>
48
+ <span>Ctrl-T</span>
49
+ Open fuzzy finder dialog
50
+ </li>
51
+ </ul>
52
+ <p>
53
+ In frame mode you can toggle the list naviation frame on the left side:
54
+ </p>
55
+ <ul>
56
+ <li>
57
+ <span>Ctrl-L</span>
58
+ Toggle list view
59
+ </li>
60
+ </ul>
61
+ <p>
62
+ You can focus a list in frame mode or toggle a tab in frameless mode:
63
+ </p>
64
+ <ul>
65
+ <li>
66
+ <span>Ctrl-C</span>
67
+ Class list
68
+ </li>
69
+ <li>
70
+ <span>Ctrl-I</span>
71
+ Mixin list
72
+ </li>
73
+ <li>
74
+ <span>Ctrl-F</span>
75
+ File list
76
+ </li>
77
+ <li>
78
+ <span>Ctrl-M</span>
79
+ Method list
80
+ </li>
81
+ <li>
82
+ <span>Ctrl-E</span>
83
+ Extras list
84
+ </li>
85
+ </ul>
86
+ <p>
87
+ You can focus and blur the search input:
88
+ </p>
89
+ <ul>
90
+ <li>
91
+ <span>Ctrl-S</span>
92
+ Focus search input
93
+ </li>
94
+ <li>
95
+ <span>Esc</span>
96
+ Blur search input
97
+ </li>
98
+ </ul>
99
+ <p>
100
+ In frameless mode you can close the list tab:
101
+ </p>
102
+ <ul>
103
+ <li>
104
+ <span>Esc</span>
105
+ Close list tab
106
+ </li>
107
+ </ul>
108
+ </div>
109
+ </div>
110
+ <div id='content'>
111
+ <h1>
112
+ File:
113
+ tbg-switch.js.coffee
114
+ </h1>
115
+ <table class='box'>
116
+ <tr>
117
+ <td>Defined in:</td>
118
+ <td>plinth&#47;plugins</td>
119
+ </tr>
120
+ </table>
121
+ <h2>Method Summary</h2>
122
+ <ul class='summary'>
123
+ <li>
124
+ <span class='signature'>
125
+ <a href='#plugin-file'>
126
+ ? (void) <strong>plugin</strong>($)
127
+ </a>
128
+ </span>
129
+ <span class='desc'>
130
+
131
+ </span>
132
+ </li>
133
+ </ul>
134
+ <h2>Method Details</h2>
135
+ <div class='methods'>
136
+ <div class='method_details'>
137
+ <p class='signature' id='plugin-file'>
138
+ ? (void) <strong>plugin</strong>($)
139
+ </p>
140
+ <div class='tags'>
141
+ </div>
142
+ </div>
143
+ </div>
144
+ </div>
145
+ <div id='footer'>
146
+ Generated on
147
+ Thu Mar 14 2013 13:49:05 GMT+0000 (GMT)
148
+ by
149
+ <a href='https://github.com/netzpirat/codo' title='CoffeeScript API documentation generator'>Codo</a>
150
+ v1.5.6
151
+ (Node.js v0.8.8).
152
+ &#10034;
153
+ Press Ctrl-h to see the keyboard shortcuts
154
+ &#10034;
155
+ <a href='http://twitter.com/#!/netzpirat'>@netzpirat</a>
156
+ &#10034;
157
+ <a href='https://mksoft.ch'>mksoft.ch</a>
158
+ </div>
159
+ </body>
160
+ </html>
@@ -0,0 +1,14 @@
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
+ <frameset cols='20%, *'>
11
+ <frame name='list' src='class_list.html'></frame>
12
+ <frame name='main' src='README.md.html'></frame>
13
+ </frameset>
14
+ </html>
@@ -0,0 +1,187 @@
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 class='list'>
11
+ <div class='list' id='content'>
12
+ <h1 class='full_list_header'>Method List</h1>
13
+ <nav>
14
+ <a target='_self' href='class_list.html'>Classes</a>
15
+ <a target='_self' href='file_list.html'>Files</a>
16
+ <a target='_self' href='method_list.html'>Methods</a>
17
+ <a target='_self' href='extra_list.html'>Extras</a>
18
+ </nav>
19
+ <div id='search'>
20
+ Search:
21
+ <input type='text'>
22
+ </div>
23
+ <ul>
24
+ <li>
25
+ <a href='classes/Switch.html#_closeGroup-instance' target='main' title='_closeGroup'>
26
+ #_closeGroup
27
+ </a>
28
+ <small>
29
+ (Switch)
30
+ </small>
31
+ </li>
32
+ <li>
33
+ <a href='classes/Switch.html#_getContent-instance' target='main' title='_getContent'>
34
+ #_getContent
35
+ </a>
36
+ <small>
37
+ (Switch)
38
+ </small>
39
+ </li>
40
+ <li>
41
+ <a href='classes/Close.html#_getTarget-instance' target='main' title='_getTarget'>
42
+ #_getTarget
43
+ </a>
44
+ <small>
45
+ (Close)
46
+ </small>
47
+ </li>
48
+ <li>
49
+ <a href='classes/TBGForm.html#_showSuccessPlain-instance' target='main' title='_showSuccessPlain'>
50
+ #_showSuccessPlain
51
+ </a>
52
+ <small>
53
+ (TBGForm)
54
+ </small>
55
+ </li>
56
+ <li>
57
+ <a href='classes/TBGForm.html#_showSuccessTemplated-instance' target='main' title='_showSuccessTemplated'>
58
+ #_showSuccessTemplated
59
+ </a>
60
+ <small>
61
+ (TBGForm)
62
+ </small>
63
+ </li>
64
+ <li>
65
+ <a href='classes/Switch.html#changeStateTo-instance' target='main' title='changeStateTo'>
66
+ #changeStateTo
67
+ </a>
68
+ <small>
69
+ (Switch)
70
+ </small>
71
+ </li>
72
+ <li>
73
+ <a href='classes/Switch.html#click-instance' target='main' title='click'>
74
+ #click
75
+ </a>
76
+ <small>
77
+ (Switch)
78
+ </small>
79
+ </li>
80
+ <li>
81
+ <a href='classes/Close.html#close-instance' target='main' title='close'>
82
+ #close
83
+ </a>
84
+ <small>
85
+ (Close)
86
+ </small>
87
+ </li>
88
+ <li>
89
+ <a href='files/plinth/plugins/tbg-close.js.coffee.html#plugin-file' target='main' title='plugin'>
90
+ .plugin
91
+ </a>
92
+ <small>
93
+ (tyleguide&#47;plugins&#47;tbg-close.js.coffee)
94
+ </small>
95
+ </li>
96
+ <li>
97
+ <a href='files/plinth/plugins/tbg-forms.js.coffee.html#plugin-file' target='main' title='plugin'>
98
+ .plugin
99
+ </a>
100
+ <small>
101
+ (tyleguide&#47;plugins&#47;tbg-forms.js.coffee)
102
+ </small>
103
+ </li>
104
+ <li>
105
+ <a href='files/plinth/plugins/tbg-ga-events.js.coffee.html#plugin-file' target='main' title='plugin'>
106
+ .plugin
107
+ </a>
108
+ <small>
109
+ (tyleguide&#47;plugins&#47;tbg-ga-events.js.coffee)
110
+ </small>
111
+ </li>
112
+ <li>
113
+ <a href='files/plinth/plugins/tbg-respinsiveresize.js.coffee.html#plugin-file' target='main' title='plugin'>
114
+ .plugin
115
+ </a>
116
+ <small>
117
+ (tyleguide&#47;plugins&#47;tbg-respinsiveresize.js.coffee)
118
+ </small>
119
+ </li>
120
+ <li>
121
+ <a href='files/plinth/plugins/tbg-switch.js.coffee.html#plugin-file' target='main' title='plugin'>
122
+ .plugin
123
+ </a>
124
+ <small>
125
+ (tyleguide&#47;plugins&#47;tbg-switch.js.coffee)
126
+ </small>
127
+ </li>
128
+ <li>
129
+ <a href='classes/ResizeHandler.html#resize-instance' target='main' title='resize'>
130
+ #resize
131
+ </a>
132
+ <small>
133
+ (ResizeHandler)
134
+ </small>
135
+ </li>
136
+ <li>
137
+ <a href='classes/TBGForm.html#send-instance' target='main' title='send'>
138
+ #send
139
+ </a>
140
+ <small>
141
+ (TBGForm)
142
+ </small>
143
+ </li>
144
+ <li>
145
+ <a href='classes/GAEvent.html#sendEvent-instance' target='main' title='sendEvent'>
146
+ #sendEvent
147
+ </a>
148
+ <small>
149
+ (GAEvent)
150
+ </small>
151
+ </li>
152
+ <li>
153
+ <a href='classes/TBGForm.html#sendRequest-instance' target='main' title='sendRequest'>
154
+ #sendRequest
155
+ </a>
156
+ <small>
157
+ (TBGForm)
158
+ </small>
159
+ </li>
160
+ <li>
161
+ <a href='classes/TBGForm.html#showErrors-instance' target='main' title='showErrors'>
162
+ #showErrors
163
+ </a>
164
+ <small>
165
+ (TBGForm)
166
+ </small>
167
+ </li>
168
+ <li>
169
+ <a href='classes/TBGForm.html#showSuccess-instance' target='main' title='showSuccess'>
170
+ #showSuccess
171
+ </a>
172
+ <small>
173
+ (TBGForm)
174
+ </small>
175
+ </li>
176
+ <li>
177
+ <a href='classes/ResizeHandler.html#size-instance' target='main' title='size'>
178
+ #size
179
+ </a>
180
+ <small>
181
+ (ResizeHandler)
182
+ </small>
183
+ </li>
184
+ </ul>
185
+ </div>
186
+ </body>
187
+ </html>
@@ -0,0 +1,28 @@
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 class='list'>
11
+ <div class='list tree' id='content'>
12
+ <h1 class='full_list_header'>Mixin List</h1>
13
+ <nav>
14
+ <a target='_self' href='class_list.html'>Classes</a>
15
+ <a target='_self' href='file_list.html'>Files</a>
16
+ <a target='_self' href='method_list.html'>Methods</a>
17
+ <a target='_self' href='extra_list.html'>Extras</a>
18
+ </nav>
19
+ <div id='search'>
20
+ Search:
21
+ <input type='text'>
22
+ </div>
23
+ <ul>
24
+ </ul>
25
+
26
+ </div>
27
+ </body>
28
+ </html>
data/public/robots.txt ADDED
@@ -0,0 +1,5 @@
1
+ # See http://www.robotstxt.org/wc/norobots.html for documentation on how to use the robots.txt file
2
+ #
3
+ # To ban all spiders from the entire site uncomment the next two lines:
4
+ # User-Agent: *
5
+ # Disallow: /
data/script/rails ADDED
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+ # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
3
+
4
+ APP_PATH = File.expand_path('../../config/application', __FILE__)
5
+ require File.expand_path('../../config/boot', __FILE__)
6
+ require 'rails/commands'
@@ -0,0 +1,4 @@
1
+ %section#element101
2
+ %p content
3
+ %a.ss-icon.close{:href=>"#element101" , :data => {:close => true}} close
4
+
@@ -0,0 +1,12 @@
1
+ #replaceContent My content
2
+ %form.inline-form{ :class=>"new_mailinglist", :id=>"new_mailinglist", :data=>{:forms => "/insights.json", :"forms-success-content" => "<h3>Test content {{a.b}}</h3>", :"forms-success-replace"=>"#replaceContent"}}
3
+ .row
4
+ .mother-eight.column
5
+ .row.collapse
6
+ .mother-three.column
7
+ %label{:for=>"mailinglist_email"} Email
8
+ %input.email{:type=>"email", :name=>"emails", :id=>"mailinglist_email", :name=>"mailinglist[email]", :placeholder=>"Your Email Address"}
9
+
10
+ .mother-one.column
11
+ %input{:type=>"submit", :class=>"small orange btn suffix"}
12
+
@@ -0,0 +1,9 @@
1
+ %a{:href=>"#clickyclick", :class=>"btn", :data=> {:gaevent=>"ping|ding"}}
2
+
3
+ %a{:href=>"#clickyclick", :class=>"btn2", :data=> {:gaevent=>""}}
4
+
5
+ %a{:href=>"#clickyclick", :class=>"btn3", :data=> {"gaevent-load" =>'ping|ding'}}
6
+
7
+ %form{:class=>"GAForm", :data=>{"gaevent-form"=>"ping|ding"}}
8
+ %input{:type=>"text"}
9
+ %input{:type=>"submit"}
@@ -0,0 +1,11 @@
1
+ %ul
2
+ - 3.times do |n|
3
+ %li= link_to "Drop down link", "#target#{n}", :data => { :switch => true }, :id => "eg#{n}"
4
+ - 3.times do |n|
5
+ %div{:id => "target#{n}"} switch content
6
+
7
+ %ul
8
+ - 3.times do |n|
9
+ %li= link_to "Drop down link", "#target#{n}-2", :data => { :switch => true, :"switch-group" => "group-1" }, :id => "eg#{n}-2"
10
+ - 3.times do |n|
11
+ %div{:id => "target#{n}-2"} switch content
@@ -0,0 +1,54 @@
1
+ #=require plinth/plugins/tbg-close
2
+
3
+ describe 'Close:', ->
4
+ beforeEach ->
5
+ loadFixtures "plugins/tbg-close_fixture"
6
+
7
+ describe 'A good jquery plugin', ->
8
+ it 'should exisit', ->
9
+ expect($.fn.close).toBeDefined()
10
+
11
+ it 'should return element', ->
12
+ expect($(document.body).close()[0]).toEqual document.body
13
+
14
+ describe 'instantiates class upon click', ->
15
+ it "adds the instance to the data method", ->
16
+ link = $('[data-close]')
17
+ # We make the target fail so that it is
18
+ # not removed before we can test
19
+ link.attr 'href', "#noelement"
20
+ link.click()
21
+ expect( link.data('closePlugin') ).toBeDefined()
22
+
23
+ describe 'Define variables upon instantiation', ->
24
+ it "defines close target variable if set as data attribute", ->
25
+ link = $('[data-close]')
26
+ link.attr 'data-close', '#element101'
27
+ link.close()
28
+ expect( link.data('closePlugin').$target ).toEqual $('#element101')
29
+
30
+
31
+ it "defines close target variable if set as href attribute", ->
32
+ link = $('[data-close]').close()
33
+ expect( link.data('closePlugin').$target ).toEqual $('#element101')
34
+
35
+ it "defines close target variable as false if no element matches", ->
36
+ link = $('[data-close]')
37
+ link.attr 'href', "#noelement"
38
+ link.close()
39
+ expect( link.data('closePlugin').$target ).toBeFalsy()
40
+
41
+ describe 'Events emmited', ->
42
+ it "fires a close event when closing", ->
43
+ spyOnEvent($('#element101'), 'close');
44
+ $('[data-close]').click()
45
+ expect('close').toHaveBeenTriggeredOn '#element101'
46
+
47
+ describe 'Removes target', ->
48
+ it "removes targte on click", ->
49
+ expect( $('#element101') ).toExist()
50
+ link = $('[data-close]')
51
+ link.click()
52
+ expect( $('#element101') ).not.toExist()
53
+
54
+