interval-braining-ui-asset-pack 1.2.0 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0cd8467fc2fc83f9a8098e4360630f6f5947c264
|
4
|
+
data.tar.gz: 30743ee57a212f2b1987a9123cc0da86e28144ea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8d2f73dfe5b104ff2cef9cf55aa66340befffcd077cbdd5ccb69f31d0a0f988cd5c698171f9f51ea18d6ef68b085c71048cbc220e116e92a769b2f214ee60900
|
7
|
+
data.tar.gz: 72fb6bf2a06467c2079848f79fdf66a78c5ad2f0456b5bdf10aba957032e1356e25cddb05b20a8c59f1fe2c61192e7bbb86555a723372acc217f8f282d5c4abf
|
data/lib/asset_pack/version.rb
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
//= require modernizr/modernizr
|
@@ -0,0 +1,392 @@
|
|
1
|
+
/* Modernizr (Custom Build) | MIT & BSD
|
2
|
+
* Build: http://modernizr.com/download/#-applicationcache-indexeddb-localstorage-sessionstorage-websqldatabase-shiv-load-cssclasses
|
3
|
+
*/
|
4
|
+
;
|
5
|
+
|
6
|
+
|
7
|
+
|
8
|
+
window.Modernizr = (function( window, document, undefined ) {
|
9
|
+
|
10
|
+
var version = '2.8.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
|
+
|
25
|
+
toString = {}.toString, tests = {},
|
26
|
+
inputs = {},
|
27
|
+
attrs = {},
|
28
|
+
|
29
|
+
classes = [],
|
30
|
+
|
31
|
+
slice = classes.slice,
|
32
|
+
|
33
|
+
featureName,
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
_hasOwnProperty = ({}).hasOwnProperty, hasOwnProp;
|
38
|
+
|
39
|
+
if ( !is(_hasOwnProperty, 'undefined') && !is(_hasOwnProperty.call, 'undefined') ) {
|
40
|
+
hasOwnProp = function (object, property) {
|
41
|
+
return _hasOwnProperty.call(object, property);
|
42
|
+
};
|
43
|
+
}
|
44
|
+
else {
|
45
|
+
hasOwnProp = function (object, property) {
|
46
|
+
return ((property in object) && is(object.constructor.prototype[property], 'undefined'));
|
47
|
+
};
|
48
|
+
}
|
49
|
+
|
50
|
+
|
51
|
+
if (!Function.prototype.bind) {
|
52
|
+
Function.prototype.bind = function bind(that) {
|
53
|
+
|
54
|
+
var target = this;
|
55
|
+
|
56
|
+
if (typeof target != "function") {
|
57
|
+
throw new TypeError();
|
58
|
+
}
|
59
|
+
|
60
|
+
var args = slice.call(arguments, 1),
|
61
|
+
bound = function () {
|
62
|
+
|
63
|
+
if (this instanceof bound) {
|
64
|
+
|
65
|
+
var F = function(){};
|
66
|
+
F.prototype = target.prototype;
|
67
|
+
var self = new F();
|
68
|
+
|
69
|
+
var result = target.apply(
|
70
|
+
self,
|
71
|
+
args.concat(slice.call(arguments))
|
72
|
+
);
|
73
|
+
if (Object(result) === result) {
|
74
|
+
return result;
|
75
|
+
}
|
76
|
+
return self;
|
77
|
+
|
78
|
+
} else {
|
79
|
+
|
80
|
+
return target.apply(
|
81
|
+
that,
|
82
|
+
args.concat(slice.call(arguments))
|
83
|
+
);
|
84
|
+
|
85
|
+
}
|
86
|
+
|
87
|
+
};
|
88
|
+
|
89
|
+
return bound;
|
90
|
+
};
|
91
|
+
}
|
92
|
+
|
93
|
+
function setCss( str ) {
|
94
|
+
mStyle.cssText = str;
|
95
|
+
}
|
96
|
+
|
97
|
+
function setCssAll( str1, str2 ) {
|
98
|
+
return setCss(prefixes.join(str1 + ';') + ( str2 || '' ));
|
99
|
+
}
|
100
|
+
|
101
|
+
function is( obj, type ) {
|
102
|
+
return typeof obj === type;
|
103
|
+
}
|
104
|
+
|
105
|
+
function contains( str, substr ) {
|
106
|
+
return !!~('' + str).indexOf(substr);
|
107
|
+
}
|
108
|
+
|
109
|
+
|
110
|
+
function testDOMProps( props, obj, elem ) {
|
111
|
+
for ( var i in props ) {
|
112
|
+
var item = obj[props[i]];
|
113
|
+
if ( item !== undefined) {
|
114
|
+
|
115
|
+
if (elem === false) return props[i];
|
116
|
+
|
117
|
+
if (is(item, 'function')){
|
118
|
+
return item.bind(elem || obj);
|
119
|
+
}
|
120
|
+
|
121
|
+
return item;
|
122
|
+
}
|
123
|
+
}
|
124
|
+
return false;
|
125
|
+
}
|
126
|
+
|
127
|
+
|
128
|
+
tests['websqldatabase'] = function() {
|
129
|
+
return !!window.openDatabase;
|
130
|
+
};
|
131
|
+
|
132
|
+
tests['indexedDB'] = function() {
|
133
|
+
return !!testPropsAll("indexedDB", window);
|
134
|
+
};
|
135
|
+
tests['localstorage'] = function() {
|
136
|
+
try {
|
137
|
+
localStorage.setItem(mod, mod);
|
138
|
+
localStorage.removeItem(mod);
|
139
|
+
return true;
|
140
|
+
} catch(e) {
|
141
|
+
return false;
|
142
|
+
}
|
143
|
+
};
|
144
|
+
|
145
|
+
tests['sessionstorage'] = function() {
|
146
|
+
try {
|
147
|
+
sessionStorage.setItem(mod, mod);
|
148
|
+
sessionStorage.removeItem(mod);
|
149
|
+
return true;
|
150
|
+
} catch(e) {
|
151
|
+
return false;
|
152
|
+
}
|
153
|
+
}; tests['applicationcache'] = function() {
|
154
|
+
return !!window.applicationCache;
|
155
|
+
};
|
156
|
+
|
157
|
+
|
158
|
+
for ( var feature in tests ) {
|
159
|
+
if ( hasOwnProp(tests, feature) ) {
|
160
|
+
featureName = feature.toLowerCase();
|
161
|
+
Modernizr[featureName] = tests[feature]();
|
162
|
+
|
163
|
+
classes.push((Modernizr[featureName] ? '' : 'no-') + featureName);
|
164
|
+
}
|
165
|
+
}
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
Modernizr.addTest = function ( feature, test ) {
|
170
|
+
if ( typeof feature == 'object' ) {
|
171
|
+
for ( var key in feature ) {
|
172
|
+
if ( hasOwnProp( feature, key ) ) {
|
173
|
+
Modernizr.addTest( key, feature[ key ] );
|
174
|
+
}
|
175
|
+
}
|
176
|
+
} else {
|
177
|
+
|
178
|
+
feature = feature.toLowerCase();
|
179
|
+
|
180
|
+
if ( Modernizr[feature] !== undefined ) {
|
181
|
+
return Modernizr;
|
182
|
+
}
|
183
|
+
|
184
|
+
test = typeof test == 'function' ? test() : test;
|
185
|
+
|
186
|
+
if (typeof enableClasses !== "undefined" && enableClasses) {
|
187
|
+
docElement.className += ' ' + (test ? '' : 'no-') + feature;
|
188
|
+
}
|
189
|
+
Modernizr[feature] = test;
|
190
|
+
|
191
|
+
}
|
192
|
+
|
193
|
+
return Modernizr;
|
194
|
+
};
|
195
|
+
|
196
|
+
|
197
|
+
setCss('');
|
198
|
+
modElem = inputElem = null;
|
199
|
+
|
200
|
+
;(function(window, document) {
|
201
|
+
var version = '3.7.0';
|
202
|
+
|
203
|
+
var options = window.html5 || {};
|
204
|
+
|
205
|
+
var reSkip = /^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i;
|
206
|
+
|
207
|
+
var saveClones = /^(?: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;
|
208
|
+
|
209
|
+
var supportsHtml5Styles;
|
210
|
+
|
211
|
+
var expando = '_html5shiv';
|
212
|
+
|
213
|
+
var expanID = 0;
|
214
|
+
|
215
|
+
var expandoData = {};
|
216
|
+
|
217
|
+
var supportsUnknownElements;
|
218
|
+
|
219
|
+
(function() {
|
220
|
+
try {
|
221
|
+
var a = document.createElement('a');
|
222
|
+
a.innerHTML = '<xyz></xyz>';
|
223
|
+
supportsHtml5Styles = ('hidden' in a);
|
224
|
+
|
225
|
+
supportsUnknownElements = a.childNodes.length == 1 || (function() {
|
226
|
+
(document.createElement)('a');
|
227
|
+
var frag = document.createDocumentFragment();
|
228
|
+
return (
|
229
|
+
typeof frag.cloneNode == 'undefined' ||
|
230
|
+
typeof frag.createDocumentFragment == 'undefined' ||
|
231
|
+
typeof frag.createElement == 'undefined'
|
232
|
+
);
|
233
|
+
}());
|
234
|
+
} catch(e) {
|
235
|
+
supportsHtml5Styles = true;
|
236
|
+
supportsUnknownElements = true;
|
237
|
+
}
|
238
|
+
|
239
|
+
}());
|
240
|
+
|
241
|
+
function addStyleSheet(ownerDocument, cssText) {
|
242
|
+
var p = ownerDocument.createElement('p'),
|
243
|
+
parent = ownerDocument.getElementsByTagName('head')[0] || ownerDocument.documentElement;
|
244
|
+
|
245
|
+
p.innerHTML = 'x<style>' + cssText + '</style>';
|
246
|
+
return parent.insertBefore(p.lastChild, parent.firstChild);
|
247
|
+
}
|
248
|
+
|
249
|
+
function getElements() {
|
250
|
+
var elements = html5.elements;
|
251
|
+
return typeof elements == 'string' ? elements.split(' ') : elements;
|
252
|
+
}
|
253
|
+
|
254
|
+
function getExpandoData(ownerDocument) {
|
255
|
+
var data = expandoData[ownerDocument[expando]];
|
256
|
+
if (!data) {
|
257
|
+
data = {};
|
258
|
+
expanID++;
|
259
|
+
ownerDocument[expando] = expanID;
|
260
|
+
expandoData[expanID] = data;
|
261
|
+
}
|
262
|
+
return data;
|
263
|
+
}
|
264
|
+
|
265
|
+
function createElement(nodeName, ownerDocument, data){
|
266
|
+
if (!ownerDocument) {
|
267
|
+
ownerDocument = document;
|
268
|
+
}
|
269
|
+
if(supportsUnknownElements){
|
270
|
+
return ownerDocument.createElement(nodeName);
|
271
|
+
}
|
272
|
+
if (!data) {
|
273
|
+
data = getExpandoData(ownerDocument);
|
274
|
+
}
|
275
|
+
var node;
|
276
|
+
|
277
|
+
if (data.cache[nodeName]) {
|
278
|
+
node = data.cache[nodeName].cloneNode();
|
279
|
+
} else if (saveClones.test(nodeName)) {
|
280
|
+
node = (data.cache[nodeName] = data.createElem(nodeName)).cloneNode();
|
281
|
+
} else {
|
282
|
+
node = data.createElem(nodeName);
|
283
|
+
}
|
284
|
+
|
285
|
+
return node.canHaveChildren && !reSkip.test(nodeName) && !node.tagUrn ? data.frag.appendChild(node) : node;
|
286
|
+
}
|
287
|
+
|
288
|
+
function createDocumentFragment(ownerDocument, data){
|
289
|
+
if (!ownerDocument) {
|
290
|
+
ownerDocument = document;
|
291
|
+
}
|
292
|
+
if(supportsUnknownElements){
|
293
|
+
return ownerDocument.createDocumentFragment();
|
294
|
+
}
|
295
|
+
data = data || getExpandoData(ownerDocument);
|
296
|
+
var clone = data.frag.cloneNode(),
|
297
|
+
i = 0,
|
298
|
+
elems = getElements(),
|
299
|
+
l = elems.length;
|
300
|
+
for(;i<l;i++){
|
301
|
+
clone.createElement(elems[i]);
|
302
|
+
}
|
303
|
+
return clone;
|
304
|
+
}
|
305
|
+
|
306
|
+
function shivMethods(ownerDocument, data) {
|
307
|
+
if (!data.cache) {
|
308
|
+
data.cache = {};
|
309
|
+
data.createElem = ownerDocument.createElement;
|
310
|
+
data.createFrag = ownerDocument.createDocumentFragment;
|
311
|
+
data.frag = data.createFrag();
|
312
|
+
}
|
313
|
+
|
314
|
+
|
315
|
+
ownerDocument.createElement = function(nodeName) {
|
316
|
+
if (!html5.shivMethods) {
|
317
|
+
return data.createElem(nodeName);
|
318
|
+
}
|
319
|
+
return createElement(nodeName, ownerDocument, data);
|
320
|
+
};
|
321
|
+
|
322
|
+
ownerDocument.createDocumentFragment = Function('h,f', 'return function(){' +
|
323
|
+
'var n=f.cloneNode(),c=n.createElement;' +
|
324
|
+
'h.shivMethods&&(' +
|
325
|
+
getElements().join().replace(/[\w\-]+/g, function(nodeName) {
|
326
|
+
data.createElem(nodeName);
|
327
|
+
data.frag.createElement(nodeName);
|
328
|
+
return 'c("' + nodeName + '")';
|
329
|
+
}) +
|
330
|
+
');return n}'
|
331
|
+
)(html5, data.frag);
|
332
|
+
}
|
333
|
+
|
334
|
+
function shivDocument(ownerDocument) {
|
335
|
+
if (!ownerDocument) {
|
336
|
+
ownerDocument = document;
|
337
|
+
}
|
338
|
+
var data = getExpandoData(ownerDocument);
|
339
|
+
|
340
|
+
if (html5.shivCSS && !supportsHtml5Styles && !data.hasCSS) {
|
341
|
+
data.hasCSS = !!addStyleSheet(ownerDocument,
|
342
|
+
'article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}' +
|
343
|
+
'mark{background:#FF0;color:#000}' +
|
344
|
+
'template{display:none}'
|
345
|
+
);
|
346
|
+
}
|
347
|
+
if (!supportsUnknownElements) {
|
348
|
+
shivMethods(ownerDocument, data);
|
349
|
+
}
|
350
|
+
return ownerDocument;
|
351
|
+
}
|
352
|
+
|
353
|
+
var html5 = {
|
354
|
+
|
355
|
+
'elements': options.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',
|
356
|
+
|
357
|
+
'version': version,
|
358
|
+
|
359
|
+
'shivCSS': (options.shivCSS !== false),
|
360
|
+
|
361
|
+
'supportsUnknownElements': supportsUnknownElements,
|
362
|
+
|
363
|
+
'shivMethods': (options.shivMethods !== false),
|
364
|
+
|
365
|
+
'type': 'default',
|
366
|
+
|
367
|
+
'shivDocument': shivDocument,
|
368
|
+
|
369
|
+
createElement: createElement,
|
370
|
+
|
371
|
+
createDocumentFragment: createDocumentFragment
|
372
|
+
};
|
373
|
+
|
374
|
+
window.html5 = html5;
|
375
|
+
|
376
|
+
shivDocument(document);
|
377
|
+
|
378
|
+
}(this, document));
|
379
|
+
|
380
|
+
Modernizr._version = version;
|
381
|
+
|
382
|
+
docElement.className = docElement.className.replace(/(^|\s)no-js(\s|$)/, '$1$2') +
|
383
|
+
|
384
|
+
(enableClasses ? ' js ' + classes.join(' ') : '');
|
385
|
+
|
386
|
+
return Modernizr;
|
387
|
+
|
388
|
+
})(this, this.document);
|
389
|
+
|
390
|
+
(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);
|
391
|
+
Modernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,0));};
|
392
|
+
;
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: interval-braining-ui-asset-pack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tristan Crockett
|
@@ -71,6 +71,7 @@ files:
|
|
71
71
|
- lib/assets/javascripts/asset_pack/localforage.js
|
72
72
|
- lib/assets/javascripts/asset_pack/lodash.js
|
73
73
|
- lib/assets/javascripts/asset_pack/lodash.underscore.js
|
74
|
+
- lib/assets/javascripts/asset_pack/modernizr.js
|
74
75
|
- lib/assets/stylesheets/asset_pack/OpenSans-Light.css
|
75
76
|
- lib/assets/stylesheets/asset_pack/animate.css
|
76
77
|
- lib/assets/stylesheets/asset_pack/bootstrap.css
|
@@ -113,6 +114,7 @@ files:
|
|
113
114
|
- vendor/assets/bower_components/webfont-OpenSans-Light/dist/fonts/OpenSans-Light.svg
|
114
115
|
- vendor/assets/bower_components/webfont-OpenSans-Light/dist/fonts/OpenSans-Light.ttf
|
115
116
|
- vendor/assets/bower_components/webfont-OpenSans-Light/dist/fonts/OpenSans-Light.woff
|
117
|
+
- vendor/assets/javascripts/modernizr/modernizr.js
|
116
118
|
homepage: https://github.com/interval-braining/asset-pack
|
117
119
|
licenses:
|
118
120
|
- MIT
|