Skip to content

Commit 9362aa6

Browse files
committed
Convert tab into space
1 parent 3ec9ddf commit 9362aa6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+10794
-5165
lines changed

README.md

-11
This file was deleted.

assets/js/breakpoints.min.js

+141-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,141 @@
1-
/* breakpoints.js v1.0 | @ajlkn | MIT licensed */
2-
var breakpoints=function(){"use strict";function e(e){t.init(e)}var t={list:null,media:{},events:[],init:function(e){t.list=e,window.addEventListener("resize",t.poll),window.addEventListener("orientationchange",t.poll),window.addEventListener("load",t.poll),window.addEventListener("fullscreenchange",t.poll)},active:function(e){var n,a,s,i,r,d,c;if(!(e in t.media)){if(">="==e.substr(0,2)?(a="gte",n=e.substr(2)):"<="==e.substr(0,2)?(a="lte",n=e.substr(2)):">"==e.substr(0,1)?(a="gt",n=e.substr(1)):"<"==e.substr(0,1)?(a="lt",n=e.substr(1)):"!"==e.substr(0,1)?(a="not",n=e.substr(1)):(a="eq",n=e),n&&n in t.list)if(i=t.list[n],Array.isArray(i)){if(r=parseInt(i[0]),d=parseInt(i[1]),isNaN(r)){if(isNaN(d))return;c=i[1].substr(String(d).length)}else c=i[0].substr(String(r).length);if(isNaN(r))switch(a){case"gte":s="screen";break;case"lte":s="screen and (max-width: "+d+c+")";break;case"gt":s="screen and (min-width: "+(d+1)+c+")";break;case"lt":s="screen and (max-width: -1px)";break;case"not":s="screen and (min-width: "+(d+1)+c+")";break;default:s="screen and (max-width: "+d+c+")"}else if(isNaN(d))switch(a){case"gte":s="screen and (min-width: "+r+c+")";break;case"lte":s="screen";break;case"gt":s="screen and (max-width: -1px)";break;case"lt":s="screen and (max-width: "+(r-1)+c+")";break;case"not":s="screen and (max-width: "+(r-1)+c+")";break;default:s="screen and (min-width: "+r+c+")"}else switch(a){case"gte":s="screen and (min-width: "+r+c+")";break;case"lte":s="screen and (max-width: "+d+c+")";break;case"gt":s="screen and (min-width: "+(d+1)+c+")";break;case"lt":s="screen and (max-width: "+(r-1)+c+")";break;case"not":s="screen and (max-width: "+(r-1)+c+"), screen and (min-width: "+(d+1)+c+")";break;default:s="screen and (min-width: "+r+c+") and (max-width: "+d+c+")"}}else s="("==i.charAt(0)?"screen and "+i:i;t.media[e]=!!s&&s}return t.media[e]!==!1&&window.matchMedia(t.media[e]).matches},on:function(e,n){t.events.push({query:e,handler:n,state:!1}),t.active(e)&&n()},poll:function(){var e,n;for(e=0;e<t.events.length;e++)n=t.events[e],t.active(n.query)?n.state||(n.state=!0,n.handler()):n.state&&(n.state=!1)}};return e._=t,e.on=function(e,n){t.on(e,n)},e.active=function(e){return t.active(e)},e}();!function(e,t){"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?module.exports=t():e.breakpoints=t()}(this,function(){return breakpoints});
1+
/* breakpoints.js v1.0 | @ajlkn | MIT licensed */
2+
var breakpoints = (function () {
3+
"use strict";
4+
function e(e) {
5+
t.init(e);
6+
}
7+
var t = {
8+
list: null,
9+
media: {},
10+
events: [],
11+
init: function (e) {
12+
(t.list = e),
13+
window.addEventListener("resize", t.poll),
14+
window.addEventListener("orientationchange", t.poll),
15+
window.addEventListener("load", t.poll),
16+
window.addEventListener("fullscreenchange", t.poll);
17+
},
18+
active: function (e) {
19+
var n, a, s, i, r, d, c;
20+
if (!(e in t.media)) {
21+
if (
22+
(">=" == e.substr(0, 2)
23+
? ((a = "gte"), (n = e.substr(2)))
24+
: "<=" == e.substr(0, 2)
25+
? ((a = "lte"), (n = e.substr(2)))
26+
: ">" == e.substr(0, 1)
27+
? ((a = "gt"), (n = e.substr(1)))
28+
: "<" == e.substr(0, 1)
29+
? ((a = "lt"), (n = e.substr(1)))
30+
: "!" == e.substr(0, 1)
31+
? ((a = "not"), (n = e.substr(1)))
32+
: ((a = "eq"), (n = e)),
33+
n && n in t.list)
34+
)
35+
if (((i = t.list[n]), Array.isArray(i))) {
36+
if (((r = parseInt(i[0])), (d = parseInt(i[1])), isNaN(r))) {
37+
if (isNaN(d)) return;
38+
c = i[1].substr(String(d).length);
39+
} else c = i[0].substr(String(r).length);
40+
if (isNaN(r))
41+
switch (a) {
42+
case "gte":
43+
s = "screen";
44+
break;
45+
case "lte":
46+
s = "screen and (max-width: " + d + c + ")";
47+
break;
48+
case "gt":
49+
s = "screen and (min-width: " + (d + 1) + c + ")";
50+
break;
51+
case "lt":
52+
s = "screen and (max-width: -1px)";
53+
break;
54+
case "not":
55+
s = "screen and (min-width: " + (d + 1) + c + ")";
56+
break;
57+
default:
58+
s = "screen and (max-width: " + d + c + ")";
59+
}
60+
else if (isNaN(d))
61+
switch (a) {
62+
case "gte":
63+
s = "screen and (min-width: " + r + c + ")";
64+
break;
65+
case "lte":
66+
s = "screen";
67+
break;
68+
case "gt":
69+
s = "screen and (max-width: -1px)";
70+
break;
71+
case "lt":
72+
s = "screen and (max-width: " + (r - 1) + c + ")";
73+
break;
74+
case "not":
75+
s = "screen and (max-width: " + (r - 1) + c + ")";
76+
break;
77+
default:
78+
s = "screen and (min-width: " + r + c + ")";
79+
}
80+
else
81+
switch (a) {
82+
case "gte":
83+
s = "screen and (min-width: " + r + c + ")";
84+
break;
85+
case "lte":
86+
s = "screen and (max-width: " + d + c + ")";
87+
break;
88+
case "gt":
89+
s = "screen and (min-width: " + (d + 1) + c + ")";
90+
break;
91+
case "lt":
92+
s = "screen and (max-width: " + (r - 1) + c + ")";
93+
break;
94+
case "not":
95+
s =
96+
"screen and (max-width: " +
97+
(r - 1) +
98+
c +
99+
"), screen and (min-width: " +
100+
(d + 1) +
101+
c +
102+
")";
103+
break;
104+
default:
105+
s = "screen and (min-width: " + r + c + ") and (max-width: " + d + c + ")";
106+
}
107+
} else s = "(" == i.charAt(0) ? "screen and " + i : i;
108+
t.media[e] = !!s && s;
109+
}
110+
return t.media[e] !== !1 && window.matchMedia(t.media[e]).matches;
111+
},
112+
on: function (e, n) {
113+
t.events.push({ query: e, handler: n, state: !1 }), t.active(e) && n();
114+
},
115+
poll: function () {
116+
var e, n;
117+
for (e = 0; e < t.events.length; e++)
118+
(n = t.events[e]),
119+
t.active(n.query) ? n.state || ((n.state = !0), n.handler()) : n.state && (n.state = !1);
120+
},
121+
};
122+
return (
123+
(e._ = t),
124+
(e.on = function (e, n) {
125+
t.on(e, n);
126+
}),
127+
(e.active = function (e) {
128+
return t.active(e);
129+
}),
130+
e
131+
);
132+
})();
133+
!(function (e, t) {
134+
"function" == typeof define && define.amd
135+
? define([], t)
136+
: "object" == typeof exports
137+
? (module.exports = t())
138+
: (e.breakpoints = t());
139+
})(this, function () {
140+
return breakpoints;
141+
});

assets/js/browser.min.js

+109-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,109 @@
1-
/* browser.js v1.0.1 | @ajlkn | MIT licensed */
2-
var browser=function(){"use strict";var t={name:null,version:null,os:null,osVersion:null,touch:null,mobile:null,_canUse:null,canUse:function(e){t._canUse||(t._canUse=document.createElement("div"));var n=t._canUse.style,r=e.charAt(0).toUpperCase()+e.slice(1);return e in n||"Moz"+r in n||"Webkit"+r in n||"O"+r in n||"ms"+r in n},init:function(){for(var e=navigator.userAgent,n="other",r=0,i=[["firefox",/Firefox\/([0-9\.]+)/],["bb",/BlackBerry.+Version\/([0-9\.]+)/],["bb",/BB[0-9]+.+Version\/([0-9\.]+)/],["opera",/OPR\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)/],["edge",/Edge\/([0-9\.]+)/],["safari",/Version\/([0-9\.]+).+Safari/],["chrome",/Chrome\/([0-9\.]+)/],["ie",/MSIE ([0-9]+)/],["ie",/Trident\/.+rv:([0-9]+)/]],o=0;o<i.length;o++)if(e.match(i[o][1])){n=i[o][0],r=parseFloat(RegExp.$1);break}for(t.name=n,t.version=r,n="other",i=[["ios",/([0-9_]+) like Mac OS X/,function(e){return e.replace("_",".").replace("_","")}],["ios",/CPU like Mac OS X/,function(e){return 0}],["wp",/Windows Phone ([0-9\.]+)/,null],["android",/Android ([0-9\.]+)/,null],["mac",/Macintosh.+Mac OS X ([0-9_]+)/,function(e){return e.replace("_",".").replace("_","")}],["windows",/Windows NT ([0-9\.]+)/,null],["bb",/BlackBerry.+Version\/([0-9\.]+)/,null],["bb",/BB[0-9]+.+Version\/([0-9\.]+)/,null],["linux",/Linux/,null],["bsd",/BSD/,null],["unix",/X11/,null]],o=r=0;o<i.length;o++)if(e.match(i[o][1])){n=i[o][0],r=parseFloat(i[o][2]?i[o][2](RegExp.$1):RegExp.$1);break}"mac"==n&&"ontouchstart"in window&&(1024==screen.width&&1366==screen.height||834==screen.width&&1112==screen.height||810==screen.width&&1080==screen.height||768==screen.width&&1024==screen.height)&&(n="ios"),t.os=n,t.osVersion=r,t.touch="wp"==t.os?0<navigator.msMaxTouchPoints:!!("ontouchstart"in window),t.mobile="wp"==t.os||"android"==t.os||"ios"==t.os||"bb"==t.os}};return t.init(),t}();!function(e,n){"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?module.exports=n():e.browser=n()}(this,function(){return browser});
1+
/* browser.js v1.0.1 | @ajlkn | MIT licensed */
2+
var browser = (function () {
3+
"use strict";
4+
var t = {
5+
name: null,
6+
version: null,
7+
os: null,
8+
osVersion: null,
9+
touch: null,
10+
mobile: null,
11+
_canUse: null,
12+
canUse: function (e) {
13+
t._canUse || (t._canUse = document.createElement("div"));
14+
var n = t._canUse.style,
15+
r = e.charAt(0).toUpperCase() + e.slice(1);
16+
return e in n || "Moz" + r in n || "Webkit" + r in n || "O" + r in n || "ms" + r in n;
17+
},
18+
init: function () {
19+
for (
20+
var e = navigator.userAgent,
21+
n = "other",
22+
r = 0,
23+
i = [
24+
["firefox", /Firefox\/([0-9\.]+)/],
25+
["bb", /BlackBerry.+Version\/([0-9\.]+)/],
26+
["bb", /BB[0-9]+.+Version\/([0-9\.]+)/],
27+
["opera", /OPR\/([0-9\.]+)/],
28+
["opera", /Opera\/([0-9\.]+)/],
29+
["edge", /Edge\/([0-9\.]+)/],
30+
["safari", /Version\/([0-9\.]+).+Safari/],
31+
["chrome", /Chrome\/([0-9\.]+)/],
32+
["ie", /MSIE ([0-9]+)/],
33+
["ie", /Trident\/.+rv:([0-9]+)/],
34+
],
35+
o = 0;
36+
o < i.length;
37+
o++
38+
)
39+
if (e.match(i[o][1])) {
40+
(n = i[o][0]), (r = parseFloat(RegExp.$1));
41+
break;
42+
}
43+
for (
44+
t.name = n,
45+
t.version = r,
46+
n = "other",
47+
i = [
48+
[
49+
"ios",
50+
/([0-9_]+) like Mac OS X/,
51+
function (e) {
52+
return e.replace("_", ".").replace("_", "");
53+
},
54+
],
55+
[
56+
"ios",
57+
/CPU like Mac OS X/,
58+
function (e) {
59+
return 0;
60+
},
61+
],
62+
["wp", /Windows Phone ([0-9\.]+)/, null],
63+
["android", /Android ([0-9\.]+)/, null],
64+
[
65+
"mac",
66+
/Macintosh.+Mac OS X ([0-9_]+)/,
67+
function (e) {
68+
return e.replace("_", ".").replace("_", "");
69+
},
70+
],
71+
["windows", /Windows NT ([0-9\.]+)/, null],
72+
["bb", /BlackBerry.+Version\/([0-9\.]+)/, null],
73+
["bb", /BB[0-9]+.+Version\/([0-9\.]+)/, null],
74+
["linux", /Linux/, null],
75+
["bsd", /BSD/, null],
76+
["unix", /X11/, null],
77+
],
78+
o = r = 0;
79+
o < i.length;
80+
o++
81+
)
82+
if (e.match(i[o][1])) {
83+
(n = i[o][0]), (r = parseFloat(i[o][2] ? i[o][2](RegExp.$1) : RegExp.$1));
84+
break;
85+
}
86+
"mac" == n &&
87+
"ontouchstart" in window &&
88+
((1024 == screen.width && 1366 == screen.height) ||
89+
(834 == screen.width && 1112 == screen.height) ||
90+
(810 == screen.width && 1080 == screen.height) ||
91+
(768 == screen.width && 1024 == screen.height)) &&
92+
(n = "ios"),
93+
(t.os = n),
94+
(t.osVersion = r),
95+
(t.touch = "wp" == t.os ? 0 < navigator.msMaxTouchPoints : !!("ontouchstart" in window)),
96+
(t.mobile = "wp" == t.os || "android" == t.os || "ios" == t.os || "bb" == t.os);
97+
},
98+
};
99+
return t.init(), t;
100+
})();
101+
!(function (e, n) {
102+
"function" == typeof define && define.amd
103+
? define([], n)
104+
: "object" == typeof exports
105+
? (module.exports = n())
106+
: (e.browser = n());
107+
})(this, function () {
108+
return browser;
109+
});

assets/js/jquery.min.js

+5,033-1
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)