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.
- data/.codoopts +10 -0
- data/.env +1 -0
- data/.gitignore +23 -0
- data/.ruby-version +1 -0
- data/CHANGELOG.md +1 -0
- data/Capfile +4 -0
- data/Gemfile +52 -0
- data/Gemfile.lock +243 -0
- data/Guardfile +9 -0
- data/LICENSE +22 -0
- data/Procfile +1 -0
- data/README.md +79 -0
- data/Rakefile +35 -0
- data/app/assets/images/layouts/basic-marketing-site.png +0 -0
- data/app/assets/images/layouts/jumbotron-site.png +0 -0
- data/app/assets/images/rails.png +0 -0
- data/app/assets/javascripts/application.js +17 -0
- data/app/assets/javascripts/base.js.coffee +3 -0
- data/app/assets/javascripts/grids.js.coffee +3 -0
- data/app/assets/javascripts/javascript.js.coffee +3 -0
- data/app/assets/javascripts/lib/modernizr.js +4 -0
- data/app/assets/javascripts/modules.js.coffee +3 -0
- data/app/assets/stylesheets/application-old-ie.css.scss +10 -0
- data/app/assets/stylesheets/application.css.scss +57 -0
- data/app/assets/stylesheets/base/_all.scss +6 -0
- data/app/assets/stylesheets/base/_reset.css.scss +16 -0
- data/app/assets/stylesheets/base/_type.scss +16 -0
- data/app/assets/stylesheets/modules/_coderay.css.scss +171 -0
- data/app/assets/stylesheets/modules/_layout_examples.css.scss +13 -0
- data/app/assets/stylesheets/modules/_webfont_table.css.scss +47 -0
- data/app/assets/stylesheets/vanilla-normal-old-ie.css.scss +11 -0
- data/app/assets/stylesheets/vanilla-normal.css.scss +33 -0
- data/app/controllers/application_controller.rb +5 -0
- data/app/controllers/base_controller.rb +52 -0
- data/app/controllers/grids_controller.rb +48 -0
- data/app/controllers/javascript_controller.rb +20 -0
- data/app/controllers/javascripts_controller.rb +4 -0
- data/app/controllers/modules_controller.rb +43 -0
- data/app/controllers/ui_controller.rb +2 -0
- data/app/helpers/plinth_helper.rb +33 -0
- data/app/views/base/_webfonts_social_standard.html +429 -0
- data/app/views/base/_webfonts_ss_standard.html +2413 -0
- data/app/views/base/buttons.html.haml +20 -0
- data/app/views/base/forms.html.haml +40 -0
- data/app/views/base/images.html.haml +20 -0
- data/app/views/base/index.html.haml +68 -0
- data/app/views/base/labels.html.haml +22 -0
- data/app/views/base/lists.html.haml +20 -0
- data/app/views/base/webfonts.html.haml +17 -0
- data/app/views/grids/index.html.haml +73 -0
- data/app/views/grids/layouts/basic-marketing-site.haml +69 -0
- data/app/views/grids/layouts/jumbotron-site.haml +92 -0
- data/app/views/grids/layouts.html.haml +9 -0
- data/app/views/layouts/_main_nav.html.haml +15 -0
- data/app/views/layouts/application.html.haml +15 -0
- data/app/views/modules/alerts.html.haml +12 -0
- data/app/views/modules/footer.html.haml +2 -0
- data/app/views/modules/index.html.haml +5 -0
- data/app/views/modules/nav.html.haml +12 -0
- data/app/views/modules/panels.html.haml +3 -0
- data/app/views/modules/tabs.html.haml +58 -0
- data/app/views/old_javascript/close.html.haml +2 -0
- data/app/views/old_javascript/forms.html.haml +2 -0
- data/app/views/old_javascript/ga_events.html.haml +2 -0
- data/app/views/old_javascript/index.html.haml +2 -0
- data/app/views/old_javascript/responsive_resize.html.haml +2 -0
- data/app/views/old_javascript/switch.html.haml +2 -0
- data/app/views/parts/base/_button.haml +3 -0
- data/app/views/parts/base/_button_colours.haml +4 -0
- data/app/views/parts/base/_button_group.haml +4 -0
- data/app/views/parts/base/_button_sizing.haml +3 -0
- data/app/views/parts/base/_button_states.haml +3 -0
- data/app/views/parts/base/_form_example.haml +26 -0
- data/app/views/parts/base/_form_example_horizontal.haml +26 -0
- data/app/views/parts/base/_form_group.haml +10 -0
- data/app/views/parts/base/_form_location.haml +3 -0
- data/app/views/parts/base/_labels.haml +5 -0
- data/app/views/parts/base/_labels_sizing.haml +3 -0
- data/app/views/parts/base/_list.haml +10 -0
- data/app/views/parts/base/_list_action.haml +5 -0
- data/app/views/parts/base/_list_nav.haml +12 -0
- data/app/views/parts/base/_list_unset.haml +10 -0
- data/app/views/parts/base/_type_body.haml +2 -0
- data/app/views/parts/base/_type_headings.haml +5 -0
- data/app/views/parts/base/_type_helpers.haml +3 -0
- data/app/views/parts/base/_type_links.haml +9 -0
- data/app/views/parts/base/_type_shouts.haml +4 -0
- data/app/views/parts/grids/_example_layout_1.haml +10 -0
- data/app/views/parts/grids/_live_grid.haml +29 -0
- data/app/views/parts/modules/_alerts.haml +11 -0
- data/app/views/parts/modules/_nav_footer.haml +34 -0
- data/app/views/parts/modules/_nav_header.haml +18 -0
- data/app/views/parts/modules/_panels.haml +9 -0
- data/app/views/parts/modules/_tabs_minimal.haml +11 -0
- data/app/views/parts/modules/_tabs_simple_group.haml +11 -0
- data/app/views/parts/modules/_tabs_simple_group_toggle.haml +11 -0
- data/app/views/parts/modules/_tabs_toggle.haml +5 -0
- data/app/views/parts/modules/_tabs_traditional.haml +11 -0
- data/app/views/shared/_placeholder_text.html.haml +1 -0
- data/app/views/shared/_title.html.haml +8 -0
- data/app/views/shared/_ui_nav.html.haml +5 -0
- data/app/views/ui/alert.html.haml +35 -0
- data/app/views/ui/buttons.html.haml +116 -0
- data/app/views/ui/footer.html.haml +69 -0
- data/app/views/ui/forms/_vertical_form.haml +7 -0
- data/app/views/ui/forms.html.haml +59 -0
- data/app/views/ui/grids.html.haml +18 -0
- data/app/views/ui/index.html.haml +5 -0
- data/app/views/ui/labels.html.haml +15 -0
- data/app/views/ui/modules/panel.html.haml +3 -0
- data/app/views/ui/nav.html.haml +48 -0
- data/app/views/ui/tabs.html.haml +171 -0
- data/app/views/ui/typography.html.haml +118 -0
- data/db/development.sqlite3 +0 -0
- data/db/seeds.rb +7 -0
- data/doc/README_FOR_APP +2 -0
- data/lib/assets/.gitkeep +0 -0
- data/lib/plinth/version.rb +3 -0
- data/lib/plinth.rb +11 -0
- data/lib/tasks/.gitkeep +0 -0
- data/lib/templates/haml/scaffold/_form.html.haml +8 -0
- data/log/.gitkeep +0 -0
- data/plinth.gemspec +33 -0
- data/public/404.html +26 -0
- data/public/422.html +26 -0
- data/public/500.html +25 -0
- data/public/favicon.ico +0 -0
- data/public/javascripts/LICENSE.html +158 -0
- data/public/javascripts/README.md.html +163 -0
- data/public/javascripts/assets/codo.css +1 -0
- data/public/javascripts/assets/codo.js +21 -0
- data/public/javascripts/assets/search_data.js +1 -0
- data/public/javascripts/class_index.html +215 -0
- data/public/javascripts/class_list.html +58 -0
- data/public/javascripts/classes/Close.html +259 -0
- data/public/javascripts/classes/GAEvent.html +231 -0
- data/public/javascripts/classes/ResizeHandler.html +225 -0
- data/public/javascripts/classes/Switch.html +318 -0
- data/public/javascripts/classes/TBGForm.html +373 -0
- data/public/javascripts/extra_list.html +36 -0
- data/public/javascripts/file_list.html +74 -0
- data/public/javascripts/files/styleguide/plugins/tbg-close.js.coffee.html +160 -0
- data/public/javascripts/files/styleguide/plugins/tbg-forms.js.coffee.html +160 -0
- data/public/javascripts/files/styleguide/plugins/tbg-ga-events.js.coffee.html +160 -0
- data/public/javascripts/files/styleguide/plugins/tbg-respinsiveresize.js.coffee.html +160 -0
- data/public/javascripts/files/styleguide/plugins/tbg-switch.js.coffee.html +160 -0
- data/public/javascripts/index.html +14 -0
- data/public/javascripts/method_list.html +187 -0
- data/public/javascripts/mixin_list.html +28 -0
- data/public/robots.txt +5 -0
- data/script/rails +6 -0
- data/spec/javascripts/fixtures/plugins/tbg-close_fixture.html.haml +4 -0
- data/spec/javascripts/fixtures/plugins/tbg-forms_fixture.html.haml +12 -0
- data/spec/javascripts/fixtures/plugins/tbg-ga-events_fixture.html.haml +9 -0
- data/spec/javascripts/fixtures/plugins/tbg-switch_fixture.html.haml +11 -0
- data/spec/javascripts/plugins/tbg-close_spec.js.coffee +54 -0
- data/spec/javascripts/plugins/tbg-forms_spec.js.coffee +87 -0
- data/spec/javascripts/plugins/tbg-ga-events_spec.js.coffee +83 -0
- data/spec/javascripts/plugins/tbg-switch_spec.js.coffee +96 -0
- data/spec/javascripts/spec.js.coffee +2 -0
- data/vendor/assets/fonts/ss-social-circle.eot +0 -0
- data/vendor/assets/fonts/ss-social-circle.svg +139 -0
- data/vendor/assets/fonts/ss-social-circle.ttf +0 -0
- data/vendor/assets/fonts/ss-social-circle.woff +0 -0
- data/vendor/assets/fonts/ss-social-regular.eot +0 -0
- data/vendor/assets/fonts/ss-social-regular.svg +133 -0
- data/vendor/assets/fonts/ss-social-regular.ttf +0 -0
- data/vendor/assets/fonts/ss-social-regular.woff +0 -0
- data/vendor/assets/fonts/ss-social.js +75 -0
- data/vendor/assets/fonts/ss-standard.eot +0 -0
- data/vendor/assets/fonts/ss-standard.js +75 -0
- data/vendor/assets/fonts/ss-standard.svg +207 -0
- data/vendor/assets/fonts/ss-standard.ttf +0 -0
- data/vendor/assets/fonts/ss-standard.woff +0 -0
- data/vendor/assets/images/background.png +0 -0
- data/vendor/assets/images/logos/sb-logo-white.png +0 -0
- data/vendor/assets/images/logos/sb-logo-white.svg +5 -0
- data/vendor/assets/images/middleman.png +0 -0
- data/vendor/assets/index.html.haml +8 -0
- data/vendor/assets/javascripts/.gitkeep +0 -0
- data/vendor/assets/javascripts/plinth/lib/handlebars.js +3 -0
- data/vendor/assets/javascripts/plinth/lib/jquery.fitvids.js +81 -0
- data/vendor/assets/javascripts/plinth/lib/ss-social.js +75 -0
- data/vendor/assets/javascripts/plinth/lib/ss-standard.js +78 -0
- data/vendor/assets/javascripts/plinth/plugins/doc/assets/codo.css +1 -0
- data/vendor/assets/javascripts/plinth/plugins/doc/assets/codo.js +21 -0
- data/vendor/assets/javascripts/plinth/plugins/doc/assets/search_data.js +1 -0
- data/vendor/assets/javascripts/plinth/plugins/doc/class_index.html +194 -0
- data/vendor/assets/javascripts/plinth/plugins/doc/class_list.html +58 -0
- data/vendor/assets/javascripts/plinth/plugins/doc/classes/Close.html +215 -0
- data/vendor/assets/javascripts/plinth/plugins/doc/classes/GAEvent.html +235 -0
- data/vendor/assets/javascripts/plinth/plugins/doc/classes/ResizeHandler.html +192 -0
- data/vendor/assets/javascripts/plinth/plugins/doc/classes/Switch.html +233 -0
- data/vendor/assets/javascripts/plinth/plugins/doc/classes/TBGForm.html +318 -0
- data/vendor/assets/javascripts/plinth/plugins/doc/extra_list.html +30 -0
- data/vendor/assets/javascripts/plinth/plugins/doc/file_list.html +58 -0
- data/vendor/assets/javascripts/plinth/plugins/doc/files/tbg-close.js.coffee.html +154 -0
- data/vendor/assets/javascripts/plinth/plugins/doc/files/tbg-forms.js.coffee.html +154 -0
- data/vendor/assets/javascripts/plinth/plugins/doc/files/tbg-ga-events.js.coffee.html +154 -0
- data/vendor/assets/javascripts/plinth/plugins/doc/files/tbg-respinsiveresize.js.coffee.html +154 -0
- data/vendor/assets/javascripts/plinth/plugins/doc/files/tbg-switch.js.coffee.html +154 -0
- data/vendor/assets/javascripts/plinth/plugins/doc/index.html +14 -0
- data/vendor/assets/javascripts/plinth/plugins/doc/method_list.html +163 -0
- data/vendor/assets/javascripts/plinth/plugins/doc/mixin_list.html +28 -0
- data/vendor/assets/javascripts/plinth/plugins/tbg-close.js.coffee +97 -0
- data/vendor/assets/javascripts/plinth/plugins/tbg-forms.js.coffee +156 -0
- data/vendor/assets/javascripts/plinth/plugins/tbg-ga-events.js.coffee +107 -0
- data/vendor/assets/javascripts/plinth/plugins/tbg-respinsiveresize.js.coffee +73 -0
- data/vendor/assets/javascripts/plinth/plugins/tbg-switch.js.coffee +121 -0
- data/vendor/assets/stylesheets/.gitkeep +0 -0
- data/vendor/assets/stylesheets/_functions.scss +28 -0
- data/vendor/assets/stylesheets/_mixins.css.scss +273 -0
- data/vendor/assets/stylesheets/_settings.css.scss +120 -0
- data/vendor/assets/stylesheets/plinth/base/_all.css.scss +7 -0
- data/vendor/assets/stylesheets/plinth/base/_buttons.css.scss +166 -0
- data/vendor/assets/stylesheets/plinth/base/_form.css.scss +196 -0
- data/vendor/assets/stylesheets/plinth/base/_labels.css.scss +58 -0
- data/vendor/assets/stylesheets/plinth/base/_lists.css.scss +57 -0
- data/vendor/assets/stylesheets/plinth/base/_reset.css.scss +284 -0
- data/vendor/assets/stylesheets/plinth/base/_type.css.scss +328 -0
- data/vendor/assets/stylesheets/plinth/base/webfonts/_all.css.scss +2 -0
- data/vendor/assets/stylesheets/plinth/base/webfonts/ss-social.css.scss +57 -0
- data/vendor/assets/stylesheets/plinth/base/webfonts/ss-standard.css.scss +48 -0
- data/vendor/assets/stylesheets/plinth/grid/_grid.css.scss +127 -0
- data/vendor/assets/stylesheets/plinth/modules/_alert.css.scss +71 -0
- data/vendor/assets/stylesheets/plinth/modules/_all-grid.css.scss +1 -0
- data/vendor/assets/stylesheets/plinth/modules/_all-no-grid.css.scss +4 -0
- data/vendor/assets/stylesheets/plinth/modules/_footer.css.scss +93 -0
- data/vendor/assets/stylesheets/plinth/modules/_nav.css.scss +106 -0
- data/vendor/assets/stylesheets/plinth/modules/_panel.css.scss +28 -0
- data/vendor/assets/stylesheets/plinth/modules/_switch.css.scss +88 -0
- data/vendor/assets/stylesheets/plinth.css.scss +15 -0
- data/vendor/assets/views/buttons/_buttons.haml +9 -0
- data/vendor/assets/views/forms/_vertical_form.haml +7 -0
- data/vendor/assets/views/type/_headings.haml +6 -0
- data/vendor/assets/views/type/_paragraphs.haml +4 -0
- metadata +537 -0
|
@@ -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
|
+
»
|
|
16
|
+
<a href='../class_index.html' title='Index'>Index</a>
|
|
17
|
+
»
|
|
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/assets/javascripts/plinth/plugins/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 => '/some/link', :class => 'btn', :data => { :gaevent => 'category|action|opt_label|opt_value|opt_noninteraction' } }
|
|
126
|
+
# See: https://developers.google.com/analytics/devguides/collection/gajs/eventTrackerGuide</code></pre>
|
|
127
|
+
<h4>
|
|
128
|
+
How to ensure plugin self initialises on element
|
|
129
|
+
</h4>
|
|
130
|
+
<pre><code class='coffee'><form data-gaevent-load="true"> ... </form></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
|
+
—
|
|
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
|
+
—
|
|
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
|
+
—
|
|
209
|
+
<span class='desc'>If Google Analytics _gaq array defined then push data array after inserting '_trackEvent' 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
|
+
✲
|
|
224
|
+
Press Ctrl-h to see the keyboard shortcuts
|
|
225
|
+
✲
|
|
226
|
+
<a href='http://twitter.com/#!/netzpirat'>@netzpirat</a>
|
|
227
|
+
✲
|
|
228
|
+
<a href='https://mksoft.ch'>mksoft.ch</a>
|
|
229
|
+
</div>
|
|
230
|
+
</body>
|
|
231
|
+
</html>
|
|
@@ -0,0 +1,225 @@
|
|
|
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
|
+
»
|
|
16
|
+
<a href='../class_index.html' title='Index'>Index</a>
|
|
17
|
+
»
|
|
18
|
+
<span class='title'>ResizeHandler</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
|
+
ResizeHandler
|
|
110
|
+
</h1>
|
|
111
|
+
<table class='box'>
|
|
112
|
+
<tr>
|
|
113
|
+
<td>Defined in:</td>
|
|
114
|
+
<td>vendor/assets/javascripts/plinth/plugins/tbg-respinsiveresize.js.coffee</td>
|
|
115
|
+
</tr>
|
|
116
|
+
</table>
|
|
117
|
+
<h2>Overview</h2>
|
|
118
|
+
<div class='docstring'>
|
|
119
|
+
<p>RESIZEHANDLER 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'>resizeHandlerInstance = new ResizeHandler()</code></pre>
|
|
126
|
+
</div>
|
|
127
|
+
</div>
|
|
128
|
+
<div class='tags'>
|
|
129
|
+
</div>
|
|
130
|
+
<h2>Instance Method Summary</h2>
|
|
131
|
+
<ul class='summary'>
|
|
132
|
+
<li>
|
|
133
|
+
<span class='signature'>
|
|
134
|
+
<a href='#constructor-instance'>
|
|
135
|
+
- (void) <strong>constructor</strong>()
|
|
136
|
+
</a>
|
|
137
|
+
</span>
|
|
138
|
+
<span class='constructor note title'>Constructor</span>
|
|
139
|
+
<span class='desc'>
|
|
140
|
+
Construct a new ResizeHandler instance Create resizeEvent method to trigger 'responsiveResize' event with current size
|
|
141
|
+
</span>
|
|
142
|
+
</li>
|
|
143
|
+
<li>
|
|
144
|
+
<span class='signature'>
|
|
145
|
+
<a href='#resize-instance'>
|
|
146
|
+
- (void) <strong>resize</strong>()
|
|
147
|
+
</a>
|
|
148
|
+
</span>
|
|
149
|
+
<span class='desc'>
|
|
150
|
+
Set a timeout to call resizeEvent after 100ms, clearing existing timeout if one set
|
|
151
|
+
</span>
|
|
152
|
+
</li>
|
|
153
|
+
<li>
|
|
154
|
+
<span class='signature'>
|
|
155
|
+
<a href='#size-instance'>
|
|
156
|
+
- (String) <strong>size</strong>()
|
|
157
|
+
</a>
|
|
158
|
+
</span>
|
|
159
|
+
<span class='desc'>
|
|
160
|
+
Get a string representation of grid name Grid name set in CSS content on body::after pseudo-element
|
|
161
|
+
</span>
|
|
162
|
+
</li>
|
|
163
|
+
</ul>
|
|
164
|
+
<h2>Constructor Details</h2>
|
|
165
|
+
<div class='methods'>
|
|
166
|
+
<div class='method_details'>
|
|
167
|
+
<p class='signature' id='constructor-instance'>
|
|
168
|
+
- (void) <strong>constructor</strong>()
|
|
169
|
+
</p>
|
|
170
|
+
<div class='docstring'>
|
|
171
|
+
<p>Construct a new ResizeHandler instance</p><p>Create resizeEvent method to trigger 'responsiveResize' event with current size</p>
|
|
172
|
+
</div>
|
|
173
|
+
<div class='tags'>
|
|
174
|
+
</div>
|
|
175
|
+
</div>
|
|
176
|
+
</div>
|
|
177
|
+
<h2>Instance Method Details</h2>
|
|
178
|
+
<div class='methods'>
|
|
179
|
+
<div class='method_details'>
|
|
180
|
+
<p class='signature' id='resize-instance'>
|
|
181
|
+
- (void) <strong>resize</strong>()
|
|
182
|
+
</p>
|
|
183
|
+
<div class='docstring'>
|
|
184
|
+
<p>Set a timeout to call resizeEvent after 100ms, clearing existing timeout if one set</p>
|
|
185
|
+
</div>
|
|
186
|
+
<div class='tags'>
|
|
187
|
+
</div>
|
|
188
|
+
</div>
|
|
189
|
+
<div class='method_details'>
|
|
190
|
+
<p class='signature' id='size-instance'>
|
|
191
|
+
- (String) <strong>size</strong>()
|
|
192
|
+
</p>
|
|
193
|
+
<div class='docstring'>
|
|
194
|
+
<p>Get a string representation of grid name</p><p>Grid name set in CSS content on body::after pseudo-element</p>
|
|
195
|
+
</div>
|
|
196
|
+
<div class='tags'>
|
|
197
|
+
<h3>Returns:</h3>
|
|
198
|
+
<ul class='return'>
|
|
199
|
+
<li>
|
|
200
|
+
<span class='type'></span>
|
|
201
|
+
(<tt>String</tt>)
|
|
202
|
+
—
|
|
203
|
+
<span class='desc'>Grid name if available or empty string</span>
|
|
204
|
+
</li>
|
|
205
|
+
</ul>
|
|
206
|
+
</div>
|
|
207
|
+
</div>
|
|
208
|
+
</div>
|
|
209
|
+
</div>
|
|
210
|
+
<div id='footer'>
|
|
211
|
+
Generated on
|
|
212
|
+
Thu Mar 14 2013 13:49:05 GMT+0000 (GMT)
|
|
213
|
+
by
|
|
214
|
+
<a href='https://github.com/netzpirat/codo' title='CoffeeScript API documentation generator'>Codo</a>
|
|
215
|
+
v1.5.6
|
|
216
|
+
(Node.js v0.8.8).
|
|
217
|
+
✲
|
|
218
|
+
Press Ctrl-h to see the keyboard shortcuts
|
|
219
|
+
✲
|
|
220
|
+
<a href='http://twitter.com/#!/netzpirat'>@netzpirat</a>
|
|
221
|
+
✲
|
|
222
|
+
<a href='https://mksoft.ch'>mksoft.ch</a>
|
|
223
|
+
</div>
|
|
224
|
+
</body>
|
|
225
|
+
</html>
|