semantic-ui-rails 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (90) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +17 -0
  3. data/Gemfile +4 -0
  4. data/LICENSE.txt +22 -0
  5. data/README.md +26 -0
  6. data/Rakefile +1 -0
  7. data/lib/generators/semantic/install/install_generator.rb +38 -0
  8. data/lib/generators/semantic/install/templates/semantic-ui.js +21 -0
  9. data/lib/generators/semantic/install/templates/semantic-ui/collections.less +6 -0
  10. data/lib/generators/semantic/install/templates/semantic-ui/elements.less +11 -0
  11. data/lib/generators/semantic/install/templates/semantic-ui/modules.less +18 -0
  12. data/lib/generators/semantic/install/templates/semantic-ui/views.less +6 -0
  13. data/lib/semantic/ui/rails.rb +10 -0
  14. data/lib/semantic/ui/rails/engine.rb +8 -0
  15. data/lib/semantic/ui/rails/version.rb +7 -0
  16. data/semantic-ui-rails.gemspec +23 -0
  17. data/vendor/assets/fonts/icons.eot +0 -0
  18. data/vendor/assets/fonts/icons.svg +450 -0
  19. data/vendor/assets/fonts/icons.ttf +0 -0
  20. data/vendor/assets/fonts/icons.woff +0 -0
  21. data/vendor/assets/images/semantic-ui/loader-large-inverted.gif +0 -0
  22. data/vendor/assets/images/semantic-ui/loader-large.gif +0 -0
  23. data/vendor/assets/images/semantic-ui/loader-medium-inverted.gif +0 -0
  24. data/vendor/assets/images/semantic-ui/loader-medium.gif +0 -0
  25. data/vendor/assets/images/semantic-ui/loader-mini-inverted.gif +0 -0
  26. data/vendor/assets/images/semantic-ui/loader-mini.gif +0 -0
  27. data/vendor/assets/images/semantic-ui/loader-small-inverted.gif +0 -0
  28. data/vendor/assets/images/semantic-ui/loader-small.gif +0 -0
  29. data/vendor/assets/javascripts/semantic-ui/accordion.js +411 -0
  30. data/vendor/assets/javascripts/semantic-ui/behavior/api.js +666 -0
  31. data/vendor/assets/javascripts/semantic-ui/behavior/colorize.js +271 -0
  32. data/vendor/assets/javascripts/semantic-ui/behavior/form.js +657 -0
  33. data/vendor/assets/javascripts/semantic-ui/behavior/state.js +752 -0
  34. data/vendor/assets/javascripts/semantic-ui/carousel.js +327 -0
  35. data/vendor/assets/javascripts/semantic-ui/chatroom.js +766 -0
  36. data/vendor/assets/javascripts/semantic-ui/checkbox.js +348 -0
  37. data/vendor/assets/javascripts/semantic-ui/dimmer.js +525 -0
  38. data/vendor/assets/javascripts/semantic-ui/dropdown.js +697 -0
  39. data/vendor/assets/javascripts/semantic-ui/modal.js +478 -0
  40. data/vendor/assets/javascripts/semantic-ui/nag.js +542 -0
  41. data/vendor/assets/javascripts/semantic-ui/popup.js +721 -0
  42. data/vendor/assets/javascripts/semantic-ui/rating.js +358 -0
  43. data/vendor/assets/javascripts/semantic-ui/search.js +770 -0
  44. data/vendor/assets/javascripts/semantic-ui/shape.js +776 -0
  45. data/vendor/assets/javascripts/semantic-ui/sidebar.js +489 -0
  46. data/vendor/assets/javascripts/semantic-ui/tab.js +674 -0
  47. data/vendor/assets/javascripts/semantic-ui/transition.js +645 -0
  48. data/vendor/assets/javascripts/semantic-ui/video.js +459 -0
  49. data/vendor/assets/stylesheets/semantic-ui/collections/breadcrumb.less +79 -0
  50. data/vendor/assets/stylesheets/semantic-ui/collections/form.less +536 -0
  51. data/vendor/assets/stylesheets/semantic-ui/collections/grid.less +655 -0
  52. data/vendor/assets/stylesheets/semantic-ui/collections/menu.less +1736 -0
  53. data/vendor/assets/stylesheets/semantic-ui/collections/message.less +337 -0
  54. data/vendor/assets/stylesheets/semantic-ui/collections/table.less +526 -0
  55. data/vendor/assets/stylesheets/semantic-ui/elements/button.less +1294 -0
  56. data/vendor/assets/stylesheets/semantic-ui/elements/divider.less +200 -0
  57. data/vendor/assets/stylesheets/semantic-ui/elements/header.less +325 -0
  58. data/vendor/assets/stylesheets/semantic-ui/elements/icon.less +449 -0
  59. data/vendor/assets/stylesheets/semantic-ui/elements/image.less +170 -0
  60. data/vendor/assets/stylesheets/semantic-ui/elements/input.less +287 -0
  61. data/vendor/assets/stylesheets/semantic-ui/elements/label.less +805 -0
  62. data/vendor/assets/stylesheets/semantic-ui/elements/loader.less +178 -0
  63. data/vendor/assets/stylesheets/semantic-ui/elements/progress.less +353 -0
  64. data/vendor/assets/stylesheets/semantic-ui/elements/segment.less +465 -0
  65. data/vendor/assets/stylesheets/semantic-ui/elements/step.less +294 -0
  66. data/vendor/assets/stylesheets/semantic-ui/modules/accordion.less +135 -0
  67. data/vendor/assets/stylesheets/semantic-ui/modules/carousel.less +71 -0
  68. data/vendor/assets/stylesheets/semantic-ui/modules/chatroom.less +271 -0
  69. data/vendor/assets/stylesheets/semantic-ui/modules/checkbox.less +378 -0
  70. data/vendor/assets/stylesheets/semantic-ui/modules/dimmer.less +230 -0
  71. data/vendor/assets/stylesheets/semantic-ui/modules/dropdown.less +506 -0
  72. data/vendor/assets/stylesheets/semantic-ui/modules/extra.transition.less +1197 -0
  73. data/vendor/assets/stylesheets/semantic-ui/modules/modal.less +154 -0
  74. data/vendor/assets/stylesheets/semantic-ui/modules/nag.less +175 -0
  75. data/vendor/assets/stylesheets/semantic-ui/modules/popup.less +238 -0
  76. data/vendor/assets/stylesheets/semantic-ui/modules/rating.less +151 -0
  77. data/vendor/assets/stylesheets/semantic-ui/modules/reveal.less +367 -0
  78. data/vendor/assets/stylesheets/semantic-ui/modules/search.less +275 -0
  79. data/vendor/assets/stylesheets/semantic-ui/modules/shape.less +115 -0
  80. data/vendor/assets/stylesheets/semantic-ui/modules/sidebar.less +147 -0
  81. data/vendor/assets/stylesheets/semantic-ui/modules/tab.less +59 -0
  82. data/vendor/assets/stylesheets/semantic-ui/modules/transition.less +839 -0
  83. data/vendor/assets/stylesheets/semantic-ui/modules/video.less +99 -0
  84. data/vendor/assets/stylesheets/semantic-ui/views/comment.less +221 -0
  85. data/vendor/assets/stylesheets/semantic-ui/views/feed.less +151 -0
  86. data/vendor/assets/stylesheets/semantic-ui/views/item.less +641 -0
  87. data/vendor/assets/stylesheets/semantic-ui/views/list.less +491 -0
  88. data/vendor/assets/stylesheets/semantic-ui/views/sitemap.less +47 -0
  89. data/vendor/assets/stylesheets/semantic-ui/views/statistic.less +34 -0
  90. metadata +161 -0
@@ -0,0 +1,645 @@
1
+ /* ******************************
2
+ Semantic Module: Transition
3
+ Author: Jack Lukic
4
+ Notes: First Commit March 25, 2013
5
+
6
+ A module for controlling css animations
7
+
8
+ ****************************** */
9
+
10
+ ;(function ( $, window, document, undefined ) {
11
+
12
+ $.fn.transition = function() {
13
+ var
14
+ $allModules = $(this),
15
+ moduleSelector = $allModules.selector || '',
16
+
17
+ time = new Date().getTime(),
18
+ performance = [],
19
+
20
+ moduleArguments = arguments,
21
+ query = moduleArguments[0],
22
+ queryArguments = [].slice.call(arguments, 1),
23
+ methodInvoked = (typeof query === 'string'),
24
+
25
+ requestAnimationFrame = window.requestAnimationFrame
26
+ || window.mozRequestAnimationFrame
27
+ || window.webkitRequestAnimationFrame
28
+ || window.msRequestAnimationFrame
29
+ || function(callback) { setTimeout(callback, 0); },
30
+
31
+ invokedResponse
32
+ ;
33
+ $allModules
34
+ .each(function() {
35
+ var
36
+ $module = $(this),
37
+ element = this,
38
+
39
+ // set at run time
40
+ settings,
41
+ instance,
42
+
43
+ error,
44
+ className,
45
+ metadata,
46
+ animationEnd,
47
+ animationName,
48
+
49
+ namespace,
50
+ moduleNamespace,
51
+ module
52
+ ;
53
+
54
+ module = {
55
+
56
+ initialize: function() {
57
+ // get settings
58
+ settings = module.get.settings.apply(element, moduleArguments);
59
+ module.verbose('Converted arguments into settings object', settings);
60
+
61
+ // set shortcuts
62
+ error = settings.error;
63
+ className = settings.className;
64
+ namespace = settings.namespace;
65
+ metadata = settings.metadata;
66
+ moduleNamespace = 'module-' + namespace;
67
+
68
+ animationEnd = module.get.animationEvent();
69
+ animationName = module.get.animationName();
70
+
71
+ instance = $module.data(moduleNamespace);
72
+
73
+ if(instance === undefined) {
74
+ module.instantiate();
75
+ }
76
+ if(methodInvoked) {
77
+ methodInvoked = module.invoke(query);
78
+ }
79
+ // no internal method was found matching query or query not made
80
+ if(methodInvoked === false) {
81
+ module.animate();
82
+ }
83
+ },
84
+
85
+ instantiate: function() {
86
+ module.verbose('Storing instance of module', module);
87
+ instance = module;
88
+ $module
89
+ .data(moduleNamespace, instance)
90
+ ;
91
+ },
92
+
93
+ destroy: function() {
94
+ module.verbose('Destroying previous module for', element);
95
+ $module
96
+ .removeData(moduleNamespace)
97
+ ;
98
+ },
99
+
100
+ animate: function(overrideSettings) {
101
+ settings = overrideSettings || settings;
102
+ module.debug('Preparing animation', settings.animation);
103
+ if(module.is.animating()) {
104
+ module.queue(settings.animation);
105
+ return false;
106
+ }
107
+ module.save.conditions();
108
+ module.set.duration(settings.duration);
109
+ module.set.animating();
110
+ module.repaint();
111
+ $module
112
+ .addClass(className.transition)
113
+ .addClass(settings.animation)
114
+ .one(animationEnd, module.complete)
115
+ ;
116
+ if(!module.has.direction() && module.can.transition()) {
117
+ module.set.direction();
118
+ }
119
+ if(!module.can.animate()) {
120
+ module.restore.conditions();
121
+ module.error(error.noAnimation);
122
+ return false;
123
+ }
124
+ module.show();
125
+ module.debug('Starting tween', settings.animation, $module.attr('class'));
126
+ },
127
+
128
+ queue: function(animation) {
129
+ module.debug('Queueing animation of', animation);
130
+ instance.queuing = true;
131
+ $module
132
+ .one(animationEnd, function() {
133
+ instance.queuing = false;
134
+ module.animate.apply(this, settings);
135
+ })
136
+ ;
137
+ },
138
+
139
+ complete: function () {
140
+ module.verbose('CSS animation complete', settings.animation);
141
+ if(!module.is.looping()) {
142
+ if($module.hasClass(className.outward)) {
143
+ module.restore.conditions();
144
+ module.hide();
145
+ }
146
+ else if($module.hasClass(className.inward)) {
147
+ module.restore.conditions();
148
+ module.show();
149
+ }
150
+ else {
151
+ module.restore.conditions();
152
+ }
153
+ module.remove.animating();
154
+ }
155
+ $.proxy(settings.complete, this)();
156
+ },
157
+
158
+ repaint: function(fakeAssignment) {
159
+ module.verbose('Forcing repaint event');
160
+ fakeAssignment = element.offsetWidth;
161
+ },
162
+
163
+ has: {
164
+ direction: function(animation) {
165
+ animation = animation || settings.animation;
166
+ if( $module.hasClass(className.inward) || $module.hasClass(className.outward) ) {
167
+ return true;
168
+ }
169
+ }
170
+ },
171
+
172
+ set: {
173
+
174
+ animating: function() {
175
+ $module.addClass(className.animating);
176
+ },
177
+
178
+ direction: function() {
179
+ if($module.is(':visible')) {
180
+ module.debug('Automatically determining the direction of animation', 'Outward');
181
+ $module
182
+ .addClass(className.outward)
183
+ .removeClass(className.inward)
184
+ ;
185
+ }
186
+ else {
187
+ module.debug('Automatically determining the direction of animation', 'Inward');
188
+ $module
189
+ .addClass(className.inward)
190
+ .removeClass(className.outward)
191
+ ;
192
+ }
193
+ },
194
+
195
+ looping: function() {
196
+ module.debug('Transition set to loop');
197
+ $module
198
+ .addClass(className.looping)
199
+ ;
200
+ },
201
+
202
+ duration: function(duration) {
203
+ duration = duration || settings.duration;
204
+ duration = (typeof duration == 'number')
205
+ ? duration + 'ms'
206
+ : duration
207
+ ;
208
+ module.verbose('Setting animation duration', duration);
209
+ $module
210
+ .css({
211
+ '-webkit-animation-duration': duration,
212
+ '-moz-animation-duration': duration,
213
+ '-ms-animation-duration': duration,
214
+ '-o-animation-duration': duration,
215
+ 'animation-duration': duration
216
+ })
217
+ ;
218
+ }
219
+ },
220
+
221
+ save: {
222
+ conditions: function() {
223
+ module.cache = {
224
+ className : $module.attr('class'),
225
+ style : $module.attr('style')
226
+ };
227
+ module.verbose('Saving original attributes', module.cache);
228
+ }
229
+ },
230
+
231
+ restore: {
232
+ conditions: function() {
233
+ if(typeof module.cache === undefined) {
234
+ module.error(error.cache);
235
+ return false;
236
+ }
237
+ if(module.cache.className) {
238
+ $module.attr('class', module.cache.className);
239
+ }
240
+ else {
241
+ $module.removeAttr('class');
242
+ }
243
+ if(module.cache.style) {
244
+ $module.attr('style', module.cache.style);
245
+ }
246
+ else {
247
+ $module.removeAttr('style');
248
+ }
249
+ if(module.is.looping()) {
250
+ module.remove.looping();
251
+ }
252
+ module.verbose('Restoring original attributes', module.cache);
253
+ }
254
+ },
255
+
256
+ remove: {
257
+
258
+ animating: function() {
259
+ $module.removeClass(className.animating);
260
+ },
261
+
262
+ looping: function() {
263
+ module.debug('Transitions are no longer looping');
264
+ $module
265
+ .removeClass(className.looping)
266
+ ;
267
+ module.repaint();
268
+ }
269
+
270
+ },
271
+
272
+ get: {
273
+
274
+ settings: function(animation, duration, complete) {
275
+ // single settings object
276
+ if($.isPlainObject(animation)) {
277
+ return $.extend(true, {}, $.fn.transition.settings, animation);
278
+ }
279
+ // all arguments provided
280
+ else if(typeof complete == 'function') {
281
+ return $.extend(true, {}, $.fn.transition.settings, {
282
+ animation : animation,
283
+ complete : complete,
284
+ duration : duration
285
+ });
286
+ }
287
+ // only duration provided
288
+ else if(typeof duration == 'string' || typeof duration == 'number') {
289
+ return $.extend(true, {}, $.fn.transition.settings, {
290
+ animation : animation,
291
+ duration : duration
292
+ });
293
+ }
294
+ // duration is actually settings object
295
+ else if(typeof duration == 'object') {
296
+ return $.extend(true, {}, $.fn.transition.settings, duration, {
297
+ animation : animation
298
+ });
299
+ }
300
+ // duration is actually callback
301
+ else if(typeof duration == 'function') {
302
+ return $.extend(true, {}, $.fn.transition.settings, {
303
+ animation : animation,
304
+ complete : duration
305
+ });
306
+ }
307
+ // only animation provided
308
+ else {
309
+ return $.extend(true, {}, $.fn.transition.settings, {
310
+ animation : animation
311
+ });
312
+ }
313
+ return $.fn.transition.settings;
314
+ },
315
+
316
+ animationName: function() {
317
+ var
318
+ element = document.createElement('div'),
319
+ animations = {
320
+ 'animation' :'animationName',
321
+ 'OAnimation' :'oAnimationName',
322
+ 'MozAnimation' :'mozAnimationName',
323
+ 'WebkitAnimation' :'webkitAnimationName'
324
+ },
325
+ animation
326
+ ;
327
+ for(animation in animations){
328
+ if( element.style[animation] !== undefined ){
329
+ module.verbose('Determining animation vendor name property', animations[animation]);
330
+ return animations[animation];
331
+ }
332
+ }
333
+ return false;
334
+ },
335
+
336
+ animationEvent: function() {
337
+ var
338
+ element = document.createElement('div'),
339
+ animations = {
340
+ 'animation' :'animationend',
341
+ 'OAnimation' :'oAnimationEnd',
342
+ 'MozAnimation' :'mozAnimationEnd',
343
+ 'WebkitAnimation' :'webkitAnimationEnd'
344
+ },
345
+ animation
346
+ ;
347
+ for(animation in animations){
348
+ if( element.style[animation] !== undefined ){
349
+ module.verbose('Determining animation vendor end event', animations[animation]);
350
+ return animations[animation];
351
+ }
352
+ }
353
+ return false;
354
+ }
355
+
356
+ },
357
+
358
+ can: {
359
+ animate: function() {
360
+ if($module.css(animationName) !== 'none') {
361
+ module.debug('CSS definition found');
362
+ return true;
363
+ }
364
+ else {
365
+ module.debug('Unable to find css definition');
366
+ return false;
367
+ }
368
+ },
369
+ transition: function() {
370
+ var
371
+ $clone = $('<div>').addClass( $module.attr('class') ).appendTo($('body')),
372
+ currentAnimation = $clone.css(animationName),
373
+ inAnimation = $clone.addClass(className.inward).css(animationName)
374
+ ;
375
+ if(currentAnimation != inAnimation) {
376
+ module.debug('In/out transitions exist');
377
+ $clone.remove();
378
+ return true;
379
+ }
380
+ else {
381
+ module.debug('Static animation found');
382
+ $clone.remove();
383
+ return false;
384
+ }
385
+ }
386
+ },
387
+
388
+ is: {
389
+ animating: function() {
390
+ return $module.hasClass(className.animating);
391
+ },
392
+ looping: function() {
393
+ return $module.hasClass(className.looping);
394
+ },
395
+ visible: function() {
396
+ return $module.is(':visible');
397
+ }
398
+ },
399
+
400
+ hide: function() {
401
+ module.verbose('Hiding element');
402
+ $module
403
+ .removeClass(className.visible)
404
+ .addClass(className.transition)
405
+ .addClass(className.hidden)
406
+ ;
407
+ },
408
+ show: function() {
409
+ module.verbose('Showing element');
410
+ $module
411
+ .removeClass(className.hidden)
412
+ .addClass(className.transition)
413
+ .addClass(className.visible)
414
+ ;
415
+ },
416
+
417
+ start: function() {
418
+ module.verbose('Starting animation');
419
+ $module.removeClass(className.disabled);
420
+ },
421
+
422
+ stop: function() {
423
+ module.debug('Stopping animation');
424
+ $module.addClass(className.disabled);
425
+ },
426
+
427
+ toggle: function() {
428
+ module.debug('Toggling play status');
429
+ $module.toggleClass(className.disabled);
430
+ },
431
+
432
+ setting: function(name, value) {
433
+ if(value !== undefined) {
434
+ if( $.isPlainObject(name) ) {
435
+ $.extend(true, settings, name);
436
+ }
437
+ else {
438
+ settings[name] = value;
439
+ }
440
+ }
441
+ else {
442
+ return settings[name];
443
+ }
444
+ },
445
+ internal: function(name, value) {
446
+ if(value !== undefined) {
447
+ if( $.isPlainObject(name) ) {
448
+ $.extend(true, module, name);
449
+ }
450
+ else {
451
+ module[name] = value;
452
+ }
453
+ }
454
+ else {
455
+ return module[name];
456
+ }
457
+ },
458
+ debug: function() {
459
+ if(settings.debug) {
460
+ if(settings.performance) {
461
+ module.performance.log(arguments);
462
+ }
463
+ else {
464
+ module.debug = Function.prototype.bind.call(console.info, console, settings.name + ':');
465
+ module.debug.apply(console, arguments);
466
+ }
467
+ }
468
+ },
469
+ verbose: function() {
470
+ if(settings.verbose && settings.debug) {
471
+ if(settings.performance) {
472
+ module.performance.log(arguments);
473
+ }
474
+ else {
475
+ module.verbose = Function.prototype.bind.call(console.info, console, settings.name + ':');
476
+ module.verbose.apply(console, arguments);
477
+ }
478
+ }
479
+ },
480
+ error: function() {
481
+ module.error = Function.prototype.bind.call(console.error, console, settings.name + ':');
482
+ module.error.apply(console, arguments);
483
+ },
484
+ performance: {
485
+ log: function(message) {
486
+ var
487
+ currentTime,
488
+ executionTime,
489
+ previousTime
490
+ ;
491
+ if(settings.performance) {
492
+ currentTime = new Date().getTime();
493
+ previousTime = time || currentTime;
494
+ executionTime = currentTime - previousTime;
495
+ time = currentTime;
496
+ performance.push({
497
+ 'Element' : element,
498
+ 'Name' : message[0],
499
+ 'Arguments' : [].slice.call(message, 1) || '',
500
+ 'Execution Time' : executionTime
501
+ });
502
+ }
503
+ clearTimeout(module.performance.timer);
504
+ module.performance.timer = setTimeout(module.performance.display, 100);
505
+ },
506
+ display: function() {
507
+ var
508
+ title = settings.name + ':',
509
+ totalTime = 0
510
+ ;
511
+ time = false;
512
+ clearTimeout(module.performance.timer);
513
+ $.each(performance, function(index, data) {
514
+ totalTime += data['Execution Time'];
515
+ });
516
+ title += ' ' + totalTime + 'ms';
517
+ if(moduleSelector) {
518
+ title += ' \'' + moduleSelector + '\'';
519
+ }
520
+ if($allModules.size() > 1) {
521
+ title += ' ' + '(' + $allModules.size() + ')';
522
+ }
523
+ if( (console.group !== undefined || console.table !== undefined) && performance.length > 0) {
524
+ console.groupCollapsed(title);
525
+ if(console.table) {
526
+ console.table(performance);
527
+ }
528
+ else {
529
+ $.each(performance, function(index, data) {
530
+ console.log(data['Name'] + ': ' + data['Execution Time']+'ms');
531
+ });
532
+ }
533
+ console.groupEnd();
534
+ }
535
+ performance = [];
536
+ }
537
+ },
538
+ invoke: function(query, passedArguments, context) {
539
+ var
540
+ maxDepth,
541
+ found,
542
+ response
543
+ ;
544
+ passedArguments = passedArguments || queryArguments;
545
+ context = element || context;
546
+ if(typeof query == 'string' && instance !== undefined) {
547
+ query = query.split(/[\. ]/);
548
+ maxDepth = query.length - 1;
549
+ $.each(query, function(depth, value) {
550
+ var camelCaseValue = (depth != maxDepth)
551
+ ? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)
552
+ : query
553
+ ;
554
+ if( $.isPlainObject( instance[value] ) && (depth != maxDepth) ) {
555
+ instance = instance[value];
556
+ }
557
+ else if( $.isPlainObject( instance[camelCaseValue] ) && (depth != maxDepth) ) {
558
+ instance = instance[camelCaseValue];
559
+ }
560
+ else if( instance[value] !== undefined ) {
561
+ found = instance[value];
562
+ return false;
563
+ }
564
+ else if( instance[camelCaseValue] !== undefined ) {
565
+ found = instance[camelCaseValue];
566
+ return false;
567
+ }
568
+ else {
569
+ return false;
570
+ }
571
+ });
572
+ }
573
+ if ( $.isFunction( found ) ) {
574
+ response = found.apply(context, passedArguments);
575
+ }
576
+ else if(found !== undefined) {
577
+ response = found;
578
+ }
579
+ if($.isArray(invokedResponse)) {
580
+ invokedResponse.push(response);
581
+ }
582
+ else if(typeof invokedResponse == 'string') {
583
+ invokedResponse = [invokedResponse, response];
584
+ }
585
+ else if(response !== undefined) {
586
+ invokedResponse = response;
587
+ }
588
+ return found || false;
589
+ }
590
+ };
591
+ module.initialize();
592
+ })
593
+ ;
594
+ return (invokedResponse !== undefined)
595
+ ? invokedResponse
596
+ : this
597
+ ;
598
+ };
599
+
600
+ $.fn.transition.settings = {
601
+
602
+ // module info
603
+ name : 'Transition',
604
+
605
+ // debug content outputted to console
606
+ debug : true,
607
+
608
+ // verbose debug output
609
+ verbose : true,
610
+
611
+ // performance data output
612
+ performance : true,
613
+
614
+ // event namespace
615
+ namespace : 'transition',
616
+
617
+ // animation complete event
618
+ complete : function() {},
619
+
620
+ // animation duration (useful only with future js animations)
621
+ animation : 'fade',
622
+ duration : '700ms',
623
+
624
+ className : {
625
+ transition : 'ui transition',
626
+ animating : 'animating',
627
+ looping : 'looping',
628
+ loading : 'loading',
629
+ disabled : 'disabled',
630
+ hidden : 'hidden',
631
+ visible : 'visible',
632
+ inward : 'in',
633
+ outward : 'out'
634
+ },
635
+
636
+ // possible errors
637
+ error: {
638
+ noAnimation : 'There is no css animation matching the one you specified.',
639
+ method : 'The method you called is not defined'
640
+ }
641
+
642
+ };
643
+
644
+
645
+ })( jQuery, window , document );