va_common 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +0 -4
- data/app/assets/js/va_common_main.js +16 -1
- data/lib/va_common/version.rb +1 -1
- data/lib/va_common.rb +4 -0
- data/va_common.gemspec +15 -0
- metadata +200 -177
- data/app/assets/js/foundation/foundation.abide.js +0 -408
- data/app/assets/js/foundation/foundation.accordion.js +0 -88
- data/app/assets/js/foundation/foundation.alert.js +0 -43
- data/app/assets/js/foundation/foundation.clearing.js +0 -586
- data/app/assets/js/foundation/foundation.dropdown.js +0 -463
- data/app/assets/js/foundation/foundation.equalizer.js +0 -104
- data/app/assets/js/foundation/foundation.interchange.js +0 -359
- data/app/assets/js/foundation/foundation.joyride.js +0 -932
- data/app/assets/js/foundation/foundation.js +0 -725
- data/app/assets/js/foundation/foundation.magellan.js +0 -215
- data/app/assets/js/foundation/foundation.offcanvas.js +0 -152
- data/app/assets/js/foundation/foundation.orbit.js +0 -476
- data/app/assets/js/foundation/foundation.reveal.js +0 -498
- data/app/assets/js/foundation/foundation.slider.js +0 -281
- data/app/assets/js/foundation/foundation.tab.js +0 -249
- data/app/assets/js/foundation/foundation.tooltip.js +0 -339
- data/app/assets/js/foundation/foundation.topbar.js +0 -458
- data/app/assets/js/foundation.min.js +0 -6376
- data/app/assets/js/vendor/html5shiv.js +0 -8
- data/app/assets/js/vendor/jquery-1.11.0.min.js +0 -4
- data/app/assets/js/vendor/jquery.js +0 -9789
- data/app/assets/js/vendor/jquery.smooth-scroll.js +0 -255
- data/app/assets/js/vendor/jquery.stellar.js +0 -651
- data/app/assets/js/vendor/jquery.tipsy.js +0 -258
- data/app/assets/js/vendor/menu.js +0 -40
- data/app/assets/js/vendor/modernizr.custom.js +0 -4
- data/app/assets/js/vendor/respond.min.js +0 -6
- data/app/assets/js/vendor/selectivizr-1.0.3b.js +0 -560
- data/app/assets/js/vendor/tota11y.min.js +0 -28
- data/app/assets/js/vendor/wow.min.js +0 -2
- data/app/assets/stylesheets/foundation/_functions.scss +0 -146
- data/app/assets/stylesheets/foundation/_settings.scss +0 -1467
- data/app/assets/stylesheets/foundation/_variables.scss +0 -1286
- data/app/assets/stylesheets/foundation/components/_accordion.scss +0 -157
- data/app/assets/stylesheets/foundation/components/_alert-boxes.scss +0 -128
- data/app/assets/stylesheets/foundation/components/_block-grid.scss +0 -132
- data/app/assets/stylesheets/foundation/components/_breadcrumbs.scss +0 -132
- data/app/assets/stylesheets/foundation/components/_button-groups.scss +0 -200
- data/app/assets/stylesheets/foundation/components/_buttons.scss +0 -259
- data/app/assets/stylesheets/foundation/components/_clearing.scss +0 -256
- data/app/assets/stylesheets/foundation/components/_dropdown-buttons.scss +0 -131
- data/app/assets/stylesheets/foundation/components/_dropdown.scss +0 -262
- data/app/assets/stylesheets/foundation/components/_flex-video.scss +0 -51
- data/app/assets/stylesheets/foundation/components/_forms.scss +0 -570
- data/app/assets/stylesheets/foundation/components/_global.scss +0 -481
- data/app/assets/stylesheets/foundation/components/_grid.scss +0 -289
- data/app/assets/stylesheets/foundation/components/_icon-bar.scss +0 -358
- data/app/assets/stylesheets/foundation/components/_inline-lists.scss +0 -57
- data/app/assets/stylesheets/foundation/components/_joyride.scss +0 -222
- data/app/assets/stylesheets/foundation/components/_keystrokes.scss +0 -61
- data/app/assets/stylesheets/foundation/components/_labels.scss +0 -106
- data/app/assets/stylesheets/foundation/components/_magellan.scss +0 -34
- data/app/assets/stylesheets/foundation/components/_offcanvas.scss +0 -515
- data/app/assets/stylesheets/foundation/components/_orbit.scss +0 -368
- data/app/assets/stylesheets/foundation/components/_pagination.scss +0 -162
- data/app/assets/stylesheets/foundation/components/_panels.scss +0 -101
- data/app/assets/stylesheets/foundation/components/_pricing-tables.scss +0 -150
- data/app/assets/stylesheets/foundation/components/_progress-bars.scss +0 -79
- data/app/assets/stylesheets/foundation/components/_range-slider.scss +0 -169
- data/app/assets/stylesheets/foundation/components/_reveal.scss +0 -202
- data/app/assets/stylesheets/foundation/components/_side-nav.scss +0 -116
- data/app/assets/stylesheets/foundation/components/_split-buttons.scss +0 -199
- data/app/assets/stylesheets/foundation/components/_sub-nav.scss +0 -123
- data/app/assets/stylesheets/foundation/components/_switches.scss +0 -238
- data/app/assets/stylesheets/foundation/components/_tables.scss +0 -135
- data/app/assets/stylesheets/foundation/components/_tabs.scss +0 -123
- data/app/assets/stylesheets/foundation/components/_thumbs.scss +0 -66
- data/app/assets/stylesheets/foundation/components/_toolbar.scss +0 -70
- data/app/assets/stylesheets/foundation/components/_tooltips.scss +0 -142
- data/app/assets/stylesheets/foundation/components/_top-bar.scss +0 -691
- data/app/assets/stylesheets/foundation/components/_type.scss +0 -525
- data/app/assets/stylesheets/foundation/components/_visibility.scss +0 -408
- data/app/assets/stylesheets/lib/_normalize.scss +0 -427
- data/app/assets/stylesheets/lib/bourbon/_bourbon-deprecated-upcoming.scss +0 -411
- data/app/assets/stylesheets/lib/bourbon/_bourbon.scss +0 -87
- data/app/assets/stylesheets/lib/bourbon/addons/_border-color.scss +0 -26
- data/app/assets/stylesheets/lib/bourbon/addons/_border-radius.scss +0 -48
- data/app/assets/stylesheets/lib/bourbon/addons/_border-style.scss +0 -25
- data/app/assets/stylesheets/lib/bourbon/addons/_border-width.scss +0 -25
- data/app/assets/stylesheets/lib/bourbon/addons/_buttons.scss +0 -64
- data/app/assets/stylesheets/lib/bourbon/addons/_clearfix.scss +0 -25
- data/app/assets/stylesheets/lib/bourbon/addons/_ellipsis.scss +0 -30
- data/app/assets/stylesheets/lib/bourbon/addons/_font-stacks.scss +0 -31
- data/app/assets/stylesheets/lib/bourbon/addons/_hide-text.scss +0 -27
- data/app/assets/stylesheets/lib/bourbon/addons/_margin.scss +0 -26
- data/app/assets/stylesheets/lib/bourbon/addons/_padding.scss +0 -26
- data/app/assets/stylesheets/lib/bourbon/addons/_position.scss +0 -48
- data/app/assets/stylesheets/lib/bourbon/addons/_prefixer.scss +0 -66
- data/app/assets/stylesheets/lib/bourbon/addons/_retina-image.scss +0 -25
- data/app/assets/stylesheets/lib/bourbon/addons/_size.scss +0 -51
- data/app/assets/stylesheets/lib/bourbon/addons/_text-inputs.scss +0 -112
- data/app/assets/stylesheets/lib/bourbon/addons/_timing-functions.scss +0 -34
- data/app/assets/stylesheets/lib/bourbon/addons/_triangle.scss +0 -63
- data/app/assets/stylesheets/lib/bourbon/addons/_word-wrap.scss +0 -29
- data/app/assets/stylesheets/lib/bourbon/css3/_animation.scss +0 -43
- data/app/assets/stylesheets/lib/bourbon/css3/_appearance.scss +0 -3
- data/app/assets/stylesheets/lib/bourbon/css3/_backface-visibility.scss +0 -3
- data/app/assets/stylesheets/lib/bourbon/css3/_background-image.scss +0 -42
- data/app/assets/stylesheets/lib/bourbon/css3/_background.scss +0 -55
- data/app/assets/stylesheets/lib/bourbon/css3/_border-image.scss +0 -59
- data/app/assets/stylesheets/lib/bourbon/css3/_calc.scss +0 -4
- data/app/assets/stylesheets/lib/bourbon/css3/_columns.scss +0 -47
- data/app/assets/stylesheets/lib/bourbon/css3/_filter.scss +0 -4
- data/app/assets/stylesheets/lib/bourbon/css3/_flex-box.scss +0 -287
- data/app/assets/stylesheets/lib/bourbon/css3/_font-face.scss +0 -24
- data/app/assets/stylesheets/lib/bourbon/css3/_font-feature-settings.scss +0 -4
- data/app/assets/stylesheets/lib/bourbon/css3/_hidpi-media-query.scss +0 -10
- data/app/assets/stylesheets/lib/bourbon/css3/_hyphens.scss +0 -4
- data/app/assets/stylesheets/lib/bourbon/css3/_image-rendering.scss +0 -14
- data/app/assets/stylesheets/lib/bourbon/css3/_keyframes.scss +0 -36
- data/app/assets/stylesheets/lib/bourbon/css3/_linear-gradient.scss +0 -38
- data/app/assets/stylesheets/lib/bourbon/css3/_perspective.scss +0 -8
- data/app/assets/stylesheets/lib/bourbon/css3/_placeholder.scss +0 -8
- data/app/assets/stylesheets/lib/bourbon/css3/_radial-gradient.scss +0 -39
- data/app/assets/stylesheets/lib/bourbon/css3/_selection.scss +0 -42
- data/app/assets/stylesheets/lib/bourbon/css3/_text-decoration.scss +0 -19
- data/app/assets/stylesheets/lib/bourbon/css3/_transform.scss +0 -15
- data/app/assets/stylesheets/lib/bourbon/css3/_transition.scss +0 -71
- data/app/assets/stylesheets/lib/bourbon/css3/_user-select.scss +0 -3
- data/app/assets/stylesheets/lib/bourbon/functions/_assign-inputs.scss +0 -11
- data/app/assets/stylesheets/lib/bourbon/functions/_contains-falsy.scss +0 -20
- data/app/assets/stylesheets/lib/bourbon/functions/_contains.scss +0 -26
- data/app/assets/stylesheets/lib/bourbon/functions/_is-length.scss +0 -11
- data/app/assets/stylesheets/lib/bourbon/functions/_is-light.scss +0 -21
- data/app/assets/stylesheets/lib/bourbon/functions/_is-number.scss +0 -11
- data/app/assets/stylesheets/lib/bourbon/functions/_is-size.scss +0 -13
- data/app/assets/stylesheets/lib/bourbon/functions/_modular-scale.scss +0 -69
- data/app/assets/stylesheets/lib/bourbon/functions/_px-to-em.scss +0 -13
- data/app/assets/stylesheets/lib/bourbon/functions/_px-to-rem.scss +0 -15
- data/app/assets/stylesheets/lib/bourbon/functions/_shade.scss +0 -24
- data/app/assets/stylesheets/lib/bourbon/functions/_strip-units.scss +0 -17
- data/app/assets/stylesheets/lib/bourbon/functions/_tint.scss +0 -24
- data/app/assets/stylesheets/lib/bourbon/functions/_transition-property-name.scss +0 -22
- data/app/assets/stylesheets/lib/bourbon/functions/_unpack.scss +0 -27
- data/app/assets/stylesheets/lib/bourbon/helpers/_convert-units.scss +0 -21
- data/app/assets/stylesheets/lib/bourbon/helpers/_directional-values.scss +0 -96
- data/app/assets/stylesheets/lib/bourbon/helpers/_font-source-declaration.scss +0 -43
- data/app/assets/stylesheets/lib/bourbon/helpers/_gradient-positions-parser.scss +0 -13
- data/app/assets/stylesheets/lib/bourbon/helpers/_linear-angle-parser.scss +0 -25
- data/app/assets/stylesheets/lib/bourbon/helpers/_linear-gradient-parser.scss +0 -41
- data/app/assets/stylesheets/lib/bourbon/helpers/_linear-positions-parser.scss +0 -61
- data/app/assets/stylesheets/lib/bourbon/helpers/_linear-side-corner-parser.scss +0 -31
- data/app/assets/stylesheets/lib/bourbon/helpers/_radial-arg-parser.scss +0 -69
- data/app/assets/stylesheets/lib/bourbon/helpers/_radial-gradient-parser.scss +0 -50
- data/app/assets/stylesheets/lib/bourbon/helpers/_radial-positions-parser.scss +0 -18
- data/app/assets/stylesheets/lib/bourbon/helpers/_render-gradients.scss +0 -26
- data/app/assets/stylesheets/lib/bourbon/helpers/_shape-size-stripper.scss +0 -10
- data/app/assets/stylesheets/lib/bourbon/helpers/_str-to-num.scss +0 -50
- data/app/assets/stylesheets/lib/bourbon/settings/_asset-pipeline.scss +0 -7
- data/app/assets/stylesheets/lib/bourbon/settings/_prefixer.scss +0 -9
- data/app/assets/stylesheets/lib/bourbon/settings/_px-to-em.scss +0 -1
- data/app/assets/stylesheets/lib/neat/_neat-helpers.scss +0 -8
- data/app/assets/stylesheets/lib/neat/_neat.scss +0 -23
- data/app/assets/stylesheets/lib/neat/functions/_new-breakpoint.scss +0 -49
- data/app/assets/stylesheets/lib/neat/functions/_private.scss +0 -114
- data/app/assets/stylesheets/lib/neat/grid/_box-sizing.scss +0 -15
- data/app/assets/stylesheets/lib/neat/grid/_direction-context.scss +0 -33
- data/app/assets/stylesheets/lib/neat/grid/_display-context.scss +0 -28
- data/app/assets/stylesheets/lib/neat/grid/_fill-parent.scss +0 -22
- data/app/assets/stylesheets/lib/neat/grid/_media.scss +0 -92
- data/app/assets/stylesheets/lib/neat/grid/_omega.scss +0 -87
- data/app/assets/stylesheets/lib/neat/grid/_outer-container.scss +0 -38
- data/app/assets/stylesheets/lib/neat/grid/_pad.scss +0 -25
- data/app/assets/stylesheets/lib/neat/grid/_private.scss +0 -35
- data/app/assets/stylesheets/lib/neat/grid/_row.scss +0 -52
- data/app/assets/stylesheets/lib/neat/grid/_shift.scss +0 -50
- data/app/assets/stylesheets/lib/neat/grid/_span-columns.scss +0 -94
- data/app/assets/stylesheets/lib/neat/grid/_to-deprecate.scss +0 -97
- data/app/assets/stylesheets/lib/neat/grid/_visual-grid.scss +0 -42
- data/app/assets/stylesheets/lib/neat/settings/_disable-warnings.scss +0 -13
- data/app/assets/stylesheets/lib/neat/settings/_grid.scss +0 -51
- data/app/assets/stylesheets/lib/neat/settings/_visual-grid.scss +0 -27
- data/app/assets/stylesheets/va_common_main.css.scss +0 -18
- /data/app/assets/js/{vendor/scroll-settings.js → scroll-settings.js} +0 -0
- /data/app/assets/js/{vendor/stellar-settings.js → stellar-settings.js} +0 -0
@@ -1,258 +0,0 @@
|
|
1
|
-
// tipsy, facebook style tooltips for jquery
|
2
|
-
// version 1.0.0a
|
3
|
-
// (c) 2008-2010 jason frame [jason@onehackoranother.com]
|
4
|
-
// released under the MIT license
|
5
|
-
|
6
|
-
(function($) {
|
7
|
-
|
8
|
-
function maybeCall(thing, ctx) {
|
9
|
-
return (typeof thing == 'function') ? (thing.call(ctx)) : thing;
|
10
|
-
};
|
11
|
-
|
12
|
-
function isElementInDOM(ele) {
|
13
|
-
while (ele = ele.parentNode) {
|
14
|
-
if (ele == document) return true;
|
15
|
-
}
|
16
|
-
return false;
|
17
|
-
};
|
18
|
-
|
19
|
-
function Tipsy(element, options) {
|
20
|
-
this.$element = $(element);
|
21
|
-
this.options = options;
|
22
|
-
this.enabled = true;
|
23
|
-
this.fixTitle();
|
24
|
-
};
|
25
|
-
|
26
|
-
Tipsy.prototype = {
|
27
|
-
show: function() {
|
28
|
-
var title = this.getTitle();
|
29
|
-
if (title && this.enabled) {
|
30
|
-
var $tip = this.tip();
|
31
|
-
|
32
|
-
$tip.find('.tipsy-inner')[this.options.html ? 'html' : 'text'](title);
|
33
|
-
$tip[0].className = 'tipsy'; // reset classname in case of dynamic gravity
|
34
|
-
$tip.remove().css({top: 0, left: 0, visibility: 'hidden', display: 'block'}).prependTo(document.body);
|
35
|
-
|
36
|
-
var pos = $.extend({}, this.$element.offset(), {
|
37
|
-
width: this.$element[0].offsetWidth,
|
38
|
-
height: this.$element[0].offsetHeight
|
39
|
-
});
|
40
|
-
|
41
|
-
var actualWidth = $tip[0].offsetWidth,
|
42
|
-
actualHeight = $tip[0].offsetHeight,
|
43
|
-
gravity = maybeCall(this.options.gravity, this.$element[0]);
|
44
|
-
|
45
|
-
var tp;
|
46
|
-
switch (gravity.charAt(0)) {
|
47
|
-
case 'n':
|
48
|
-
tp = {top: pos.top + pos.height + this.options.offset, left: pos.left + pos.width / 2 - actualWidth / 2};
|
49
|
-
break;
|
50
|
-
case 's':
|
51
|
-
tp = {top: pos.top - actualHeight - this.options.offset, left: pos.left + pos.width / 2 - actualWidth / 2};
|
52
|
-
break;
|
53
|
-
case 'e':
|
54
|
-
tp = {top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left - actualWidth - this.options.offset};
|
55
|
-
break;
|
56
|
-
case 'w':
|
57
|
-
tp = {top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left + pos.width + this.options.offset};
|
58
|
-
break;
|
59
|
-
}
|
60
|
-
|
61
|
-
if (gravity.length == 2) {
|
62
|
-
if (gravity.charAt(1) == 'w') {
|
63
|
-
tp.left = pos.left + pos.width / 2 - 15;
|
64
|
-
} else {
|
65
|
-
tp.left = pos.left + pos.width / 2 - actualWidth + 15;
|
66
|
-
}
|
67
|
-
}
|
68
|
-
|
69
|
-
$tip.css(tp).addClass('tipsy-' + gravity);
|
70
|
-
$tip.find('.tipsy-arrow')[0].className = 'tipsy-arrow tipsy-arrow-' + gravity.charAt(0);
|
71
|
-
if (this.options.className) {
|
72
|
-
$tip.addClass(maybeCall(this.options.className, this.$element[0]));
|
73
|
-
}
|
74
|
-
|
75
|
-
if (this.options.fade) {
|
76
|
-
$tip.stop().css({opacity: 0, display: 'block', visibility: 'visible'}).animate({opacity: this.options.opacity});
|
77
|
-
} else {
|
78
|
-
$tip.css({visibility: 'visible', opacity: this.options.opacity});
|
79
|
-
}
|
80
|
-
}
|
81
|
-
},
|
82
|
-
|
83
|
-
hide: function() {
|
84
|
-
if (this.options.fade) {
|
85
|
-
this.tip().stop().fadeOut(function() { $(this).remove(); });
|
86
|
-
} else {
|
87
|
-
this.tip().remove();
|
88
|
-
}
|
89
|
-
},
|
90
|
-
|
91
|
-
fixTitle: function() {
|
92
|
-
var $e = this.$element;
|
93
|
-
if ($e.attr('title') || typeof($e.attr('original-title')) != 'string') {
|
94
|
-
$e.attr('original-title', $e.attr('title') || '').removeAttr('title');
|
95
|
-
}
|
96
|
-
},
|
97
|
-
|
98
|
-
getTitle: function() {
|
99
|
-
var title, $e = this.$element, o = this.options;
|
100
|
-
this.fixTitle();
|
101
|
-
var title, o = this.options;
|
102
|
-
if (typeof o.title == 'string') {
|
103
|
-
title = $e.attr(o.title == 'title' ? 'original-title' : o.title);
|
104
|
-
} else if (typeof o.title == 'function') {
|
105
|
-
title = o.title.call($e[0]);
|
106
|
-
}
|
107
|
-
title = ('' + title).replace(/(^\s*|\s*$)/, "");
|
108
|
-
return title || o.fallback;
|
109
|
-
},
|
110
|
-
|
111
|
-
tip: function() {
|
112
|
-
if (!this.$tip) {
|
113
|
-
this.$tip = $('<div class="tipsy"></div>').html('<div class="tipsy-arrow"></div><div class="tipsy-inner"></div>');
|
114
|
-
this.$tip.data('tipsy-pointee', this.$element[0]);
|
115
|
-
}
|
116
|
-
return this.$tip;
|
117
|
-
},
|
118
|
-
|
119
|
-
validate: function() {
|
120
|
-
if (!this.$element[0].parentNode) {
|
121
|
-
this.hide();
|
122
|
-
this.$element = null;
|
123
|
-
this.options = null;
|
124
|
-
}
|
125
|
-
},
|
126
|
-
|
127
|
-
enable: function() { this.enabled = true; },
|
128
|
-
disable: function() { this.enabled = false; },
|
129
|
-
toggleEnabled: function() { this.enabled = !this.enabled; }
|
130
|
-
};
|
131
|
-
|
132
|
-
$.fn.tipsy = function(options) {
|
133
|
-
|
134
|
-
if (options === true) {
|
135
|
-
return this.data('tipsy');
|
136
|
-
} else if (typeof options == 'string') {
|
137
|
-
var tipsy = this.data('tipsy');
|
138
|
-
if (tipsy) tipsy[options]();
|
139
|
-
return this;
|
140
|
-
}
|
141
|
-
|
142
|
-
options = $.extend({}, $.fn.tipsy.defaults, options);
|
143
|
-
|
144
|
-
function get(ele) {
|
145
|
-
var tipsy = $.data(ele, 'tipsy');
|
146
|
-
if (!tipsy) {
|
147
|
-
tipsy = new Tipsy(ele, $.fn.tipsy.elementOptions(ele, options));
|
148
|
-
$.data(ele, 'tipsy', tipsy);
|
149
|
-
}
|
150
|
-
return tipsy;
|
151
|
-
}
|
152
|
-
|
153
|
-
function enter() {
|
154
|
-
var tipsy = get(this);
|
155
|
-
tipsy.hoverState = 'in';
|
156
|
-
if (options.delayIn == 0) {
|
157
|
-
tipsy.show();
|
158
|
-
} else {
|
159
|
-
tipsy.fixTitle();
|
160
|
-
setTimeout(function() { if (tipsy.hoverState == 'in') tipsy.show(); }, options.delayIn);
|
161
|
-
}
|
162
|
-
};
|
163
|
-
|
164
|
-
function leave() {
|
165
|
-
var tipsy = get(this);
|
166
|
-
tipsy.hoverState = 'out';
|
167
|
-
if (options.delayOut == 0) {
|
168
|
-
tipsy.hide();
|
169
|
-
} else {
|
170
|
-
setTimeout(function() { if (tipsy.hoverState == 'out') tipsy.hide(); }, options.delayOut);
|
171
|
-
}
|
172
|
-
};
|
173
|
-
|
174
|
-
if (!options.live) this.each(function() { get(this); });
|
175
|
-
|
176
|
-
if (options.trigger != 'manual') {
|
177
|
-
var binder = options.live ? 'live' : 'bind',
|
178
|
-
eventIn = options.trigger == 'hover' ? 'mouseenter' : 'focus',
|
179
|
-
eventOut = options.trigger == 'hover' ? 'mouseleave' : 'blur';
|
180
|
-
this[binder](eventIn, enter)[binder](eventOut, leave);
|
181
|
-
}
|
182
|
-
|
183
|
-
return this;
|
184
|
-
|
185
|
-
};
|
186
|
-
|
187
|
-
$.fn.tipsy.defaults = {
|
188
|
-
className: null,
|
189
|
-
delayIn: 0,
|
190
|
-
delayOut: 0,
|
191
|
-
fade: false,
|
192
|
-
fallback: '',
|
193
|
-
gravity: 'n',
|
194
|
-
html: false,
|
195
|
-
live: false,
|
196
|
-
offset: 0,
|
197
|
-
opacity: 0.8,
|
198
|
-
title: 'title',
|
199
|
-
trigger: 'hover'
|
200
|
-
};
|
201
|
-
|
202
|
-
$.fn.tipsy.revalidate = function() {
|
203
|
-
$('.tipsy').each(function() {
|
204
|
-
var pointee = $.data(this, 'tipsy-pointee');
|
205
|
-
if (!pointee || !isElementInDOM(pointee)) {
|
206
|
-
$(this).remove();
|
207
|
-
}
|
208
|
-
});
|
209
|
-
};
|
210
|
-
|
211
|
-
// Overwrite this method to provide options on a per-element basis.
|
212
|
-
// For example, you could store the gravity in a 'tipsy-gravity' attribute:
|
213
|
-
// return $.extend({}, options, {gravity: $(ele).attr('tipsy-gravity') || 'n' });
|
214
|
-
// (remember - do not modify 'options' in place!)
|
215
|
-
$.fn.tipsy.elementOptions = function(ele, options) {
|
216
|
-
return $.metadata ? $.extend({}, options, $(ele).metadata()) : options;
|
217
|
-
};
|
218
|
-
|
219
|
-
$.fn.tipsy.autoNS = function() {
|
220
|
-
return $(this).offset().top > ($(document).scrollTop() + $(window).height() / 2) ? 's' : 'n';
|
221
|
-
};
|
222
|
-
|
223
|
-
$.fn.tipsy.autoWE = function() {
|
224
|
-
return $(this).offset().left > ($(document).scrollLeft() + $(window).width() / 2) ? 'e' : 'w';
|
225
|
-
};
|
226
|
-
|
227
|
-
/**
|
228
|
-
* yields a closure of the supplied parameters, producing a function that takes
|
229
|
-
* no arguments and is suitable for use as an autogravity function like so:
|
230
|
-
*
|
231
|
-
* @param margin (int) - distance from the viewable region edge that an
|
232
|
-
* element should be before setting its tooltip's gravity to be away
|
233
|
-
* from that edge.
|
234
|
-
* @param prefer (string, e.g. 'n', 'sw', 'w') - the direction to prefer
|
235
|
-
* if there are no viewable region edges effecting the tooltip's
|
236
|
-
* gravity. It will try to vary from this minimally, for example,
|
237
|
-
* if 'sw' is preferred and an element is near the right viewable
|
238
|
-
* region edge, but not the top edge, it will set the gravity for
|
239
|
-
* that element's tooltip to be 'se', preserving the southern
|
240
|
-
* component.
|
241
|
-
*/
|
242
|
-
$.fn.tipsy.autoBounds = function(margin, prefer) {
|
243
|
-
return function() {
|
244
|
-
var dir = {ns: prefer[0], ew: (prefer.length > 1 ? prefer[1] : false)},
|
245
|
-
boundTop = $(document).scrollTop() + margin,
|
246
|
-
boundLeft = $(document).scrollLeft() + margin,
|
247
|
-
$this = $(this);
|
248
|
-
|
249
|
-
if ($this.offset().top < boundTop) dir.ns = 'n';
|
250
|
-
if ($this.offset().left < boundLeft) dir.ew = 'w';
|
251
|
-
if ($(window).width() + $(document).scrollLeft() - $this.offset().left < margin) dir.ew = 'e';
|
252
|
-
if ($(window).height() + $(document).scrollTop() - $this.offset().top < margin) dir.ns = 's';
|
253
|
-
|
254
|
-
return dir.ns + (dir.ew ? dir.ew : '');
|
255
|
-
}
|
256
|
-
};
|
257
|
-
|
258
|
-
})(jQuery);
|
@@ -1,40 +0,0 @@
|
|
1
|
-
(function() {
|
2
|
-
var triggerBttn = document.getElementById( 'trigger-overlay' ),
|
3
|
-
overlay = document.querySelector( 'div.overlay' ),
|
4
|
-
closeBttn = overlay.querySelector( 'button.overlay-close' );
|
5
|
-
transEndEventNames = {
|
6
|
-
'WebkitTransition': 'webkitTransitionEnd',
|
7
|
-
'MozTransition': 'transitionend',
|
8
|
-
'OTransition': 'oTransitionEnd',
|
9
|
-
'msTransition': 'MSTransitionEnd',
|
10
|
-
'transition': 'transitionend'
|
11
|
-
},
|
12
|
-
transEndEventName = transEndEventNames[ Modernizr.prefixed( 'transition' ) ],
|
13
|
-
support = { transitions : Modernizr.csstransitions };
|
14
|
-
|
15
|
-
function toggleOverlay() {
|
16
|
-
if( classie.has( overlay, 'open' ) ) {
|
17
|
-
classie.remove( overlay, 'open' );
|
18
|
-
classie.add( overlay, 'close' );
|
19
|
-
var onEndTransitionFn = function( ev ) {
|
20
|
-
if( support.transitions ) {
|
21
|
-
if( ev.propertyName !== 'visibility' ) return;
|
22
|
-
this.removeEventListener( transEndEventName, onEndTransitionFn );
|
23
|
-
}
|
24
|
-
classie.remove( overlay, 'close' );
|
25
|
-
};
|
26
|
-
if( support.transitions ) {
|
27
|
-
overlay.addEventListener( transEndEventName, onEndTransitionFn );
|
28
|
-
}
|
29
|
-
else {
|
30
|
-
onEndTransitionFn();
|
31
|
-
}
|
32
|
-
}
|
33
|
-
else if( !classie.has( overlay, 'close' ) ) {
|
34
|
-
classie.add( overlay, 'open' );
|
35
|
-
}
|
36
|
-
}
|
37
|
-
|
38
|
-
triggerBttn.addEventListener( 'click', toggleOverlay );
|
39
|
-
closeBttn.addEventListener( 'click', toggleOverlay );
|
40
|
-
})();
|
@@ -1,4 +0,0 @@
|
|
1
|
-
/* Modernizr 2.7.1 (Custom Build) | MIT & BSD
|
2
|
-
* Build: http://modernizr.com/download/#-csstransitions-shiv-cssclasses-prefixed-testprop-testallprops-domprefixes-load
|
3
|
-
*/
|
4
|
-
;window.Modernizr=function(a,b,c){function x(a){j.cssText=a}function y(a,b){return x(prefixes.join(a+";")+(b||""))}function z(a,b){return typeof a===b}function A(a,b){return!!~(""+a).indexOf(b)}function B(a,b){for(var d in a){var e=a[d];if(!A(e,"-")&&j[e]!==c)return b=="pfx"?e:!0}return!1}function C(a,b,d){for(var e in a){var f=b[a[e]];if(f!==c)return d===!1?a[e]:z(f,"function")?f.bind(d||b):f}return!1}function D(a,b,c){var d=a.charAt(0).toUpperCase()+a.slice(1),e=(a+" "+n.join(d+" ")+d).split(" ");return z(b,"string")||z(b,"undefined")?B(e,b):(e=(a+" "+o.join(d+" ")+d).split(" "),C(e,b,c))}var d="2.7.1",e={},f=!0,g=b.documentElement,h="modernizr",i=b.createElement(h),j=i.style,k,l={}.toString,m="Webkit Moz O ms",n=m.split(" "),o=m.toLowerCase().split(" "),p={},q={},r={},s=[],t=s.slice,u,v={}.hasOwnProperty,w;!z(v,"undefined")&&!z(v.call,"undefined")?w=function(a,b){return v.call(a,b)}:w=function(a,b){return b in a&&z(a.constructor.prototype[b],"undefined")},Function.prototype.bind||(Function.prototype.bind=function(b){var c=this;if(typeof c!="function")throw new TypeError;var d=t.call(arguments,1),e=function(){if(this instanceof e){var a=function(){};a.prototype=c.prototype;var f=new a,g=c.apply(f,d.concat(t.call(arguments)));return Object(g)===g?g:f}return c.apply(b,d.concat(t.call(arguments)))};return e}),p.csstransitions=function(){return D("transition")};for(var E in p)w(p,E)&&(u=E.toLowerCase(),e[u]=p[E](),s.push((e[u]?"":"no-")+u));return e.addTest=function(a,b){if(typeof a=="object")for(var d in a)w(a,d)&&e.addTest(d,a[d]);else{a=a.toLowerCase();if(e[a]!==c)return e;b=typeof b=="function"?b():b,typeof f!="undefined"&&f&&(g.className+=" "+(b?"":"no-")+a),e[a]=b}return e},x(""),i=k=null,function(a,b){function l(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x<style>"+b+"</style>",d.insertBefore(c.lastChild,d.firstChild)}function m(){var a=s.elements;return typeof a=="string"?a.split(" "):a}function n(a){var b=j[a[h]];return b||(b={},i++,a[h]=i,j[i]=b),b}function o(a,c,d){c||(c=b);if(k)return c.createElement(a);d||(d=n(c));var g;return d.cache[a]?g=d.cache[a].cloneNode():f.test(a)?g=(d.cache[a]=d.createElem(a)).cloneNode():g=d.createElem(a),g.canHaveChildren&&!e.test(a)&&!g.tagUrn?d.frag.appendChild(g):g}function p(a,c){a||(a=b);if(k)return a.createDocumentFragment();c=c||n(a);var d=c.frag.cloneNode(),e=0,f=m(),g=f.length;for(;e<g;e++)d.createElement(f[e]);return d}function q(a,b){b.cache||(b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag()),a.createElement=function(c){return s.shivMethods?o(c,a,b):b.createElem(c)},a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+m().join().replace(/[\w\-]+/g,function(a){return b.createElem(a),b.frag.createElement(a),'c("'+a+'")'})+");return n}")(s,b.frag)}function r(a){a||(a=b);var c=n(a);return s.shivCSS&&!g&&!c.hasCSS&&(c.hasCSS=!!l(a,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),k||q(a,c),a}var c="3.7.0",d=a.html5||{},e=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,f=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,g,h="_html5shiv",i=0,j={},k;(function(){try{var a=b.createElement("a");a.innerHTML="<xyz></xyz>",g="hidden"in a,k=a.childNodes.length==1||function(){b.createElement("a");var a=b.createDocumentFragment();return typeof a.cloneNode=="undefined"||typeof a.createDocumentFragment=="undefined"||typeof a.createElement=="undefined"}()}catch(c){g=!0,k=!0}})();var s={elements:d.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video",version:c,shivCSS:d.shivCSS!==!1,supportsUnknownElements:k,shivMethods:d.shivMethods!==!1,type:"default",shivDocument:r,createElement:o,createDocumentFragment:p};a.html5=s,r(b)}(this,b),e._version=d,e._domPrefixes=o,e._cssomPrefixes=n,e.testProp=function(a){return B([a])},e.testAllProps=D,e.prefixed=function(a,b,c){return b?D(a,b,c):D(a,"pfx")},g.className=g.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(f?" js "+s.join(" "):""),e}(this,this.document),function(a,b,c){function d(a){return"[object Function]"==o.call(a)}function e(a){return"string"==typeof a}function f(){}function g(a){return!a||"loaded"==a||"complete"==a||"uninitialized"==a}function h(){var a=p.shift();q=1,a?a.t?m(function(){("c"==a.t?B.injectCss:B.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),h()):q=0}function i(a,c,d,e,f,i,j){function k(b){if(!o&&g(l.readyState)&&(u.r=o=1,!q&&h(),l.onload=l.onreadystatechange=null,b)){"img"!=a&&m(function(){t.removeChild(l)},50);for(var d in y[c])y[c].hasOwnProperty(d)&&y[c][d].onload()}}var j=j||B.errorTimeout,l=b.createElement(a),o=0,r=0,u={t:d,s:c,e:f,a:i,x:j};1===y[c]&&(r=1,y[c]=[]),"object"==a?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){k.call(this,r)},p.splice(e,0,u),"img"!=a&&(r||2===y[c]?(t.insertBefore(l,s?null:n),m(k,j)):y[c].push(l))}function j(a,b,c,d,f){return q=0,b=b||"j",e(a)?i("c"==b?v:u,a,b,this.i++,c,d,f):(p.splice(this.i++,0,a),1==p.length&&h()),this}function k(){var a=B;return a.loader={load:j,i:0},a}var l=b.documentElement,m=a.setTimeout,n=b.getElementsByTagName("script")[0],o={}.toString,p=[],q=0,r="MozAppearance"in l.style,s=r&&!!b.createRange().compareNode,t=s?l:n.parentNode,l=a.opera&&"[object Opera]"==o.call(a.opera),l=!!b.attachEvent&&!l,u=r?"object":l?"script":"img",v=l?"script":u,w=Array.isArray||function(a){return"[object Array]"==o.call(a)},x=[],y={},z={timeout:function(a,b){return b.length&&(a.timeout=b[0]),a}},A,B;B=function(a){function b(a){var a=a.split("!"),b=x.length,c=a.pop(),d=a.length,c={url:c,origUrl:c,prefixes:a},e,f,g;for(f=0;f<d;f++)g=a[f].split("="),(e=z[g.shift()])&&(c=e(c,g));for(f=0;f<b;f++)c=x[f](c);return c}function g(a,e,f,g,h){var i=b(a),j=i.autoCallback;i.url.split(".").pop().split("?").shift(),i.bypass||(e&&(e=d(e)?e:e[a]||e[g]||e[a.split("/").pop().split("?")[0]]),i.instead?i.instead(a,e,f,g,h):(y[i.url]?i.noexec=!0:y[i.url]=1,f.load(i.url,i.forceCSS||!i.forceJS&&"css"==i.url.split(".").pop().split("?").shift()?"c":c,i.noexec,i.attrs,i.timeout),(d(e)||d(j))&&f.load(function(){k(),e&&e(i.origUrl,h,g),j&&j(i.origUrl,h,g),y[i.url]=2})))}function h(a,b){function c(a,c){if(a){if(e(a))c||(j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}),g(a,j,b,0,h);else if(Object(a)===a)for(n in m=function(){var b=0,c;for(c in a)a.hasOwnProperty(c)&&b++;return b}(),a)a.hasOwnProperty(n)&&(!c&&!--m&&(d(j)?j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}:j[n]=function(a){return function(){var b=[].slice.call(arguments);a&&a.apply(this,b),l()}}(k[n])),g(a[n],j,b,n,h))}else!c&&l()}var h=!!a.test,i=a.load||a.both,j=a.callback||f,k=j,l=a.complete||f,m,n;c(h?a.yep:a.nope,!!i),i&&c(i)}var i,j,l=this.yepnope.loader;if(e(a))g(a,0,l,0);else if(w(a))for(i=0;i<a.length;i++)j=a[i],e(j)?g(j,0,l,0):w(j)?B(j):Object(j)===j&&h(j,l);else Object(a)===a&&h(a,l)},B.addPrefix=function(a,b){z[a]=b},B.addFilter=function(a){x.push(a)},B.errorTimeout=1e4,null==b.readyState&&b.addEventListener&&(b.readyState="loading",b.addEventListener("DOMContentLoaded",A=function(){b.removeEventListener("DOMContentLoaded",A,0),b.readyState="complete"},0)),a.yepnope=k(),a.yepnope.executeStack=h,a.yepnope.injectJs=function(a,c,d,e,i,j){var k=b.createElement("script"),l,o,e=e||B.errorTimeout;k.src=a;for(o in d)k.setAttribute(o,d[o]);c=j?h:c||f,k.onreadystatechange=k.onload=function(){!l&&g(k.readyState)&&(l=1,c(),k.onload=k.onreadystatechange=null)},m(function(){l||(l=1,c(1))},e),i?k.onload():n.parentNode.insertBefore(k,n)},a.yepnope.injectCss=function(a,c,d,e,g,i){var e=b.createElement("link"),j,c=i?h:c||f;e.href=a,e.rel="stylesheet",e.type="text/css";for(j in d)e.setAttribute(j,d[j]);g||(n.parentNode.insertBefore(e,n),m(c,0))}}(this,document),Modernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,0))};
|
@@ -1,6 +0,0 @@
|
|
1
|
-
/*! matchMedia() polyfill - Test a CSS media type/query in JS. Authors & copyright (c) 2012: Scott Jehl, Paul Irish, Nicholas Zakas. Dual MIT/BSD license */
|
2
|
-
/*! NOTE: If you're already including a window.matchMedia polyfill via Modernizr or otherwise, you don't need this part */
|
3
|
-
window.matchMedia=window.matchMedia||(function(e,f){var c,a=e.documentElement,b=a.firstElementChild||a.firstChild,d=e.createElement("body"),g=e.createElement("div");g.id="mq-test-1";g.style.cssText="position:absolute;top:-100em";d.style.background="none";d.appendChild(g);return function(h){g.innerHTML='­<style media="'+h+'"> #mq-test-1 { width: 42px; }</style>';a.insertBefore(d,b);c=g.offsetWidth==42;a.removeChild(d);return{matches:c,media:h}}})(document);
|
4
|
-
|
5
|
-
/*! Respond.js v1.1.0: min/max-width media query polyfill. (c) Scott Jehl. MIT/GPLv2 Lic. j.mp/respondjs */
|
6
|
-
(function(e){e.respond={};respond.update=function(){};respond.mediaQueriesSupported=e.matchMedia&&e.matchMedia("only all").matches;if(respond.mediaQueriesSupported){return}var w=e.document,s=w.documentElement,i=[],k=[],q=[],o={},h=30,f=w.getElementsByTagName("head")[0]||s,g=w.getElementsByTagName("base")[0],b=f.getElementsByTagName("link"),d=[],a=function(){var D=b,y=D.length,B=0,A,z,C,x;for(;B<y;B++){A=D[B],z=A.href,C=A.media,x=A.rel&&A.rel.toLowerCase()==="stylesheet";if(!!z&&x&&!o[z]){if(A.styleSheet&&A.styleSheet.rawCssText){m(A.styleSheet.rawCssText,z,C);o[z]=true}else{if((!/^([a-zA-Z:]*\/\/)/.test(z)&&!g)||z.replace(RegExp.$1,"").split("/")[0]===e.location.host){d.push({href:z,media:C})}}}}u()},u=function(){if(d.length){var x=d.shift();n(x.href,function(y){m(y,x.href,x.media);o[x.href]=true;u()})}},m=function(I,x,z){var G=I.match(/@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi),J=G&&G.length||0,x=x.substring(0,x.lastIndexOf("/")),y=function(K){return K.replace(/(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,"$1"+x+"$2$3")},A=!J&&z,D=0,C,E,F,B,H;if(x.length){x+="/"}if(A){J=1}for(;D<J;D++){C=0;if(A){E=z;k.push(y(I))}else{E=G[D].match(/@media *([^\{]+)\{([\S\s]+?)$/)&&RegExp.$1;k.push(RegExp.$2&&y(RegExp.$2))}B=E.split(",");H=B.length;for(;C<H;C++){F=B[C];i.push({media:F.split("(")[0].match(/(only\s+)?([a-zA-Z]+)\s?/)&&RegExp.$2||"all",rules:k.length-1,hasquery:F.indexOf("(")>-1,minw:F.match(/\(min\-width:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/)&&parseFloat(RegExp.$1)+(RegExp.$2||""),maxw:F.match(/\(max\-width:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/)&&parseFloat(RegExp.$1)+(RegExp.$2||"")})}}j()},l,r,v=function(){var z,A=w.createElement("div"),x=w.body,y=false;A.style.cssText="position:absolute;font-size:1em;width:1em";if(!x){x=y=w.createElement("body");x.style.background="none"}x.appendChild(A);s.insertBefore(x,s.firstChild);z=A.offsetWidth;if(y){s.removeChild(x)}else{x.removeChild(A)}z=p=parseFloat(z);return z},p,j=function(I){var x="clientWidth",B=s[x],H=w.compatMode==="CSS1Compat"&&B||w.body[x]||B,D={},G=b[b.length-1],z=(new Date()).getTime();if(I&&l&&z-l<h){clearTimeout(r);r=setTimeout(j,h);return}else{l=z}for(var E in i){var K=i[E],C=K.minw,J=K.maxw,A=C===null,L=J===null,y="em";if(!!C){C=parseFloat(C)*(C.indexOf(y)>-1?(p||v()):1)}if(!!J){J=parseFloat(J)*(J.indexOf(y)>-1?(p||v()):1)}if(!K.hasquery||(!A||!L)&&(A||H>=C)&&(L||H<=J)){if(!D[K.media]){D[K.media]=[]}D[K.media].push(k[K.rules])}}for(var E in q){if(q[E]&&q[E].parentNode===f){f.removeChild(q[E])}}for(var E in D){var M=w.createElement("style"),F=D[E].join("\n");M.type="text/css";M.media=E;f.insertBefore(M,G.nextSibling);if(M.styleSheet){M.styleSheet.cssText=F}else{M.appendChild(w.createTextNode(F))}q.push(M)}},n=function(x,z){var y=c();if(!y){return}y.open("GET",x,true);y.onreadystatechange=function(){if(y.readyState!=4||y.status!=200&&y.status!=304){return}z(y.responseText)};if(y.readyState==4){return}y.send(null)},c=(function(){var x=false;try{x=new XMLHttpRequest()}catch(y){x=new ActiveXObject("Microsoft.XMLHTTP")}return function(){return x}})();a();respond.update=a;function t(){j(true)}if(e.addEventListener){e.addEventListener("resize",t,false)}else{if(e.attachEvent){e.attachEvent("onresize",t)}}})(this);
|