joyride-rails 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- data/app/assets/javascripts/joyride/modernizr.foundation.js +604 -3
- data/app/assets/stylesheets/joyride/bootstrap_tour.css.sass +1 -2
- data/app/assets/stylesheets/joyride/{joyride.css → joyride.css.scss} +4 -4
- data/app/assets/stylesheets/joyride/variables.sass +12 -12
- data/lib/joyride/version.rb +1 -1
- data/test/dummy/Gemfile +2 -2
- data/test/dummy/Gemfile.lock +43 -36
- data/test/dummy/app/assets/stylesheets/application.css.sass +5 -3
- data/test/dummy/config/boot.rb +1 -0
- data/test/dummy/log/development.log +474 -16399
- data/test/dummy/tmp/cache/assets/C44/190/sprockets%2Fed0a3126702b1a18127599923d900e29 +0 -0
- data/test/dummy/tmp/cache/assets/C57/9B0/sprockets%2F17608fe0064c6cc768e7086069312f16 +0 -0
- data/test/dummy/tmp/cache/assets/C73/620/sprockets%2F26be5f82466796762f317c728664fe59 +0 -0
- data/test/dummy/tmp/cache/assets/C8B/E10/sprockets%2F5b362949a9b504454e4583f14d8d7b80 +0 -0
- data/test/dummy/tmp/cache/assets/{C5A/BD0/sprockets%2F6e8287461f7b19335a41a29ed9195620 → C9B/600/sprockets%2Faa1426626cc136ba650a759060802e5d} +0 -0
- data/test/dummy/tmp/cache/assets/CCA/0C0/sprockets%2F6c3e053393afe303432ca73f1b41490b +0 -0
- data/test/dummy/tmp/cache/assets/{D5E/640/sprockets%2Fab4ee5924db252a15f52b2cfa36b1709 → CD8/ED0/sprockets%2Fa2c4ba39553d2691748c3330a942ecf3} +0 -0
- data/test/dummy/tmp/cache/assets/{D4B/720/sprockets%2Fe16c199f91934eaff7bf97321504da2f → CF0/950/sprockets%2F842e8cf606d907d7060d4f5920f68f2e} +0 -0
- data/test/dummy/tmp/cache/assets/CFA/7D0/sprockets%2F8c945f8efd1660b42976793a1c0699ed +0 -0
- data/test/dummy/tmp/cache/assets/{D57/E70/sprockets%2Ff3d85fee7084763c5a76a1ea676f962f → D02/6A0/sprockets%2Fe1718a8dc85cb85c100031a4cab47586} +0 -0
- data/test/dummy/tmp/cache/assets/D03/C50/sprockets%2Fc6b68ea2a0846b781e19e3104ae0f450 +0 -0
- data/test/dummy/tmp/cache/assets/D03/F50/sprockets%2F5612c52f781ae0c0df007f386c0b5c65 +0 -0
- data/test/dummy/tmp/cache/assets/D0E/3B0/sprockets%2F7c3f1b3471b1079c5d6714a046dfcf95 +0 -0
- data/test/dummy/tmp/cache/assets/D18/840/sprockets%2F50c1885539f61359c48af74fcae1df31 +0 -0
- data/test/dummy/tmp/cache/assets/D19/220/sprockets%2F8c12a483b1e48edec3c45980298457be +0 -0
- data/test/dummy/tmp/cache/assets/D34/240/sprockets%2F3354020004ddcef6c60bb288f38f7da5 +0 -0
- data/test/dummy/tmp/cache/assets/D4C/860/sprockets%2F7cee897e54700c3fee760ca5c48044d8 +0 -0
- data/test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/test/dummy/tmp/cache/assets/D50/F10/sprockets%2F5f87886c37fb846fe46c40dfb2643ac2 +0 -0
- data/test/dummy/tmp/cache/assets/D60/BC0/sprockets%2Fde58afb05f6a020f03b64640097fbb6b +0 -0
- data/test/dummy/tmp/cache/assets/D65/8F0/sprockets%2F0ab2d28ebf199d4821c6e203c1c5e7e3 +0 -0
- data/test/dummy/tmp/cache/assets/D6A/4D0/sprockets%2F17435abb29c34a04e4f32c67b3de4f9f +0 -0
- data/test/dummy/tmp/cache/assets/D7A/230/sprockets%2F8ed70981a55fd6895fe511bd49aa80ca +0 -0
- data/test/dummy/tmp/cache/assets/D7D/400/sprockets%2F883a34e5b25c8eb71f4ed18996fcd43a +0 -0
- data/test/dummy/tmp/cache/assets/DA6/120/sprockets%2Fc5880aca76ccbb51f9388362e8afc1e6 +0 -0
- data/test/dummy/tmp/cache/assets/{CAC/040/sprockets%2F0b7d050189881e4fd2073328d92e1b2f → DAC/EF0/sprockets%2F7f01e32698fba9cc3ed21f93f5eae099} +0 -0
- data/test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/test/dummy/tmp/cache/assets/DF3/6F0/sprockets%2Ffba93885ced0911e16ae73b1fccb1a4c +0 -0
- data/test/dummy/tmp/cache/assets/DF8/710/sprockets%2Fec06edb8e8ec3988b7b2bbbb37b03c03 +0 -0
- data/test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/test/dummy/tmp/cache/assets/E4A/080/sprockets%2F5ef47dd1c59ebec1db66d00aceeac100 +0 -0
- data/test/dummy/tmp/cache/sass/2b8e17ada76f33447bdf4c7a779be69a6e550d72/_animation.scssc +0 -0
- data/test/dummy/tmp/cache/sass/2b8e17ada76f33447bdf4c7a779be69a6e550d72/_appearance.scssc +0 -0
- data/test/dummy/tmp/cache/sass/2b8e17ada76f33447bdf4c7a779be69a6e550d72/_background-image.scssc +0 -0
- data/test/dummy/tmp/cache/sass/2b8e17ada76f33447bdf4c7a779be69a6e550d72/_background-size.scssc +0 -0
- data/test/dummy/tmp/cache/sass/2b8e17ada76f33447bdf4c7a779be69a6e550d72/_border-image.scssc +0 -0
- data/test/dummy/tmp/cache/sass/2b8e17ada76f33447bdf4c7a779be69a6e550d72/_border-radius.scssc +0 -0
- data/test/dummy/tmp/cache/sass/2b8e17ada76f33447bdf4c7a779be69a6e550d72/_box-shadow.scssc +0 -0
- data/test/dummy/tmp/cache/sass/2b8e17ada76f33447bdf4c7a779be69a6e550d72/_box-sizing.scssc +0 -0
- data/test/dummy/tmp/cache/sass/2b8e17ada76f33447bdf4c7a779be69a6e550d72/_columns.scssc +0 -0
- data/test/dummy/tmp/cache/sass/2b8e17ada76f33447bdf4c7a779be69a6e550d72/_flex-box.scssc +0 -0
- data/test/dummy/tmp/cache/sass/2b8e17ada76f33447bdf4c7a779be69a6e550d72/_inline-block.scssc +0 -0
- data/test/dummy/tmp/cache/sass/2b8e17ada76f33447bdf4c7a779be69a6e550d72/_linear-gradient.scssc +0 -0
- data/test/dummy/tmp/cache/sass/2b8e17ada76f33447bdf4c7a779be69a6e550d72/_prefixer.scssc +0 -0
- data/test/dummy/tmp/cache/sass/2b8e17ada76f33447bdf4c7a779be69a6e550d72/_radial-gradient.scssc +0 -0
- data/test/dummy/tmp/cache/sass/2b8e17ada76f33447bdf4c7a779be69a6e550d72/_transform.scssc +0 -0
- data/test/dummy/tmp/cache/sass/2b8e17ada76f33447bdf4c7a779be69a6e550d72/_transition.scssc +0 -0
- data/test/dummy/tmp/cache/sass/2b8e17ada76f33447bdf4c7a779be69a6e550d72/_user-select.scssc +0 -0
- data/test/dummy/tmp/cache/sass/41ea83e15361eb0e61d0aede15a285839ead91ae/bootstrap_tour.css.sassc +0 -0
- data/test/dummy/tmp/cache/sass/41ea83e15361eb0e61d0aede15a285839ead91ae/bootstrap_tour.css.scssc +0 -0
- data/test/dummy/tmp/cache/sass/41ea83e15361eb0e61d0aede15a285839ead91ae/joyride.css.scssc +0 -0
- data/test/dummy/tmp/cache/sass/44627775eec2d5b4ec81f60243cb5b3884d72682/_deprecated-webkit-gradient.scssc +0 -0
- data/test/dummy/tmp/cache/sass/44627775eec2d5b4ec81f60243cb5b3884d72682/_flex-grid.scssc +0 -0
- data/test/dummy/tmp/cache/sass/44627775eec2d5b4ec81f60243cb5b3884d72682/_grid-width.scssc +0 -0
- data/test/dummy/tmp/cache/sass/44627775eec2d5b4ec81f60243cb5b3884d72682/_linear-gradient.scssc +0 -0
- data/test/dummy/tmp/cache/sass/44627775eec2d5b4ec81f60243cb5b3884d72682/_modular-scale.scssc +0 -0
- data/test/dummy/tmp/cache/sass/44627775eec2d5b4ec81f60243cb5b3884d72682/_radial-gradient.scssc +0 -0
- data/test/dummy/tmp/cache/sass/44627775eec2d5b4ec81f60243cb5b3884d72682/_render-gradients.scssc +0 -0
- data/test/dummy/tmp/cache/sass/44627775eec2d5b4ec81f60243cb5b3884d72682/_tint-shade.scssc +0 -0
- data/test/dummy/tmp/cache/sass/44627775eec2d5b4ec81f60243cb5b3884d72682/_transition-property-name.scssc +0 -0
- data/test/dummy/tmp/cache/sass/6a91e0ce0789596fee5bc4ff3f591470f3aec0de/application.css.sassc +0 -0
- data/test/dummy/tmp/cache/sass/b5fdbfe7ce50cb407f6848b822830812d9f90198/_button.scssc +0 -0
- data/test/dummy/tmp/cache/sass/b5fdbfe7ce50cb407f6848b822830812d9f90198/_clearfix.scssc +0 -0
- data/test/dummy/tmp/cache/sass/b5fdbfe7ce50cb407f6848b822830812d9f90198/_font-face.scssc +0 -0
- data/test/dummy/tmp/cache/sass/b5fdbfe7ce50cb407f6848b822830812d9f90198/_font-family.scssc +0 -0
- data/test/dummy/tmp/cache/sass/b5fdbfe7ce50cb407f6848b822830812d9f90198/_hide-text.scssc +0 -0
- data/test/dummy/tmp/cache/sass/b5fdbfe7ce50cb407f6848b822830812d9f90198/_html5-input-types.scssc +0 -0
- data/test/dummy/tmp/cache/sass/b5fdbfe7ce50cb407f6848b822830812d9f90198/_position.scssc +0 -0
- data/test/dummy/tmp/cache/sass/b5fdbfe7ce50cb407f6848b822830812d9f90198/_timing-functions.scssc +0 -0
- data/test/dummy/tmp/cache/sass/f634397987206844fedba023d638af3a61b67bcc/_bourbon.scssc +0 -0
- metadata +139 -51
- data/test/dummy/tmp/cache/assets/C91/370/sprockets%2F04d2120f184f1e702308355e0ed1b2b3 +0 -0
- data/test/dummy/tmp/cache/assets/CB3/440/sprockets%2Fafc3316274f038465ee4b74932bc8517 +0 -0
- data/test/dummy/tmp/cache/assets/CE1/4C0/sprockets%2Fbc6a336f1607282d2dc281fb6269a597 +0 -0
- data/test/dummy/tmp/cache/assets/D0D/670/sprockets%2F8c13b1a4b596190f1c61f4cf92b38e36 +0 -0
- data/test/dummy/tmp/cache/assets/D13/C70/sprockets%2Ff4b9d17b490ee338361265cea8915e1b +0 -0
- data/test/dummy/tmp/cache/assets/D2D/BC0/sprockets%2Fc15a9a0f641d51c813b84ecf4423d03c +0 -0
- data/test/dummy/tmp/cache/assets/D41/CB0/sprockets%2Fbf3bc772277b2a348a71f4d88c1e7c25 +0 -0
- data/test/dummy/tmp/cache/assets/DAA/7D0/sprockets%2Fdee067d8b23e8598d773bbea0df5036f +0 -0
- data/test/dummy/tmp/cache/assets/E5E/250/sprockets%2F2fac6daf6cdc1c4dc9fce4b618114f8f +0 -0
- data/test/dummy/tmp/cache/sass/41ea83e15361eb0e61d0aede15a285839ead91ae/joyride-1.0.3.css.sassc +0 -0
- data/test/dummy/tmp/cache/sass/41ea83e15361eb0e61d0aede15a285839ead91ae/joyride-1.0.4.css.sassc +0 -0
- data/test/dummy/tmp/cache/sass/41ea83e15361eb0e61d0aede15a285839ead91ae/variables.sassc +0 -0
- data/test/dummy/tmp/pids/server.pid +0 -1
@@ -1,4 +1,605 @@
|
|
1
|
-
/* Modernizr 2.5.
|
2
|
-
* Build: http://
|
1
|
+
/* Modernizr 2.5.3 (Custom Build) | MIT & BSD
|
2
|
+
* Build: http://modernizr.com/download/#-fontface-backgroundsize-borderimage-borderradius-boxshadow-hsla-multiplebgs-opacity-rgba-textshadow-cssanimations-csscolumns-generatedcontent-cssgradients-cssreflections-csstransforms-csstransforms3d-csstransitions-applicationcache-canvas-canvastext-audio-video-webworkers-shiv-mq-cssclasses-addtest-teststyles-testprop-testallprops-prefixes-domprefixes-css_backgroundcliptext-css_mask-css_overflow_scrolling-load
|
3
3
|
*/
|
4
|
-
;
|
4
|
+
;
|
5
|
+
|
6
|
+
|
7
|
+
|
8
|
+
window.Modernizr = (function( window, document, undefined ) {
|
9
|
+
|
10
|
+
var version = '2.5.3',
|
11
|
+
|
12
|
+
Modernizr = {},
|
13
|
+
|
14
|
+
enableClasses = true,
|
15
|
+
|
16
|
+
docElement = document.documentElement,
|
17
|
+
|
18
|
+
mod = 'modernizr',
|
19
|
+
modElem = document.createElement(mod),
|
20
|
+
mStyle = modElem.style,
|
21
|
+
|
22
|
+
inputElem ,
|
23
|
+
|
24
|
+
smile = ':)',
|
25
|
+
|
26
|
+
toString = {}.toString,
|
27
|
+
|
28
|
+
prefixes = ' -webkit- -moz- -o- -ms- '.split(' '),
|
29
|
+
|
30
|
+
|
31
|
+
|
32
|
+
omPrefixes = 'Webkit Moz O ms',
|
33
|
+
|
34
|
+
cssomPrefixes = omPrefixes.split(' '),
|
35
|
+
|
36
|
+
domPrefixes = omPrefixes.toLowerCase().split(' '),
|
37
|
+
|
38
|
+
|
39
|
+
tests = {},
|
40
|
+
inputs = {},
|
41
|
+
attrs = {},
|
42
|
+
|
43
|
+
classes = [],
|
44
|
+
|
45
|
+
slice = classes.slice,
|
46
|
+
|
47
|
+
featureName,
|
48
|
+
|
49
|
+
|
50
|
+
injectElementWithStyles = function( rule, callback, nodes, testnames ) {
|
51
|
+
|
52
|
+
var style, ret, node,
|
53
|
+
div = document.createElement('div'),
|
54
|
+
body = document.body,
|
55
|
+
fakeBody = body ? body : document.createElement('body');
|
56
|
+
|
57
|
+
if ( parseInt(nodes, 10) ) {
|
58
|
+
while ( nodes-- ) {
|
59
|
+
node = document.createElement('div');
|
60
|
+
node.id = testnames ? testnames[nodes] : mod + (nodes + 1);
|
61
|
+
div.appendChild(node);
|
62
|
+
}
|
63
|
+
}
|
64
|
+
|
65
|
+
style = ['­','<style>', rule, '</style>'].join('');
|
66
|
+
div.id = mod;
|
67
|
+
(body ? div : fakeBody).innerHTML += style;
|
68
|
+
fakeBody.appendChild(div);
|
69
|
+
if(!body){
|
70
|
+
fakeBody.style.background = "";
|
71
|
+
docElement.appendChild(fakeBody);
|
72
|
+
}
|
73
|
+
|
74
|
+
ret = callback(div, rule);
|
75
|
+
!body ? fakeBody.parentNode.removeChild(fakeBody) : div.parentNode.removeChild(div);
|
76
|
+
|
77
|
+
return !!ret;
|
78
|
+
|
79
|
+
},
|
80
|
+
|
81
|
+
testMediaQuery = function( mq ) {
|
82
|
+
|
83
|
+
var matchMedia = window.matchMedia || window.msMatchMedia;
|
84
|
+
if ( matchMedia ) {
|
85
|
+
return matchMedia(mq).matches;
|
86
|
+
}
|
87
|
+
|
88
|
+
var bool;
|
89
|
+
|
90
|
+
injectElementWithStyles('@media ' + mq + ' { #' + mod + ' { position: absolute; } }', function( node ) {
|
91
|
+
bool = (window.getComputedStyle ?
|
92
|
+
getComputedStyle(node, null) :
|
93
|
+
node.currentStyle)['position'] == 'absolute';
|
94
|
+
});
|
95
|
+
|
96
|
+
return bool;
|
97
|
+
|
98
|
+
},
|
99
|
+
_hasOwnProperty = ({}).hasOwnProperty, hasOwnProperty;
|
100
|
+
|
101
|
+
if ( !is(_hasOwnProperty, 'undefined') && !is(_hasOwnProperty.call, 'undefined') ) {
|
102
|
+
hasOwnProperty = function (object, property) {
|
103
|
+
return _hasOwnProperty.call(object, property);
|
104
|
+
};
|
105
|
+
}
|
106
|
+
else {
|
107
|
+
hasOwnProperty = function (object, property) {
|
108
|
+
return ((property in object) && is(object.constructor.prototype[property], 'undefined'));
|
109
|
+
};
|
110
|
+
}
|
111
|
+
|
112
|
+
|
113
|
+
if (!Function.prototype.bind) {
|
114
|
+
Function.prototype.bind = function bind(that) {
|
115
|
+
|
116
|
+
var target = this;
|
117
|
+
|
118
|
+
if (typeof target != "function") {
|
119
|
+
throw new TypeError();
|
120
|
+
}
|
121
|
+
|
122
|
+
var args = slice.call(arguments, 1),
|
123
|
+
bound = function () {
|
124
|
+
|
125
|
+
if (this instanceof bound) {
|
126
|
+
|
127
|
+
var F = function(){};
|
128
|
+
F.prototype = target.prototype;
|
129
|
+
var self = new F;
|
130
|
+
|
131
|
+
var result = target.apply(
|
132
|
+
self,
|
133
|
+
args.concat(slice.call(arguments))
|
134
|
+
);
|
135
|
+
if (Object(result) === result) {
|
136
|
+
return result;
|
137
|
+
}
|
138
|
+
return self;
|
139
|
+
|
140
|
+
} else {
|
141
|
+
|
142
|
+
return target.apply(
|
143
|
+
that,
|
144
|
+
args.concat(slice.call(arguments))
|
145
|
+
);
|
146
|
+
|
147
|
+
}
|
148
|
+
|
149
|
+
};
|
150
|
+
|
151
|
+
return bound;
|
152
|
+
};
|
153
|
+
}
|
154
|
+
|
155
|
+
function setCss( str ) {
|
156
|
+
mStyle.cssText = str;
|
157
|
+
}
|
158
|
+
|
159
|
+
function setCssAll( str1, str2 ) {
|
160
|
+
return setCss(prefixes.join(str1 + ';') + ( str2 || '' ));
|
161
|
+
}
|
162
|
+
|
163
|
+
function is( obj, type ) {
|
164
|
+
return typeof obj === type;
|
165
|
+
}
|
166
|
+
|
167
|
+
function contains( str, substr ) {
|
168
|
+
return !!~('' + str).indexOf(substr);
|
169
|
+
}
|
170
|
+
|
171
|
+
function testProps( props, prefixed ) {
|
172
|
+
for ( var i in props ) {
|
173
|
+
if ( mStyle[ props[i] ] !== undefined ) {
|
174
|
+
return prefixed == 'pfx' ? props[i] : true;
|
175
|
+
}
|
176
|
+
}
|
177
|
+
return false;
|
178
|
+
}
|
179
|
+
|
180
|
+
function testDOMProps( props, obj, elem ) {
|
181
|
+
for ( var i in props ) {
|
182
|
+
var item = obj[props[i]];
|
183
|
+
if ( item !== undefined) {
|
184
|
+
|
185
|
+
if (elem === false) return props[i];
|
186
|
+
|
187
|
+
if (is(item, 'function')){
|
188
|
+
return item.bind(elem || obj);
|
189
|
+
}
|
190
|
+
|
191
|
+
return item;
|
192
|
+
}
|
193
|
+
}
|
194
|
+
return false;
|
195
|
+
}
|
196
|
+
|
197
|
+
function testPropsAll( prop, prefixed, elem ) {
|
198
|
+
|
199
|
+
var ucProp = prop.charAt(0).toUpperCase() + prop.substr(1),
|
200
|
+
props = (prop + ' ' + cssomPrefixes.join(ucProp + ' ') + ucProp).split(' ');
|
201
|
+
|
202
|
+
if(is(prefixed, "string") || is(prefixed, "undefined")) {
|
203
|
+
return testProps(props, prefixed);
|
204
|
+
|
205
|
+
} else {
|
206
|
+
props = (prop + ' ' + (domPrefixes).join(ucProp + ' ') + ucProp).split(' ');
|
207
|
+
return testDOMProps(props, prefixed, elem);
|
208
|
+
}
|
209
|
+
}
|
210
|
+
|
211
|
+
var testBundle = (function( styles, tests ) {
|
212
|
+
var style = styles.join(''),
|
213
|
+
len = tests.length;
|
214
|
+
|
215
|
+
injectElementWithStyles(style, function( node, rule ) {
|
216
|
+
var style = document.styleSheets[document.styleSheets.length - 1],
|
217
|
+
cssText = style ? (style.cssRules && style.cssRules[0] ? style.cssRules[0].cssText : style.cssText || '') : '',
|
218
|
+
children = node.childNodes, hash = {};
|
219
|
+
|
220
|
+
while ( len-- ) {
|
221
|
+
hash[children[len].id] = children[len];
|
222
|
+
}
|
223
|
+
|
224
|
+
Modernizr['csstransforms3d'] = (hash['csstransforms3d'] && hash['csstransforms3d'].offsetLeft) === 9 && hash['csstransforms3d'].offsetHeight === 3; Modernizr['generatedcontent'] = (hash['generatedcontent'] && hash['generatedcontent'].offsetHeight) >= 1; Modernizr['fontface'] = /src/i.test(cssText) &&
|
225
|
+
cssText.indexOf(rule.split(' ')[0]) === 0; }, len, tests);
|
226
|
+
|
227
|
+
})([
|
228
|
+
'@font-face {font-family:"font";src:url("https://")}' ,['@media (',prefixes.join('transform-3d),('),mod,')',
|
229
|
+
'{#csstransforms3d{left:9px;position:absolute;height:3px;}}'].join('')
|
230
|
+
|
231
|
+
,['#generatedcontent:after{content:"',smile,'";visibility:hidden}'].join('')
|
232
|
+
],
|
233
|
+
[
|
234
|
+
'fontface' ,'csstransforms3d'
|
235
|
+
,'generatedcontent'
|
236
|
+
|
237
|
+
]);
|
238
|
+
|
239
|
+
|
240
|
+
|
241
|
+
tests['canvas'] = function() {
|
242
|
+
var elem = document.createElement('canvas');
|
243
|
+
return !!(elem.getContext && elem.getContext('2d'));
|
244
|
+
};
|
245
|
+
|
246
|
+
tests['canvastext'] = function() {
|
247
|
+
return !!(Modernizr['canvas'] && is(document.createElement('canvas').getContext('2d').fillText, 'function'));
|
248
|
+
};
|
249
|
+
tests['rgba'] = function() {
|
250
|
+
setCss('background-color:rgba(150,255,150,.5)');
|
251
|
+
|
252
|
+
return contains(mStyle.backgroundColor, 'rgba');
|
253
|
+
};
|
254
|
+
|
255
|
+
tests['hsla'] = function() {
|
256
|
+
setCss('background-color:hsla(120,40%,100%,.5)');
|
257
|
+
|
258
|
+
return contains(mStyle.backgroundColor, 'rgba') || contains(mStyle.backgroundColor, 'hsla');
|
259
|
+
};
|
260
|
+
|
261
|
+
tests['multiplebgs'] = function() {
|
262
|
+
setCss('background:url(https://),url(https://),red url(https://)');
|
263
|
+
|
264
|
+
return /(url\s*\(.*?){3}/.test(mStyle.background);
|
265
|
+
};
|
266
|
+
tests['backgroundsize'] = function() {
|
267
|
+
return testPropsAll('backgroundSize');
|
268
|
+
};
|
269
|
+
|
270
|
+
tests['borderimage'] = function() {
|
271
|
+
return testPropsAll('borderImage');
|
272
|
+
};
|
273
|
+
|
274
|
+
|
275
|
+
|
276
|
+
tests['borderradius'] = function() {
|
277
|
+
return testPropsAll('borderRadius');
|
278
|
+
};
|
279
|
+
|
280
|
+
tests['boxshadow'] = function() {
|
281
|
+
return testPropsAll('boxShadow');
|
282
|
+
};
|
283
|
+
|
284
|
+
tests['textshadow'] = function() {
|
285
|
+
return document.createElement('div').style.textShadow === '';
|
286
|
+
};
|
287
|
+
|
288
|
+
|
289
|
+
tests['opacity'] = function() {
|
290
|
+
setCssAll('opacity:.55');
|
291
|
+
|
292
|
+
return /^0.55$/.test(mStyle.opacity);
|
293
|
+
};
|
294
|
+
|
295
|
+
|
296
|
+
tests['cssanimations'] = function() {
|
297
|
+
return testPropsAll('animationName');
|
298
|
+
};
|
299
|
+
|
300
|
+
|
301
|
+
tests['csscolumns'] = function() {
|
302
|
+
return testPropsAll('columnCount');
|
303
|
+
};
|
304
|
+
|
305
|
+
|
306
|
+
tests['cssgradients'] = function() {
|
307
|
+
var str1 = 'background-image:',
|
308
|
+
str2 = 'gradient(linear,left top,right bottom,from(#9f9),to(white));',
|
309
|
+
str3 = 'linear-gradient(left top,#9f9, white);';
|
310
|
+
|
311
|
+
setCss(
|
312
|
+
(str1 + '-webkit- '.split(' ').join(str2 + str1)
|
313
|
+
+ prefixes.join(str3 + str1)).slice(0, -str1.length)
|
314
|
+
);
|
315
|
+
|
316
|
+
return contains(mStyle.backgroundImage, 'gradient');
|
317
|
+
};
|
318
|
+
|
319
|
+
|
320
|
+
tests['cssreflections'] = function() {
|
321
|
+
return testPropsAll('boxReflect');
|
322
|
+
};
|
323
|
+
|
324
|
+
|
325
|
+
tests['csstransforms'] = function() {
|
326
|
+
return !!testPropsAll('transform');
|
327
|
+
};
|
328
|
+
|
329
|
+
|
330
|
+
tests['csstransforms3d'] = function() {
|
331
|
+
|
332
|
+
var ret = !!testPropsAll('perspective');
|
333
|
+
|
334
|
+
if ( ret && 'webkitPerspective' in docElement.style ) {
|
335
|
+
|
336
|
+
ret = Modernizr['csstransforms3d'];
|
337
|
+
}
|
338
|
+
return ret;
|
339
|
+
};
|
340
|
+
|
341
|
+
|
342
|
+
tests['csstransitions'] = function() {
|
343
|
+
return testPropsAll('transition');
|
344
|
+
};
|
345
|
+
|
346
|
+
|
347
|
+
|
348
|
+
tests['fontface'] = function() {
|
349
|
+
return Modernizr['fontface'];
|
350
|
+
};
|
351
|
+
|
352
|
+
tests['generatedcontent'] = function() {
|
353
|
+
return Modernizr['generatedcontent'];
|
354
|
+
};
|
355
|
+
tests['video'] = function() {
|
356
|
+
var elem = document.createElement('video'),
|
357
|
+
bool = false;
|
358
|
+
|
359
|
+
try {
|
360
|
+
if ( bool = !!elem.canPlayType ) {
|
361
|
+
bool = new Boolean(bool);
|
362
|
+
bool.ogg = elem.canPlayType('video/ogg; codecs="theora"') .replace(/^no$/,'');
|
363
|
+
|
364
|
+
bool.h264 = elem.canPlayType('video/mp4; codecs="avc1.42E01E"') .replace(/^no$/,'');
|
365
|
+
|
366
|
+
bool.webm = elem.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,'');
|
367
|
+
}
|
368
|
+
|
369
|
+
} catch(e) { }
|
370
|
+
|
371
|
+
return bool;
|
372
|
+
};
|
373
|
+
|
374
|
+
tests['audio'] = function() {
|
375
|
+
var elem = document.createElement('audio'),
|
376
|
+
bool = false;
|
377
|
+
|
378
|
+
try {
|
379
|
+
if ( bool = !!elem.canPlayType ) {
|
380
|
+
bool = new Boolean(bool);
|
381
|
+
bool.ogg = elem.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,'');
|
382
|
+
bool.mp3 = elem.canPlayType('audio/mpeg;') .replace(/^no$/,'');
|
383
|
+
|
384
|
+
bool.wav = elem.canPlayType('audio/wav; codecs="1"') .replace(/^no$/,'');
|
385
|
+
bool.m4a = ( elem.canPlayType('audio/x-m4a;') ||
|
386
|
+
elem.canPlayType('audio/aac;')) .replace(/^no$/,'');
|
387
|
+
}
|
388
|
+
} catch(e) { }
|
389
|
+
|
390
|
+
return bool;
|
391
|
+
};
|
392
|
+
tests['webworkers'] = function() {
|
393
|
+
return !!window.Worker;
|
394
|
+
};
|
395
|
+
|
396
|
+
|
397
|
+
tests['applicationcache'] = function() {
|
398
|
+
return !!window.applicationCache;
|
399
|
+
};
|
400
|
+
|
401
|
+
|
402
|
+
for ( var feature in tests ) {
|
403
|
+
if ( hasOwnProperty(tests, feature) ) {
|
404
|
+
featureName = feature.toLowerCase();
|
405
|
+
Modernizr[featureName] = tests[feature]();
|
406
|
+
|
407
|
+
classes.push((Modernizr[featureName] ? '' : 'no-') + featureName);
|
408
|
+
}
|
409
|
+
}
|
410
|
+
|
411
|
+
|
412
|
+
|
413
|
+
Modernizr.addTest = function ( feature, test ) {
|
414
|
+
if ( typeof feature == 'object' ) {
|
415
|
+
for ( var key in feature ) {
|
416
|
+
if ( hasOwnProperty( feature, key ) ) {
|
417
|
+
Modernizr.addTest( key, feature[ key ] );
|
418
|
+
}
|
419
|
+
}
|
420
|
+
} else {
|
421
|
+
|
422
|
+
feature = feature.toLowerCase();
|
423
|
+
|
424
|
+
if ( Modernizr[feature] !== undefined ) {
|
425
|
+
return Modernizr;
|
426
|
+
}
|
427
|
+
|
428
|
+
test = typeof test == 'function' ? test() : test;
|
429
|
+
|
430
|
+
docElement.className += ' ' + (test ? '' : 'no-') + feature;
|
431
|
+
Modernizr[feature] = test;
|
432
|
+
|
433
|
+
}
|
434
|
+
|
435
|
+
return Modernizr;
|
436
|
+
};
|
437
|
+
|
438
|
+
|
439
|
+
setCss('');
|
440
|
+
modElem = inputElem = null;
|
441
|
+
|
442
|
+
;(function(window, document) {
|
443
|
+
|
444
|
+
var options = window.html5 || {};
|
445
|
+
|
446
|
+
var reSkip = /^<|^(?:button|form|map|select|textarea)$/i;
|
447
|
+
|
448
|
+
var supportsHtml5Styles;
|
449
|
+
|
450
|
+
var supportsUnknownElements;
|
451
|
+
|
452
|
+
(function() {
|
453
|
+
var a = document.createElement('a');
|
454
|
+
|
455
|
+
a.innerHTML = '<xyz></xyz>';
|
456
|
+
|
457
|
+
supportsHtml5Styles = ('hidden' in a);
|
458
|
+
supportsUnknownElements = a.childNodes.length == 1 || (function() {
|
459
|
+
try {
|
460
|
+
(document.createElement)('a');
|
461
|
+
} catch(e) {
|
462
|
+
return true;
|
463
|
+
}
|
464
|
+
var frag = document.createDocumentFragment();
|
465
|
+
return (
|
466
|
+
typeof frag.cloneNode == 'undefined' ||
|
467
|
+
typeof frag.createDocumentFragment == 'undefined' ||
|
468
|
+
typeof frag.createElement == 'undefined'
|
469
|
+
);
|
470
|
+
}());
|
471
|
+
|
472
|
+
}()); function addStyleSheet(ownerDocument, cssText) {
|
473
|
+
var p = ownerDocument.createElement('p'),
|
474
|
+
parent = ownerDocument.getElementsByTagName('head')[0] || ownerDocument.documentElement;
|
475
|
+
|
476
|
+
p.innerHTML = 'x<style>' + cssText + '</style>';
|
477
|
+
return parent.insertBefore(p.lastChild, parent.firstChild);
|
478
|
+
}
|
479
|
+
|
480
|
+
function getElements() {
|
481
|
+
var elements = html5.elements;
|
482
|
+
return typeof elements == 'string' ? elements.split(' ') : elements;
|
483
|
+
}
|
484
|
+
|
485
|
+
function shivMethods(ownerDocument) {
|
486
|
+
var cache = {},
|
487
|
+
docCreateElement = ownerDocument.createElement,
|
488
|
+
docCreateFragment = ownerDocument.createDocumentFragment,
|
489
|
+
frag = docCreateFragment();
|
490
|
+
|
491
|
+
|
492
|
+
ownerDocument.createElement = function(nodeName) {
|
493
|
+
var node = (cache[nodeName] || (cache[nodeName] = docCreateElement(nodeName))).cloneNode();
|
494
|
+
return html5.shivMethods && node.canHaveChildren && !reSkip.test(nodeName) ? frag.appendChild(node) : node;
|
495
|
+
};
|
496
|
+
|
497
|
+
ownerDocument.createDocumentFragment = Function('h,f', 'return function(){' +
|
498
|
+
'var n=f.cloneNode(),c=n.createElement;' +
|
499
|
+
'h.shivMethods&&(' +
|
500
|
+
getElements().join().replace(/\w+/g, function(nodeName) {
|
501
|
+
cache[nodeName] = docCreateElement(nodeName);
|
502
|
+
frag.createElement(nodeName);
|
503
|
+
return 'c("' + nodeName + '")';
|
504
|
+
}) +
|
505
|
+
');return n}'
|
506
|
+
)(html5, frag);
|
507
|
+
} function shivDocument(ownerDocument) {
|
508
|
+
var shived;
|
509
|
+
if (ownerDocument.documentShived) {
|
510
|
+
return ownerDocument;
|
511
|
+
}
|
512
|
+
if (html5.shivCSS && !supportsHtml5Styles) {
|
513
|
+
shived = !!addStyleSheet(ownerDocument,
|
514
|
+
'article,aside,details,figcaption,figure,footer,header,hgroup,nav,section{display:block}' +
|
515
|
+
'audio{display:none}' +
|
516
|
+
'canvas,video{display:inline-block;*display:inline;*zoom:1}' +
|
517
|
+
'[hidden]{display:none}audio[controls]{display:inline-block;*display:inline;*zoom:1}' +
|
518
|
+
'mark{background:#FF0;color:#000}'
|
519
|
+
);
|
520
|
+
}
|
521
|
+
if (!supportsUnknownElements) {
|
522
|
+
shived = !shivMethods(ownerDocument);
|
523
|
+
}
|
524
|
+
if (shived) {
|
525
|
+
ownerDocument.documentShived = shived;
|
526
|
+
}
|
527
|
+
return ownerDocument;
|
528
|
+
} var html5 = {
|
529
|
+
|
530
|
+
'elements': options.elements || 'abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video',
|
531
|
+
|
532
|
+
'shivCSS': !(options.shivCSS === false),
|
533
|
+
|
534
|
+
'shivMethods': !(options.shivMethods === false),
|
535
|
+
|
536
|
+
'type': 'default',
|
537
|
+
'shivDocument': shivDocument
|
538
|
+
}; window.html5 = html5;
|
539
|
+
|
540
|
+
shivDocument(document);
|
541
|
+
|
542
|
+
}(this, document));
|
543
|
+
|
544
|
+
Modernizr._version = version;
|
545
|
+
|
546
|
+
Modernizr._prefixes = prefixes;
|
547
|
+
Modernizr._domPrefixes = domPrefixes;
|
548
|
+
Modernizr._cssomPrefixes = cssomPrefixes;
|
549
|
+
|
550
|
+
Modernizr.mq = testMediaQuery;
|
551
|
+
|
552
|
+
|
553
|
+
Modernizr.testProp = function(prop){
|
554
|
+
return testProps([prop]);
|
555
|
+
};
|
556
|
+
|
557
|
+
Modernizr.testAllProps = testPropsAll;
|
558
|
+
|
559
|
+
|
560
|
+
Modernizr.testStyles = injectElementWithStyles; docElement.className = docElement.className.replace(/(^|\s)no-js(\s|$)/, '$1$2') +
|
561
|
+
|
562
|
+
(enableClasses ? ' js ' + classes.join(' ') : '');
|
563
|
+
|
564
|
+
return Modernizr;
|
565
|
+
|
566
|
+
})(this, this.document);
|
567
|
+
/*yepnope1.5.3|WTFPL*/
|
568
|
+
(function(a,b,c){function d(a){return o.call(a)=="[object Function]"}function e(a){return typeof a=="string"}function f(){}function g(a){return!a||a=="loaded"||a=="complete"||a=="uninitialized"}function h(){var a=p.shift();q=1,a?a.t?m(function(){(a.t=="c"?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)){a!="img"&&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={},o=0,r=0,u={t:d,s:c,e:f,a:i,x:j};y[c]===1&&(r=1,y[c]=[],l=b.createElement(a)),a=="object"?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),a!="img"&&(r||y[c]===2?(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(b=="c"?v:u,a,b,this.i++,c,d,f):(p.splice(this.i++,0,a),p.length==1&&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&&o.call(a.opera)=="[object Opera]",l=!!b.attachEvent&&!l,u=r?"object":l?"script":"img",v=l?"script":u,w=Array.isArray||function(a){return o.call(a)=="[object Array]"},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,i){var j=b(a),l=j.autoCallback;j.url.split(".").pop().split("?").shift(),j.bypass||(e&&(e=d(e)?e:e[a]||e[g]||e[a.split("/").pop().split("?")[0]]||h),j.instead?j.instead(a,e,f,g,i):(y[j.url]?j.noexec=!0:y[j.url]=1,f.load(j.url,j.forceCSS||!j.forceJS&&"css"==j.url.split(".").pop().split("?").shift()?"c":c,j.noexec,j.attrs,j.timeout),(d(e)||d(l))&&f.load(function(){k(),e&&e(j.origUrl,i,g),l&&l(j.origUrl,i,g),y[j.url]=2})))}function i(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 j,l,m=this.yepnope.loader;if(e(a))g(a,0,m,0);else if(w(a))for(j=0;j<a.length;j++)l=a[j],e(l)?g(l,0,m,0):w(l)?B(l):Object(l)===l&&i(l,m);else Object(a)===a&&i(a,m)},B.addPrefix=function(a,b){z[a]=b},B.addFilter=function(a){x.push(a)},B.errorTimeout=1e4,b.readyState==null&&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);
|
569
|
+
Modernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,0));};
|
570
|
+
|
571
|
+
// we can probably retire testing all prefixes for this one soon
|
572
|
+
// https://developer.mozilla.org/en/CSS/background-clip
|
573
|
+
|
574
|
+
// http://css-tricks.com/7423-transparent-borders-with-background-clip/
|
575
|
+
|
576
|
+
Modernizr.addTest('backgroundcliptext', function(){
|
577
|
+
|
578
|
+
var div = document.createElement('div');
|
579
|
+
div.style.cssText = Modernizr._prefixes.join('background-clip:text;');
|
580
|
+
return !!div.style.cssText.replace(/\s/g,'').length;
|
581
|
+
|
582
|
+
});
|
583
|
+
|
584
|
+
// this tests passes for webkit's proprietary `-webkit-mask` feature
|
585
|
+
// as well as mozilla's implementation of `mask` for SVG
|
586
|
+
|
587
|
+
// http://www.webkit.org/blog/181/css-masks/
|
588
|
+
// http://developer.apple.com/library/safari/#documentation/InternetWeb/Conceptual/SafariVisualEffectsProgGuide/Masks/Masks.html
|
589
|
+
|
590
|
+
// https://developer.mozilla.org/en/CSS/mask
|
591
|
+
// https://developer.mozilla.org/En/Applying_SVG_effects_to_HTML_content
|
592
|
+
|
593
|
+
// Can combine with clippaths for awesomeness: http://generic.cx/for/webkit/test.html
|
594
|
+
|
595
|
+
Modernizr.addTest('cssmask', Modernizr.testAllProps('mask'));
|
596
|
+
|
597
|
+
// johanbrook.com/browsers/native-momentum-scrolling-ios-5/
|
598
|
+
// introduced in iOS5b2. Possible API may change...
|
599
|
+
|
600
|
+
Modernizr.addTest("overflowscrolling",function(){
|
601
|
+
return Modernizr.testAllProps("overflowScrolling");
|
602
|
+
});
|
603
|
+
|
604
|
+
|
605
|
+
;
|