mirror of
https://github.com/Noratrieb/mx-3.git
synced 2026-01-14 15:25:09 +01:00
ein commit
This commit is contained in:
parent
223f11750d
commit
d578445e33
20 changed files with 19328 additions and 57 deletions
10
.idea/inspectionProfiles/Project_Default.xml
generated
10
.idea/inspectionProfiles/Project_Default.xml
generated
|
|
@ -2,5 +2,15 @@
|
|||
<profile version="1.0">
|
||||
<option name="myName" value="Project Default" />
|
||||
<inspection_tool class="Eslint" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
<inspection_tool class="HtmlUnknownAttribute" enabled="true" level="WARNING" enabled_by_default="true">
|
||||
<option name="myValues">
|
||||
<value>
|
||||
<list size="1">
|
||||
<item index="0" class="java.lang.String" itemvalue="alt" />
|
||||
</list>
|
||||
</value>
|
||||
</option>
|
||||
<option name="myCustomValuesEnabled" value="true" />
|
||||
</inspection_tool>
|
||||
</profile>
|
||||
</component>
|
||||
|
|
@ -25,7 +25,8 @@
|
|||
"build": "react-scripts build",
|
||||
"test": "react-scripts test",
|
||||
"eject": "react-scripts eject",
|
||||
":(": "yarn start"
|
||||
":(": "yarn start",
|
||||
"ichwillnicht": "yarn start"
|
||||
},
|
||||
"eslintConfig": {
|
||||
"extends": [
|
||||
|
|
|
|||
2841
public/bbw/index.html
Normal file
2841
public/bbw/index.html
Normal file
File diff suppressed because it is too large
Load diff
Binary file not shown.
|
After Width: | Height: | Size: 170 KiB |
4107
public/bbw/index_files/21e11ab0-collection.css
Normal file
4107
public/bbw/index_files/21e11ab0-collection.css
Normal file
File diff suppressed because one or more lines are too long
Binary file not shown.
|
After Width: | Height: | Size: 81 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 23 KiB |
BIN
public/bbw/index_files/EduQua_Logo.svg-93a2dd96.png
Normal file
BIN
public/bbw/index_files/EduQua_Logo.svg-93a2dd96.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.8 KiB |
BIN
public/bbw/index_files/JAS-ANZ-ISO-9001-Joint-Logo-43f461ed.png
Normal file
BIN
public/bbw/index_files/JAS-ANZ-ISO-9001-Joint-Logo-43f461ed.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.6 KiB |
2746
public/bbw/index_files/analytics.js
Normal file
2746
public/bbw/index_files/analytics.js
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,57 @@
|
|||
@import url(/t/1.css?apiType=css&projectid=c7436aaa-840b-4ce7-b6a5-dad0deed0722);
|
||||
@font-face {
|
||||
font-family: "HelveticaNeueW01-45Ligh";
|
||||
src: url("/dv2/2/ae1656aa-5f8f-4905-aed0-93e667bd6e4a.eot?d44f19a684109620e4841579a090e818734316868668c34a487c6eafd18b1b6e7fe879134b1aa81a1a059daa018d517c7120bc3295bade478f53472962008ac43002bc29cee8a1fc68a83f9a6d6a4dc716d868449ab0b3e261db8a0d874dc92b203acb8ff7956c913c837f&projectId=c7436aaa-840b-4ce7-b6a5-dad0deed0722#iefix");
|
||||
src: url("/dv2/2/ae1656aa-5f8f-4905-aed0-93e667bd6e4a.eot?d44f19a684109620e4841579a090e818734316868668c34a487c6eafd18b1b6e7fe879134b1aa81a1a059daa018d517c7120bc3295bade478f53472962008ac43002bc29cee8a1fc68a83f9a6d6a4dc716d868449ab0b3e261db8a0d874dc92b203acb8ff7956c913c837f&projectId=c7436aaa-840b-4ce7-b6a5-dad0deed0722#iefix")
|
||||
format("eot"),
|
||||
url("/dv2/14/5a13f7d1-b615-418e-bc3a-525001b9a671.woff2?d44f19a684109620e4841579a090e818734316868668c34a487c6eafd18b1b6e7fe879134b1aa81a1a059daa018d517c7120bc3295bade478f53472962008ac43002bc29cee8a1fc68a83f9a6d6a4dc716d868449ab0b3e261db8a0d874dc92b203acb8ff7956c913c837f&projectId=c7436aaa-840b-4ce7-b6a5-dad0deed0722")
|
||||
format("woff2"),
|
||||
url("/dv2/3/530dee22-e3c1-4e9f-bf62-c31d510d9656.woff?d44f19a684109620e4841579a090e818734316868668c34a487c6eafd18b1b6e7fe879134b1aa81a1a059daa018d517c7120bc3295bade478f53472962008ac43002bc29cee8a1fc68a83f9a6d6a4dc716d868449ab0b3e261db8a0d874dc92b203acb8ff7956c913c837f&projectId=c7436aaa-840b-4ce7-b6a5-dad0deed0722")
|
||||
format("woff"),
|
||||
url("/dv2/1/688ab72b-4deb-4e15-a088-89166978d469.ttf?d44f19a684109620e4841579a090e818734316868668c34a487c6eafd18b1b6e7fe879134b1aa81a1a059daa018d517c7120bc3295bade478f53472962008ac43002bc29cee8a1fc68a83f9a6d6a4dc716d868449ab0b3e261db8a0d874dc92b203acb8ff7956c913c837f&projectId=c7436aaa-840b-4ce7-b6a5-dad0deed0722")
|
||||
format("truetype"),
|
||||
url("/dv2/11/7816f72f-f47e-4715-8cd7-960e3723846a.svg?d44f19a684109620e4841579a090e818734316868668c34a487c6eafd18b1b6e7fe879134b1aa81a1a059daa018d517c7120bc3295bade478f53472962008ac43002bc29cee8a1fc68a83f9a6d6a4dc716d868449ab0b3e261db8a0d874dc92b203acb8ff7956c913c837f&projectId=c7436aaa-840b-4ce7-b6a5-dad0deed0722#7816f72f-f47e-4715-8cd7-960e3723846a")
|
||||
format("svg");
|
||||
}
|
||||
@font-face {
|
||||
font-family: "HelveticaNeueW01-46Ligh";
|
||||
src: url("/dv2/2/a4f9f319-dec9-4afc-8b50-e18cc1b61cb4.eot?d44f19a684109620e4841579a090e818734316868668c34a487c6eafd18b1b6e7fe879134b1aa81a1a059daa018d517c7120bc3295bade478f53472962008ac43002bc29cee8a1fc68a83f9a6d6a4dc716d868449ab0b3e261db8a0d874dc92b203acb8ff7956c913c837f&projectId=c7436aaa-840b-4ce7-b6a5-dad0deed0722#iefix");
|
||||
src: url("/dv2/2/a4f9f319-dec9-4afc-8b50-e18cc1b61cb4.eot?d44f19a684109620e4841579a090e818734316868668c34a487c6eafd18b1b6e7fe879134b1aa81a1a059daa018d517c7120bc3295bade478f53472962008ac43002bc29cee8a1fc68a83f9a6d6a4dc716d868449ab0b3e261db8a0d874dc92b203acb8ff7956c913c837f&projectId=c7436aaa-840b-4ce7-b6a5-dad0deed0722#iefix")
|
||||
format("eot"),
|
||||
url("/dv2/14/09f28057-e848-49b3-94bf-bfaefff51b64.woff2?d44f19a684109620e4841579a090e818734316868668c34a487c6eafd18b1b6e7fe879134b1aa81a1a059daa018d517c7120bc3295bade478f53472962008ac43002bc29cee8a1fc68a83f9a6d6a4dc716d868449ab0b3e261db8a0d874dc92b203acb8ff7956c913c837f&projectId=c7436aaa-840b-4ce7-b6a5-dad0deed0722")
|
||||
format("woff2"),
|
||||
url("/dv2/3/8e9ee02b-f337-4f13-ad6c-969d6d6536c8.woff?d44f19a684109620e4841579a090e818734316868668c34a487c6eafd18b1b6e7fe879134b1aa81a1a059daa018d517c7120bc3295bade478f53472962008ac43002bc29cee8a1fc68a83f9a6d6a4dc716d868449ab0b3e261db8a0d874dc92b203acb8ff7956c913c837f&projectId=c7436aaa-840b-4ce7-b6a5-dad0deed0722")
|
||||
format("woff"),
|
||||
url("/dv2/1/beddbbc6-203e-4f36-8960-3f5ca22af567.ttf?d44f19a684109620e4841579a090e818734316868668c34a487c6eafd18b1b6e7fe879134b1aa81a1a059daa018d517c7120bc3295bade478f53472962008ac43002bc29cee8a1fc68a83f9a6d6a4dc716d868449ab0b3e261db8a0d874dc92b203acb8ff7956c913c837f&projectId=c7436aaa-840b-4ce7-b6a5-dad0deed0722")
|
||||
format("truetype"),
|
||||
url("/dv2/11/af177436-d9e8-44e8-9c9c-ef2d945f20a3.svg?d44f19a684109620e4841579a090e818734316868668c34a487c6eafd18b1b6e7fe879134b1aa81a1a059daa018d517c7120bc3295bade478f53472962008ac43002bc29cee8a1fc68a83f9a6d6a4dc716d868449ab0b3e261db8a0d874dc92b203acb8ff7956c913c837f&projectId=c7436aaa-840b-4ce7-b6a5-dad0deed0722#af177436-d9e8-44e8-9c9c-ef2d945f20a3")
|
||||
format("svg");
|
||||
}
|
||||
@font-face {
|
||||
font-family: "HelveticaNeueW01-65Medi";
|
||||
src: url("/dv2/2/07fe0fec-b63f-4963-8ee1-535528b67fdb.eot?d44f19a684109620e4841579a090e818734316868668c34a487c6eafd18b1b6e7fe879134b1aa81a1a059daa018d517c7120bc3295bade478f53472962008ac43002bc29cee8a1fc68a83f9a6d6a4dc716d868449ab0b3e261db8a0d874dc92b203acb8ff7956c913c837f&projectId=c7436aaa-840b-4ce7-b6a5-dad0deed0722#iefix");
|
||||
src: url("/dv2/2/07fe0fec-b63f-4963-8ee1-535528b67fdb.eot?d44f19a684109620e4841579a090e818734316868668c34a487c6eafd18b1b6e7fe879134b1aa81a1a059daa018d517c7120bc3295bade478f53472962008ac43002bc29cee8a1fc68a83f9a6d6a4dc716d868449ab0b3e261db8a0d874dc92b203acb8ff7956c913c837f&projectId=c7436aaa-840b-4ce7-b6a5-dad0deed0722#iefix")
|
||||
format("eot"),
|
||||
url("/dv2/14/3600b37f-2bf1-45f3-be3a-03365f16d9cb.woff2?d44f19a684109620e4841579a090e818734316868668c34a487c6eafd18b1b6e7fe879134b1aa81a1a059daa018d517c7120bc3295bade478f53472962008ac43002bc29cee8a1fc68a83f9a6d6a4dc716d868449ab0b3e261db8a0d874dc92b203acb8ff7956c913c837f&projectId=c7436aaa-840b-4ce7-b6a5-dad0deed0722")
|
||||
format("woff2"),
|
||||
url("/dv2/3/60be5c39-863e-40cb-9434-6ebafb62ab2b.woff?d44f19a684109620e4841579a090e818734316868668c34a487c6eafd18b1b6e7fe879134b1aa81a1a059daa018d517c7120bc3295bade478f53472962008ac43002bc29cee8a1fc68a83f9a6d6a4dc716d868449ab0b3e261db8a0d874dc92b203acb8ff7956c913c837f&projectId=c7436aaa-840b-4ce7-b6a5-dad0deed0722")
|
||||
format("woff"),
|
||||
url("/dv2/1/4c6503c9-859b-4d3b-a1d5-2d42e1222415.ttf?d44f19a684109620e4841579a090e818734316868668c34a487c6eafd18b1b6e7fe879134b1aa81a1a059daa018d517c7120bc3295bade478f53472962008ac43002bc29cee8a1fc68a83f9a6d6a4dc716d868449ab0b3e261db8a0d874dc92b203acb8ff7956c913c837f&projectId=c7436aaa-840b-4ce7-b6a5-dad0deed0722")
|
||||
format("truetype"),
|
||||
url("/dv2/11/36c182c6-ef98-4021-9b0d-d63122c2bbf5.svg?d44f19a684109620e4841579a090e818734316868668c34a487c6eafd18b1b6e7fe879134b1aa81a1a059daa018d517c7120bc3295bade478f53472962008ac43002bc29cee8a1fc68a83f9a6d6a4dc716d868449ab0b3e261db8a0d874dc92b203acb8ff7956c913c837f&projectId=c7436aaa-840b-4ce7-b6a5-dad0deed0722#36c182c6-ef98-4021-9b0d-d63122c2bbf5")
|
||||
format("svg");
|
||||
}
|
||||
@font-face {
|
||||
font-family: "HelveticaNeueW01-66Medi";
|
||||
src: url("/dv2/2/71c74bc5-e7c8-48ad-9b03-43f3e6760e4e.eot?d44f19a684109620e4841579a090e818734316868668c34a487c6eafd18b1b6e7fe879134b1aa81a1a059daa018d517c7120bc3295bade478f53472962008ac43002bc29cee8a1fc68a83f9a6d6a4dc716d868449ab0b3e261db8a0d874dc92b203acb8ff7956c913c837f&projectId=c7436aaa-840b-4ce7-b6a5-dad0deed0722#iefix");
|
||||
src: url("/dv2/2/71c74bc5-e7c8-48ad-9b03-43f3e6760e4e.eot?d44f19a684109620e4841579a090e818734316868668c34a487c6eafd18b1b6e7fe879134b1aa81a1a059daa018d517c7120bc3295bade478f53472962008ac43002bc29cee8a1fc68a83f9a6d6a4dc716d868449ab0b3e261db8a0d874dc92b203acb8ff7956c913c837f&projectId=c7436aaa-840b-4ce7-b6a5-dad0deed0722#iefix")
|
||||
format("eot"),
|
||||
url("/dv2/14/9a31d352-a4be-4540-a6f2-f4ea3ea77d94.woff2?d44f19a684109620e4841579a090e818734316868668c34a487c6eafd18b1b6e7fe879134b1aa81a1a059daa018d517c7120bc3295bade478f53472962008ac43002bc29cee8a1fc68a83f9a6d6a4dc716d868449ab0b3e261db8a0d874dc92b203acb8ff7956c913c837f&projectId=c7436aaa-840b-4ce7-b6a5-dad0deed0722")
|
||||
format("woff2"),
|
||||
url("/dv2/3/5f0efe11-b07a-49fc-ab86-7af6152fa368.woff?d44f19a684109620e4841579a090e818734316868668c34a487c6eafd18b1b6e7fe879134b1aa81a1a059daa018d517c7120bc3295bade478f53472962008ac43002bc29cee8a1fc68a83f9a6d6a4dc716d868449ab0b3e261db8a0d874dc92b203acb8ff7956c913c837f&projectId=c7436aaa-840b-4ce7-b6a5-dad0deed0722")
|
||||
format("woff"),
|
||||
url("/dv2/1/fea58e5b-b0a7-43f7-8928-fc0639365852.ttf?d44f19a684109620e4841579a090e818734316868668c34a487c6eafd18b1b6e7fe879134b1aa81a1a059daa018d517c7120bc3295bade478f53472962008ac43002bc29cee8a1fc68a83f9a6d6a4dc716d868449ab0b3e261db8a0d874dc92b203acb8ff7956c913c837f&projectId=c7436aaa-840b-4ce7-b6a5-dad0deed0722")
|
||||
format("truetype"),
|
||||
url("/dv2/11/398e1bb8-f2eb-41d5-b3b6-b9a889b52ee7.svg?d44f19a684109620e4841579a090e818734316868668c34a487c6eafd18b1b6e7fe879134b1aa81a1a059daa018d517c7120bc3295bade478f53472962008ac43002bc29cee8a1fc68a83f9a6d6a4dc716d868449ab0b3e261db8a0d874dc92b203acb8ff7956c913c837f&projectId=c7436aaa-840b-4ce7-b6a5-dad0deed0722#398e1bb8-f2eb-41d5-b3b6-b9a889b52ee7")
|
||||
format("svg");
|
||||
}
|
||||
7610
public/bbw/index_files/c8683e92-collection.js
Normal file
7610
public/bbw/index_files/c8683e92-collection.js
Normal file
File diff suppressed because it is too large
Load diff
721
public/bbw/index_files/colorbox.min.js
vendored
Normal file
721
public/bbw/index_files/colorbox.min.js
vendored
Normal file
|
|
@ -0,0 +1,721 @@
|
|||
/* Colorbox, (c) 2011-2014 Jack Moore, MIT license */
|
||||
!(function (t, e, i) {
|
||||
function n(i, n, o) {
|
||||
var r = e.createElement(i);
|
||||
return n && (r.id = Z + n), o && (r.style.cssText = o), t(r);
|
||||
}
|
||||
|
||||
function o() {
|
||||
return i.innerHeight ? i.innerHeight : t(i).height();
|
||||
}
|
||||
|
||||
function r(e, i) {
|
||||
i !== Object(i) && (i = {}),
|
||||
(this.cache = {}),
|
||||
(this.el = e),
|
||||
(this.value = function (e) {
|
||||
var n;
|
||||
return (
|
||||
void 0 === this.cache[e] &&
|
||||
((n = t(this.el).attr("data-cbox-" + e)),
|
||||
void 0 !== n
|
||||
? (this.cache[e] = n)
|
||||
: void 0 !== i[e]
|
||||
? (this.cache[e] = i[e])
|
||||
: void 0 !== X[e] && (this.cache[e] = X[e])),
|
||||
this.cache[e]
|
||||
);
|
||||
}),
|
||||
(this.get = function (e) {
|
||||
var i = this.value(e);
|
||||
return t.isFunction(i) ? i.call(this.el, this) : i;
|
||||
});
|
||||
}
|
||||
|
||||
function h(t) {
|
||||
var e = W.length,
|
||||
i = (A + t) % e;
|
||||
return 0 > i ? e + i : i;
|
||||
}
|
||||
|
||||
function a(t, e) {
|
||||
return Math.round((/%/.test(t) ? ("x" === e ? E.width() : o()) / 100 : 1) * parseInt(t, 10));
|
||||
}
|
||||
|
||||
function s(t, e) {
|
||||
return t.get("photo") || t.get("photoRegex").test(e);
|
||||
}
|
||||
|
||||
function l(t, e) {
|
||||
return t.get("retinaUrl") && i.devicePixelRatio > 1 ? e.replace(t.get("photoRegex"), t.get("retinaSuffix")) : e;
|
||||
}
|
||||
|
||||
function d(t) {
|
||||
"contains" in y[0] && !y[0].contains(t.target) && t.target !== v[0] && (t.stopPropagation(), y.focus());
|
||||
}
|
||||
|
||||
function c(t) {
|
||||
c.str !== t && (y.add(v).removeClass(c.str).addClass(t), (c.str = t));
|
||||
}
|
||||
|
||||
function g(e) {
|
||||
(A = 0),
|
||||
e && e !== !1 && "nofollow" !== e
|
||||
? ((W = t("." + te).filter(function () {
|
||||
var i = t.data(this, Y),
|
||||
n = new r(this, i);
|
||||
return n.get("rel") === e;
|
||||
})),
|
||||
(A = W.index(_.el)),
|
||||
-1 === A && ((W = W.add(_.el)), (A = W.length - 1)))
|
||||
: (W = t(_.el));
|
||||
}
|
||||
|
||||
function u(i) {
|
||||
t(e).trigger(i), ae.triggerHandler(i);
|
||||
}
|
||||
|
||||
function f(i) {
|
||||
var o;
|
||||
if (!G) {
|
||||
if (((o = t(i).data(Y)), (_ = new r(i, o)), g(_.get("rel")), !$)) {
|
||||
($ = q = !0),
|
||||
c(_.get("className")),
|
||||
y.css({
|
||||
visibility: "hidden",
|
||||
display: "block",
|
||||
opacity: "",
|
||||
}),
|
||||
(I = n(se, "LoadedContent", "width:0; height:0; overflow:hidden; visibility:hidden")),
|
||||
b
|
||||
.css({
|
||||
width: "",
|
||||
height: "",
|
||||
})
|
||||
.append(I),
|
||||
(j = T.height() + k.height() + b.outerHeight(!0) - b.height()),
|
||||
(D = C.width() + H.width() + b.outerWidth(!0) - b.width()),
|
||||
(N = I.outerHeight(!0)),
|
||||
(z = I.outerWidth(!0));
|
||||
var h = a(_.get("initialWidth"), "x"),
|
||||
s = a(_.get("initialHeight"), "y"),
|
||||
l = _.get("maxWidth"),
|
||||
f = _.get("maxHeight");
|
||||
(_.w = (l !== !1 ? Math.min(h, a(l, "x")) : h) - z - D),
|
||||
(_.h = (f !== !1 ? Math.min(s, a(f, "y")) : s) - N - j),
|
||||
I.css({
|
||||
width: "",
|
||||
height: _.h,
|
||||
}),
|
||||
J.position(),
|
||||
u(ee),
|
||||
_.get("onOpen"),
|
||||
O.add(S).hide(),
|
||||
y.focus(),
|
||||
_.get("trapFocus") &&
|
||||
e.addEventListener &&
|
||||
(e.addEventListener("focus", d, !0),
|
||||
ae.one(re, function () {
|
||||
e.removeEventListener("focus", d, !0);
|
||||
})),
|
||||
_.get("returnFocus") &&
|
||||
ae.one(re, function () {
|
||||
t(_.el).focus();
|
||||
});
|
||||
}
|
||||
var p = parseFloat(_.get("opacity"));
|
||||
v
|
||||
.css({
|
||||
opacity: p === p ? p : "",
|
||||
cursor: _.get("overlayClose") ? "pointer" : "",
|
||||
visibility: "visible",
|
||||
})
|
||||
.show(),
|
||||
_.get("closeButton") ? B.html(_.get("close")).appendTo(b) : B.appendTo("<div/>"),
|
||||
w();
|
||||
}
|
||||
}
|
||||
|
||||
function p() {
|
||||
y ||
|
||||
((V = !1),
|
||||
(E = t(i)),
|
||||
(y = n(se)
|
||||
.attr({
|
||||
id: Y,
|
||||
class: t.support.opacity === !1 ? Z + "IE" : "",
|
||||
role: "dialog",
|
||||
tabindex: "-1",
|
||||
})
|
||||
.hide()),
|
||||
(v = n(se, "Overlay").hide()),
|
||||
(M = t([n(se, "LoadingOverlay")[0], n(se, "LoadingGraphic")[0]])),
|
||||
(x = n(se, "Wrapper")),
|
||||
(b = n(se, "Content").append(
|
||||
(S = n(se, "Title")),
|
||||
(F = n(se, "Current")),
|
||||
(P = t('<button type="button"/>').attr({ id: Z + "Previous" })),
|
||||
(K = t('<button type="button"/>').attr({ id: Z + "Next" })),
|
||||
(R = n("button", "Slideshow")),
|
||||
M
|
||||
)),
|
||||
(B = t('<button type="button"/>').attr({ id: Z + "Close" })),
|
||||
x
|
||||
.append(
|
||||
n(se).append(n(se, "TopLeft"), (T = n(se, "TopCenter")), n(se, "TopRight")),
|
||||
n(se, !1, "clear:left").append((C = n(se, "MiddleLeft")), b, (H = n(se, "MiddleRight"))),
|
||||
n(se, !1, "clear:left").append(
|
||||
n(se, "BottomLeft"),
|
||||
(k = n(se, "BottomCenter")),
|
||||
n(se, "BottomRight")
|
||||
)
|
||||
)
|
||||
.find("div div")
|
||||
.css({ float: "left" }),
|
||||
(L = n(se, !1, "position:absolute; width:9999px; visibility:hidden; display:none; max-width:none;")),
|
||||
(O = K.add(P).add(F).add(R))),
|
||||
e.body && !y.parent().length && t(e.body).append(v, y.append(x, L));
|
||||
}
|
||||
|
||||
function m() {
|
||||
function i(t) {
|
||||
t.which > 1 || t.shiftKey || t.altKey || t.metaKey || t.ctrlKey || (t.preventDefault(), f(this));
|
||||
}
|
||||
|
||||
return y
|
||||
? (V ||
|
||||
((V = !0),
|
||||
K.click(function () {
|
||||
J.next();
|
||||
}),
|
||||
P.click(function () {
|
||||
J.prev();
|
||||
}),
|
||||
B.click(function () {
|
||||
J.close();
|
||||
}),
|
||||
v.click(function () {
|
||||
_.get("overlayClose") && J.close();
|
||||
}),
|
||||
t(e).bind("keydown." + Z, function (t) {
|
||||
var e = t.keyCode;
|
||||
$ && _.get("escKey") && 27 === e && (t.preventDefault(), J.close()),
|
||||
$ &&
|
||||
_.get("arrowKey") &&
|
||||
W[1] &&
|
||||
!t.altKey &&
|
||||
(37 === e
|
||||
? (t.preventDefault(), P.click())
|
||||
: 39 === e && (t.preventDefault(), K.click()));
|
||||
}),
|
||||
t.isFunction(t.fn.on) ? t(e).on("click." + Z, "." + te, i) : t("." + te).live("click." + Z, i)),
|
||||
!0)
|
||||
: !1;
|
||||
}
|
||||
|
||||
function w() {
|
||||
var e,
|
||||
o,
|
||||
r,
|
||||
h = J.prep,
|
||||
d = ++le;
|
||||
if (
|
||||
((q = !0),
|
||||
(U = !1),
|
||||
u(he),
|
||||
u(ie),
|
||||
_.get("onLoad"),
|
||||
(_.h = _.get("height")
|
||||
? a(_.get("height"), "y") - N - j
|
||||
: _.get("innerHeight") && a(_.get("innerHeight"), "y")),
|
||||
(_.w = _.get("width")
|
||||
? a(_.get("width"), "x") - z - D
|
||||
: _.get("innerWidth") && a(_.get("innerWidth"), "x")),
|
||||
(_.mw = _.w),
|
||||
(_.mh = _.h),
|
||||
_.get("maxWidth") && ((_.mw = a(_.get("maxWidth"), "x") - z - D), (_.mw = _.w && _.w < _.mw ? _.w : _.mw)),
|
||||
_.get("maxHeight") &&
|
||||
((_.mh = a(_.get("maxHeight"), "y") - N - j), (_.mh = _.h && _.h < _.mh ? _.h : _.mh)),
|
||||
(e = _.get("href")),
|
||||
(Q = setTimeout(function () {
|
||||
M.show();
|
||||
}, 100)),
|
||||
_.get("inline"))
|
||||
) {
|
||||
var c = t(e);
|
||||
(r = t("<div>").hide().insertBefore(c)),
|
||||
ae.one(he, function () {
|
||||
r.replaceWith(c);
|
||||
}),
|
||||
h(c);
|
||||
} else
|
||||
_.get("iframe")
|
||||
? h(" ")
|
||||
: _.get("html")
|
||||
? h(_.get("html"))
|
||||
: s(_, e)
|
||||
? ((e = l(_, e)),
|
||||
(U = _.get("createImg")),
|
||||
t(U)
|
||||
.addClass(Z + "Photo")
|
||||
.bind("error." + Z, function () {
|
||||
h(n(se, "Error").html(_.get("imgError")));
|
||||
})
|
||||
.one("load", function () {
|
||||
d === le &&
|
||||
setTimeout(function () {
|
||||
var e;
|
||||
_.get("retinaImage") &&
|
||||
i.devicePixelRatio > 1 &&
|
||||
((U.height = U.height / i.devicePixelRatio),
|
||||
(U.width = U.width / i.devicePixelRatio)),
|
||||
_.get("scalePhotos") &&
|
||||
((o = function () {
|
||||
(U.height -= U.height * e), (U.width -= U.width * e);
|
||||
}),
|
||||
_.mw && U.width > _.mw && ((e = (U.width - _.mw) / U.width), o()),
|
||||
_.mh && U.height > _.mh && ((e = (U.height - _.mh) / U.height), o())),
|
||||
_.h && (U.style.marginTop = Math.max(_.mh - U.height, 0) / 2 + "px"),
|
||||
W[1] &&
|
||||
(_.get("loop") || W[A + 1]) &&
|
||||
((U.style.cursor = "pointer"),
|
||||
t(U).bind("click." + Z, function () {
|
||||
J.next();
|
||||
})),
|
||||
(U.style.width = U.width + "px"),
|
||||
(U.style.height = U.height + "px"),
|
||||
h(U);
|
||||
}, 1);
|
||||
}),
|
||||
(U.src = e))
|
||||
: e &&
|
||||
L.load(e, _.get("data"), function (e, i) {
|
||||
d === le && h("error" === i ? n(se, "Error").html(_.get("xhrError")) : t(this).contents());
|
||||
});
|
||||
}
|
||||
|
||||
var v,
|
||||
y,
|
||||
x,
|
||||
b,
|
||||
T,
|
||||
C,
|
||||
H,
|
||||
k,
|
||||
W,
|
||||
E,
|
||||
I,
|
||||
L,
|
||||
M,
|
||||
S,
|
||||
F,
|
||||
R,
|
||||
K,
|
||||
P,
|
||||
B,
|
||||
O,
|
||||
_,
|
||||
j,
|
||||
D,
|
||||
N,
|
||||
z,
|
||||
A,
|
||||
U,
|
||||
$,
|
||||
q,
|
||||
G,
|
||||
Q,
|
||||
J,
|
||||
V,
|
||||
X = {
|
||||
html: !1,
|
||||
photo: !1,
|
||||
iframe: !1,
|
||||
inline: !1,
|
||||
transition: "elastic",
|
||||
speed: 300,
|
||||
fadeOut: 300,
|
||||
width: !1,
|
||||
initialWidth: "600",
|
||||
innerWidth: !1,
|
||||
maxWidth: !1,
|
||||
height: !1,
|
||||
initialHeight: "450",
|
||||
innerHeight: !1,
|
||||
maxHeight: !1,
|
||||
scalePhotos: !0,
|
||||
scrolling: !0,
|
||||
opacity: 0.9,
|
||||
preloading: !0,
|
||||
className: !1,
|
||||
overlayClose: !0,
|
||||
escKey: !0,
|
||||
arrowKey: !0,
|
||||
top: !1,
|
||||
bottom: !1,
|
||||
left: !1,
|
||||
right: !1,
|
||||
fixed: !1,
|
||||
data: void 0,
|
||||
closeButton: !0,
|
||||
fastIframe: !0,
|
||||
open: !1,
|
||||
reposition: !0,
|
||||
loop: !0,
|
||||
slideshow: !1,
|
||||
slideshowAuto: !0,
|
||||
slideshowSpeed: 2500,
|
||||
slideshowStart: "start slideshow",
|
||||
slideshowStop: "stop slideshow",
|
||||
photoRegex: /\.(gif|png|jp(e|g|eg)|bmp|ico|webp|jxr|svg)((#|\?).*)?$/i,
|
||||
retinaImage: !1,
|
||||
retinaUrl: !1,
|
||||
retinaSuffix: "@2x.$1",
|
||||
current: "image {current} of {total}",
|
||||
previous: "previous",
|
||||
next: "next",
|
||||
close: "close",
|
||||
xhrError: "This content failed to load.",
|
||||
imgError: "This image failed to load.",
|
||||
returnFocus: !0,
|
||||
trapFocus: !0,
|
||||
onOpen: !1,
|
||||
onLoad: !1,
|
||||
onComplete: !1,
|
||||
onCleanup: !1,
|
||||
onClosed: !1,
|
||||
rel: function () {
|
||||
return this.rel;
|
||||
},
|
||||
href: function () {
|
||||
return t(this).attr("href");
|
||||
},
|
||||
title: function () {
|
||||
return this.title;
|
||||
},
|
||||
createImg: function () {
|
||||
var e = new Image(),
|
||||
i = t(this).data("cbox-img-attrs");
|
||||
return (
|
||||
"object" == typeof i &&
|
||||
t.each(i, function (t, i) {
|
||||
e[t] = i;
|
||||
}),
|
||||
e
|
||||
);
|
||||
},
|
||||
createIframe: function () {
|
||||
var i = e.createElement("iframe"),
|
||||
n = t(this).data("cbox-iframe-attrs");
|
||||
return (
|
||||
"object" == typeof n &&
|
||||
t.each(n, function (t, e) {
|
||||
i[t] = e;
|
||||
}),
|
||||
"frameBorder" in i && (i.frameBorder = 0),
|
||||
"allowTransparency" in i && (i.allowTransparency = "true"),
|
||||
(i.name = new Date().getTime()),
|
||||
(i.allowFullScreen = !0),
|
||||
i
|
||||
);
|
||||
},
|
||||
},
|
||||
Y = "colorbox",
|
||||
Z = "cbox",
|
||||
te = Z + "Element",
|
||||
ee = Z + "_open",
|
||||
ie = Z + "_load",
|
||||
ne = Z + "_complete",
|
||||
oe = Z + "_cleanup",
|
||||
re = Z + "_closed",
|
||||
he = Z + "_purge",
|
||||
ae = t("<a/>"),
|
||||
se = "div",
|
||||
le = 0,
|
||||
de = {},
|
||||
ce = (function () {
|
||||
function t() {
|
||||
clearTimeout(h);
|
||||
}
|
||||
|
||||
function e() {
|
||||
(_.get("loop") || W[A + 1]) && (t(), (h = setTimeout(J.next, _.get("slideshowSpeed"))));
|
||||
}
|
||||
|
||||
function i() {
|
||||
R.html(_.get("slideshowStop")).unbind(s).one(s, n),
|
||||
ae.bind(ne, e).bind(ie, t),
|
||||
y.removeClass(a + "off").addClass(a + "on");
|
||||
}
|
||||
|
||||
function n() {
|
||||
t(),
|
||||
ae.unbind(ne, e).unbind(ie, t),
|
||||
R.html(_.get("slideshowStart"))
|
||||
.unbind(s)
|
||||
.one(s, function () {
|
||||
J.next(), i();
|
||||
}),
|
||||
y.removeClass(a + "on").addClass(a + "off");
|
||||
}
|
||||
|
||||
function o() {
|
||||
(r = !1), R.hide(), t(), ae.unbind(ne, e).unbind(ie, t), y.removeClass(a + "off " + a + "on");
|
||||
}
|
||||
|
||||
var r,
|
||||
h,
|
||||
a = Z + "Slideshow_",
|
||||
s = "click." + Z;
|
||||
return function () {
|
||||
r
|
||||
? _.get("slideshow") || (ae.unbind(oe, o), o())
|
||||
: _.get("slideshow") &&
|
||||
W[1] &&
|
||||
((r = !0), ae.one(oe, o), _.get("slideshowAuto") ? i() : n(), R.show());
|
||||
};
|
||||
})();
|
||||
t[Y] ||
|
||||
(t(p),
|
||||
(J =
|
||||
t.fn[Y] =
|
||||
t[Y] =
|
||||
function (e, i) {
|
||||
var n,
|
||||
o = this;
|
||||
return (
|
||||
(e = e || {}),
|
||||
t.isFunction(o) && ((o = t("<a/>")), (e.open = !0)),
|
||||
o[0]
|
||||
? (p(),
|
||||
m() &&
|
||||
(i && (e.onComplete = i),
|
||||
o
|
||||
.each(function () {
|
||||
var i = t.data(this, Y) || {};
|
||||
t.data(this, Y, t.extend(i, e));
|
||||
})
|
||||
.addClass(te),
|
||||
(n = new r(o[0], e)),
|
||||
n.get("open") && f(o[0])),
|
||||
o)
|
||||
: o
|
||||
);
|
||||
}),
|
||||
(J.position = function (e, i) {
|
||||
function n() {
|
||||
(T[0].style.width = k[0].style.width = b[0].style.width = parseInt(y[0].style.width, 10) - D + "px"),
|
||||
(b[0].style.height =
|
||||
C[0].style.height =
|
||||
H[0].style.height =
|
||||
parseInt(y[0].style.height, 10) - j + "px");
|
||||
}
|
||||
|
||||
var r,
|
||||
h,
|
||||
s,
|
||||
l = 0,
|
||||
d = 0,
|
||||
c = y.offset();
|
||||
if (
|
||||
(E.unbind("resize." + Z),
|
||||
y.css({
|
||||
top: -9e4,
|
||||
left: -9e4,
|
||||
}),
|
||||
(h = E.scrollTop()),
|
||||
(s = E.scrollLeft()),
|
||||
_.get("fixed")
|
||||
? ((c.top -= h), (c.left -= s), y.css({ position: "fixed" }))
|
||||
: ((l = h), (d = s), y.css({ position: "absolute" })),
|
||||
(d +=
|
||||
_.get("right") !== !1
|
||||
? Math.max(E.width() - _.w - z - D - a(_.get("right"), "x"), 0)
|
||||
: _.get("left") !== !1
|
||||
? a(_.get("left"), "x")
|
||||
: Math.round(Math.max(E.width() - _.w - z - D, 0) / 2)),
|
||||
(l +=
|
||||
_.get("bottom") !== !1
|
||||
? Math.max(o() - _.h - N - j - a(_.get("bottom"), "y"), 0)
|
||||
: _.get("top") !== !1
|
||||
? a(_.get("top"), "y")
|
||||
: Math.round(Math.max(o() - _.h - N - j, 0) / 2)),
|
||||
y.css({
|
||||
top: c.top,
|
||||
left: c.left,
|
||||
visibility: "visible",
|
||||
}),
|
||||
(x[0].style.width = x[0].style.height = "9999px"),
|
||||
(r = {
|
||||
width: _.w + z + D,
|
||||
height: _.h + N + j,
|
||||
top: l,
|
||||
left: d,
|
||||
}),
|
||||
e)
|
||||
) {
|
||||
var g = 0;
|
||||
t.each(r, function (t) {
|
||||
return r[t] !== de[t] ? void (g = e) : void 0;
|
||||
}),
|
||||
(e = g);
|
||||
}
|
||||
(de = r),
|
||||
e || y.css(r),
|
||||
y.dequeue().animate(r, {
|
||||
duration: e || 0,
|
||||
complete: function () {
|
||||
n(),
|
||||
(q = !1),
|
||||
(x[0].style.width = _.w + z + D + "px"),
|
||||
(x[0].style.height = _.h + N + j + "px"),
|
||||
_.get("reposition") &&
|
||||
setTimeout(function () {
|
||||
E.bind("resize." + Z, J.position);
|
||||
}, 1),
|
||||
t.isFunction(i) && i();
|
||||
},
|
||||
step: n,
|
||||
});
|
||||
}),
|
||||
(J.resize = function (t) {
|
||||
var e;
|
||||
$ &&
|
||||
((t = t || {}),
|
||||
t.width && (_.w = a(t.width, "x") - z - D),
|
||||
t.innerWidth && (_.w = a(t.innerWidth, "x")),
|
||||
I.css({ width: _.w }),
|
||||
t.height && (_.h = a(t.height, "y") - N - j),
|
||||
t.innerHeight && (_.h = a(t.innerHeight, "y")),
|
||||
t.innerHeight || t.height || ((e = I.scrollTop()), I.css({ height: "auto" }), (_.h = I.height())),
|
||||
I.css({ height: _.h }),
|
||||
e && I.scrollTop(e),
|
||||
J.position("none" === _.get("transition") ? 0 : _.get("speed")));
|
||||
}),
|
||||
(J.prep = function (i) {
|
||||
function o() {
|
||||
return (_.w = _.w || I.width()), (_.w = _.mw && _.mw < _.w ? _.mw : _.w), _.w;
|
||||
}
|
||||
|
||||
function a() {
|
||||
return (_.h = _.h || I.height()), (_.h = _.mh && _.mh < _.h ? _.mh : _.h), _.h;
|
||||
}
|
||||
|
||||
if ($) {
|
||||
var d,
|
||||
g = "none" === _.get("transition") ? 0 : _.get("speed");
|
||||
I.remove(),
|
||||
(I = n(se, "LoadedContent").append(i)),
|
||||
I.hide()
|
||||
.appendTo(L.show())
|
||||
.css({
|
||||
width: o(),
|
||||
overflow: _.get("scrolling") ? "auto" : "hidden",
|
||||
})
|
||||
.css({ height: a() })
|
||||
.prependTo(b),
|
||||
L.hide(),
|
||||
t(U).css({ float: "none" }),
|
||||
c(_.get("className")),
|
||||
(d = function () {
|
||||
function i() {
|
||||
t.support.opacity === !1 && y[0].style.removeAttribute("filter");
|
||||
}
|
||||
|
||||
var n,
|
||||
o,
|
||||
a = W.length;
|
||||
$ &&
|
||||
((o = function () {
|
||||
clearTimeout(Q), M.hide(), u(ne), _.get("onComplete");
|
||||
}),
|
||||
S.html(_.get("title")).show(),
|
||||
I.show(),
|
||||
a > 1
|
||||
? ("string" == typeof _.get("current") &&
|
||||
F.html(
|
||||
_.get("current")
|
||||
.replace("{current}", A + 1)
|
||||
.replace("{total}", a)
|
||||
).show(),
|
||||
K[_.get("loop") || a - 1 > A ? "show" : "hide"]().html(_.get("next")),
|
||||
P[_.get("loop") || A ? "show" : "hide"]().html(_.get("previous")),
|
||||
ce(),
|
||||
_.get("preloading") &&
|
||||
t.each([h(-1), h(1)], function () {
|
||||
var i,
|
||||
n = W[this],
|
||||
o = new r(n, t.data(n, Y)),
|
||||
h = o.get("href");
|
||||
h && s(o, h) && ((h = l(o, h)), (i = e.createElement("img")), (i.src = h));
|
||||
}))
|
||||
: O.hide(),
|
||||
_.get("iframe")
|
||||
? ((n = _.get("createIframe")),
|
||||
_.get("scrolling") || (n.scrolling = "no"),
|
||||
t(n)
|
||||
.attr({
|
||||
src: _.get("href"),
|
||||
class: Z + "Iframe",
|
||||
})
|
||||
.one("load", o)
|
||||
.appendTo(I),
|
||||
ae.one(he, function () {
|
||||
n.src = "//about:blank";
|
||||
}),
|
||||
_.get("fastIframe") && t(n).trigger("load"))
|
||||
: o(),
|
||||
"fade" === _.get("transition") ? y.fadeTo(g, 1, i) : i());
|
||||
}),
|
||||
"fade" === _.get("transition")
|
||||
? y.fadeTo(g, 0, function () {
|
||||
J.position(0, d);
|
||||
})
|
||||
: J.position(g, d);
|
||||
}
|
||||
}),
|
||||
(J.next = function () {
|
||||
!q && W[1] && (_.get("loop") || W[A + 1]) && ((A = h(1)), f(W[A]));
|
||||
}),
|
||||
(J.prev = function () {
|
||||
!q && W[1] && (_.get("loop") || A) && ((A = h(-1)), f(W[A]));
|
||||
}),
|
||||
(J.close = function () {
|
||||
$ &&
|
||||
!G &&
|
||||
((G = !0),
|
||||
($ = !1),
|
||||
u(oe),
|
||||
_.get("onCleanup"),
|
||||
E.unbind("." + Z),
|
||||
v.fadeTo(_.get("fadeOut") || 0, 0),
|
||||
y.stop().fadeTo(_.get("fadeOut") || 0, 0, function () {
|
||||
y.hide(),
|
||||
v.hide(),
|
||||
u(he),
|
||||
I.remove(),
|
||||
setTimeout(function () {
|
||||
(G = !1), u(re), _.get("onClosed");
|
||||
}, 1);
|
||||
}));
|
||||
}),
|
||||
(J.remove = function () {
|
||||
y &&
|
||||
(y.stop(),
|
||||
t[Y].close(),
|
||||
y.stop(!1, !0).remove(),
|
||||
v.remove(),
|
||||
(G = !1),
|
||||
(y = null),
|
||||
t("." + te)
|
||||
.removeData(Y)
|
||||
.removeClass(te),
|
||||
t(e)
|
||||
.unbind("click." + Z)
|
||||
.unbind("keydown." + Z));
|
||||
}),
|
||||
(J.element = function () {
|
||||
return t(_.el);
|
||||
}),
|
||||
(J.settings = X));
|
||||
})(jQuery, document, window);
|
||||
852
public/bbw/index_files/jquery-ui.min.js
vendored
Normal file
852
public/bbw/index_files/jquery-ui.min.js
vendored
Normal file
|
|
@ -0,0 +1,852 @@
|
|||
/* jQuery UI v1.11.4; (c) 2015 jQuery Foundation and other contributors; Licensed MIT */
|
||||
(function (e) {
|
||||
"function" == typeof define && define.amd ? define(["jquery"], e) : e(jQuery);
|
||||
})(function (e) {
|
||||
function t(t, s) {
|
||||
var n,
|
||||
a,
|
||||
o,
|
||||
r = t.nodeName.toLowerCase();
|
||||
return "area" === r
|
||||
? ((n = t.parentNode),
|
||||
(a = n.name),
|
||||
t.href && a && "map" === n.nodeName.toLowerCase()
|
||||
? ((o = e("img[usemap='#" + a + "']")[0]), !!o && i(o))
|
||||
: !1)
|
||||
: (/^(input|select|textarea|button|object)$/.test(r) ? !t.disabled : "a" === r ? t.href || s : s) && i(t);
|
||||
}
|
||||
function i(t) {
|
||||
return (
|
||||
e.expr.filters.visible(t) &&
|
||||
!e(t)
|
||||
.parents()
|
||||
.addBack()
|
||||
.filter(function () {
|
||||
return "hidden" === e.css(this, "visibility");
|
||||
}).length
|
||||
);
|
||||
}
|
||||
(e.ui = e.ui || {}),
|
||||
e.extend(e.ui, {
|
||||
version: "1.11.4",
|
||||
keyCode: {
|
||||
BACKSPACE: 8,
|
||||
COMMA: 188,
|
||||
DELETE: 46,
|
||||
DOWN: 40,
|
||||
END: 35,
|
||||
ENTER: 13,
|
||||
ESCAPE: 27,
|
||||
HOME: 36,
|
||||
LEFT: 37,
|
||||
PAGE_DOWN: 34,
|
||||
PAGE_UP: 33,
|
||||
PERIOD: 190,
|
||||
RIGHT: 39,
|
||||
SPACE: 32,
|
||||
TAB: 9,
|
||||
UP: 38,
|
||||
},
|
||||
}),
|
||||
e.fn.extend({
|
||||
scrollParent: function (t) {
|
||||
var i = this.css("position"),
|
||||
s = "absolute" === i,
|
||||
n = t ? /(auto|scroll|hidden)/ : /(auto|scroll)/,
|
||||
a = this.parents()
|
||||
.filter(function () {
|
||||
var t = e(this);
|
||||
return s && "static" === t.css("position")
|
||||
? !1
|
||||
: n.test(t.css("overflow") + t.css("overflow-y") + t.css("overflow-x"));
|
||||
})
|
||||
.eq(0);
|
||||
return "fixed" !== i && a.length ? a : e(this[0].ownerDocument || document);
|
||||
},
|
||||
uniqueId: (function () {
|
||||
var e = 0;
|
||||
return function () {
|
||||
return this.each(function () {
|
||||
this.id || (this.id = "ui-id-" + ++e);
|
||||
});
|
||||
};
|
||||
})(),
|
||||
removeUniqueId: function () {
|
||||
return this.each(function () {
|
||||
/^ui-id-\d+$/.test(this.id) && e(this).removeAttr("id");
|
||||
});
|
||||
},
|
||||
}),
|
||||
e.extend(e.expr[":"], {
|
||||
data: e.expr.createPseudo
|
||||
? e.expr.createPseudo(function (t) {
|
||||
return function (i) {
|
||||
return !!e.data(i, t);
|
||||
};
|
||||
})
|
||||
: function (t, i, s) {
|
||||
return !!e.data(t, s[3]);
|
||||
},
|
||||
focusable: function (i) {
|
||||
return t(i, !isNaN(e.attr(i, "tabindex")));
|
||||
},
|
||||
tabbable: function (i) {
|
||||
var s = e.attr(i, "tabindex"),
|
||||
n = isNaN(s);
|
||||
return (n || s >= 0) && t(i, !n);
|
||||
},
|
||||
}),
|
||||
e("<a>").outerWidth(1).jquery ||
|
||||
e.each(["Width", "Height"], function (t, i) {
|
||||
function s(t, i, s, a) {
|
||||
return (
|
||||
e.each(n, function () {
|
||||
(i -= parseFloat(e.css(t, "padding" + this)) || 0),
|
||||
s && (i -= parseFloat(e.css(t, "border" + this + "Width")) || 0),
|
||||
a && (i -= parseFloat(e.css(t, "margin" + this)) || 0);
|
||||
}),
|
||||
i
|
||||
);
|
||||
}
|
||||
var n = "Width" === i ? ["Left", "Right"] : ["Top", "Bottom"],
|
||||
a = i.toLowerCase(),
|
||||
o = {
|
||||
innerWidth: e.fn.innerWidth,
|
||||
innerHeight: e.fn.innerHeight,
|
||||
outerWidth: e.fn.outerWidth,
|
||||
outerHeight: e.fn.outerHeight,
|
||||
};
|
||||
(e.fn["inner" + i] = function (t) {
|
||||
return void 0 === t
|
||||
? o["inner" + i].call(this)
|
||||
: this.each(function () {
|
||||
e(this).css(a, s(this, t) + "px");
|
||||
});
|
||||
}),
|
||||
(e.fn["outer" + i] = function (t, n) {
|
||||
return "number" != typeof t
|
||||
? o["outer" + i].call(this, t)
|
||||
: this.each(function () {
|
||||
e(this).css(a, s(this, t, !0, n) + "px");
|
||||
});
|
||||
});
|
||||
}),
|
||||
e.fn.addBack ||
|
||||
(e.fn.addBack = function (e) {
|
||||
return this.add(null == e ? this.prevObject : this.prevObject.filter(e));
|
||||
}),
|
||||
e("<a>").data("a-b", "a").removeData("a-b").data("a-b") &&
|
||||
(e.fn.removeData = (function (t) {
|
||||
return function (i) {
|
||||
return arguments.length ? t.call(this, e.camelCase(i)) : t.call(this);
|
||||
};
|
||||
})(e.fn.removeData)),
|
||||
(e.ui.ie = !!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase())),
|
||||
e.fn.extend({
|
||||
focus: (function (t) {
|
||||
return function (i, s) {
|
||||
return "number" == typeof i
|
||||
? this.each(function () {
|
||||
var t = this;
|
||||
setTimeout(function () {
|
||||
e(t).focus(), s && s.call(t);
|
||||
}, i);
|
||||
})
|
||||
: t.apply(this, arguments);
|
||||
};
|
||||
})(e.fn.focus),
|
||||
disableSelection: (function () {
|
||||
var e = "onselectstart" in document.createElement("div") ? "selectstart" : "mousedown";
|
||||
return function () {
|
||||
return this.bind(e + ".ui-disableSelection", function (e) {
|
||||
e.preventDefault();
|
||||
});
|
||||
};
|
||||
})(),
|
||||
enableSelection: function () {
|
||||
return this.unbind(".ui-disableSelection");
|
||||
},
|
||||
zIndex: function (t) {
|
||||
if (void 0 !== t) return this.css("zIndex", t);
|
||||
if (this.length)
|
||||
for (var i, s, n = e(this[0]); n.length && n[0] !== document; ) {
|
||||
if (
|
||||
((i = n.css("position")),
|
||||
("absolute" === i || "relative" === i || "fixed" === i) &&
|
||||
((s = parseInt(n.css("zIndex"), 10)), !isNaN(s) && 0 !== s))
|
||||
)
|
||||
return s;
|
||||
n = n.parent();
|
||||
}
|
||||
return 0;
|
||||
},
|
||||
}),
|
||||
(e.ui.plugin = {
|
||||
add: function (t, i, s) {
|
||||
var n,
|
||||
a = e.ui[t].prototype;
|
||||
for (n in s) (a.plugins[n] = a.plugins[n] || []), a.plugins[n].push([i, s[n]]);
|
||||
},
|
||||
call: function (e, t, i, s) {
|
||||
var n,
|
||||
a = e.plugins[t];
|
||||
if (a && (s || (e.element[0].parentNode && 11 !== e.element[0].parentNode.nodeType)))
|
||||
for (n = 0; a.length > n; n++) e.options[a[n][0]] && a[n][1].apply(e.element, i);
|
||||
},
|
||||
});
|
||||
var s = 0,
|
||||
n = Array.prototype.slice;
|
||||
(e.cleanData = (function (t) {
|
||||
return function (i) {
|
||||
var s, n, a;
|
||||
for (a = 0; null != (n = i[a]); a++)
|
||||
try {
|
||||
(s = e._data(n, "events")), s && s.remove && e(n).triggerHandler("remove");
|
||||
} catch (o) {}
|
||||
t(i);
|
||||
};
|
||||
})(e.cleanData)),
|
||||
(e.widget = function (t, i, s) {
|
||||
var n,
|
||||
a,
|
||||
o,
|
||||
r,
|
||||
h = {},
|
||||
l = t.split(".")[0];
|
||||
return (
|
||||
(t = t.split(".")[1]),
|
||||
(n = l + "-" + t),
|
||||
s || ((s = i), (i = e.Widget)),
|
||||
(e.expr[":"][n.toLowerCase()] = function (t) {
|
||||
return !!e.data(t, n);
|
||||
}),
|
||||
(e[l] = e[l] || {}),
|
||||
(a = e[l][t]),
|
||||
(o = e[l][t] =
|
||||
function (e, t) {
|
||||
return this._createWidget
|
||||
? (arguments.length && this._createWidget(e, t), void 0)
|
||||
: new o(e, t);
|
||||
}),
|
||||
e.extend(o, a, { version: s.version, _proto: e.extend({}, s), _childConstructors: [] }),
|
||||
(r = new i()),
|
||||
(r.options = e.widget.extend({}, r.options)),
|
||||
e.each(s, function (t, s) {
|
||||
return e.isFunction(s)
|
||||
? ((h[t] = (function () {
|
||||
var e = function () {
|
||||
return i.prototype[t].apply(this, arguments);
|
||||
},
|
||||
n = function (e) {
|
||||
return i.prototype[t].apply(this, e);
|
||||
};
|
||||
return function () {
|
||||
var t,
|
||||
i = this._super,
|
||||
a = this._superApply;
|
||||
return (
|
||||
(this._super = e),
|
||||
(this._superApply = n),
|
||||
(t = s.apply(this, arguments)),
|
||||
(this._super = i),
|
||||
(this._superApply = a),
|
||||
t
|
||||
);
|
||||
};
|
||||
})()),
|
||||
void 0)
|
||||
: ((h[t] = s), void 0);
|
||||
}),
|
||||
(o.prototype = e.widget.extend(r, { widgetEventPrefix: a ? r.widgetEventPrefix || t : t }, h, {
|
||||
constructor: o,
|
||||
namespace: l,
|
||||
widgetName: t,
|
||||
widgetFullName: n,
|
||||
})),
|
||||
a
|
||||
? (e.each(a._childConstructors, function (t, i) {
|
||||
var s = i.prototype;
|
||||
e.widget(s.namespace + "." + s.widgetName, o, i._proto);
|
||||
}),
|
||||
delete a._childConstructors)
|
||||
: i._childConstructors.push(o),
|
||||
e.widget.bridge(t, o),
|
||||
o
|
||||
);
|
||||
}),
|
||||
(e.widget.extend = function (t) {
|
||||
for (var i, s, a = n.call(arguments, 1), o = 0, r = a.length; r > o; o++)
|
||||
for (i in a[o])
|
||||
(s = a[o][i]),
|
||||
a[o].hasOwnProperty(i) &&
|
||||
void 0 !== s &&
|
||||
(t[i] = e.isPlainObject(s)
|
||||
? e.isPlainObject(t[i])
|
||||
? e.widget.extend({}, t[i], s)
|
||||
: e.widget.extend({}, s)
|
||||
: s);
|
||||
return t;
|
||||
}),
|
||||
(e.widget.bridge = function (t, i) {
|
||||
var s = i.prototype.widgetFullName || t;
|
||||
e.fn[t] = function (a) {
|
||||
var o = "string" == typeof a,
|
||||
r = n.call(arguments, 1),
|
||||
h = this;
|
||||
return (
|
||||
o
|
||||
? this.each(function () {
|
||||
var i,
|
||||
n = e.data(this, s);
|
||||
return "instance" === a
|
||||
? ((h = n), !1)
|
||||
: n
|
||||
? e.isFunction(n[a]) && "_" !== a.charAt(0)
|
||||
? ((i = n[a].apply(n, r)),
|
||||
i !== n && void 0 !== i
|
||||
? ((h = i && i.jquery ? h.pushStack(i.get()) : i), !1)
|
||||
: void 0)
|
||||
: e.error("no such method '" + a + "' for " + t + " widget instance")
|
||||
: e.error(
|
||||
"cannot call methods on " +
|
||||
t +
|
||||
" prior to initialization; " +
|
||||
"attempted to call method '" +
|
||||
a +
|
||||
"'"
|
||||
);
|
||||
})
|
||||
: (r.length && (a = e.widget.extend.apply(null, [a].concat(r))),
|
||||
this.each(function () {
|
||||
var t = e.data(this, s);
|
||||
t ? (t.option(a || {}), t._init && t._init()) : e.data(this, s, new i(a, this));
|
||||
})),
|
||||
h
|
||||
);
|
||||
};
|
||||
}),
|
||||
(e.Widget = function () {}),
|
||||
(e.Widget._childConstructors = []),
|
||||
(e.Widget.prototype = {
|
||||
widgetName: "widget",
|
||||
widgetEventPrefix: "",
|
||||
defaultElement: "<div>",
|
||||
options: { disabled: !1, create: null },
|
||||
_createWidget: function (t, i) {
|
||||
(i = e(i || this.defaultElement || this)[0]),
|
||||
(this.element = e(i)),
|
||||
(this.uuid = s++),
|
||||
(this.eventNamespace = "." + this.widgetName + this.uuid),
|
||||
(this.bindings = e()),
|
||||
(this.hoverable = e()),
|
||||
(this.focusable = e()),
|
||||
i !== this &&
|
||||
(e.data(i, this.widgetFullName, this),
|
||||
this._on(!0, this.element, {
|
||||
remove: function (e) {
|
||||
e.target === i && this.destroy();
|
||||
},
|
||||
}),
|
||||
(this.document = e(i.style ? i.ownerDocument : i.document || i)),
|
||||
(this.window = e(this.document[0].defaultView || this.document[0].parentWindow))),
|
||||
(this.options = e.widget.extend({}, this.options, this._getCreateOptions(), t)),
|
||||
this._create(),
|
||||
this._trigger("create", null, this._getCreateEventData()),
|
||||
this._init();
|
||||
},
|
||||
_getCreateOptions: e.noop,
|
||||
_getCreateEventData: e.noop,
|
||||
_create: e.noop,
|
||||
_init: e.noop,
|
||||
destroy: function () {
|
||||
this._destroy(),
|
||||
this.element
|
||||
.unbind(this.eventNamespace)
|
||||
.removeData(this.widgetFullName)
|
||||
.removeData(e.camelCase(this.widgetFullName)),
|
||||
this.widget()
|
||||
.unbind(this.eventNamespace)
|
||||
.removeAttr("aria-disabled")
|
||||
.removeClass(this.widgetFullName + "-disabled " + "ui-state-disabled"),
|
||||
this.bindings.unbind(this.eventNamespace),
|
||||
this.hoverable.removeClass("ui-state-hover"),
|
||||
this.focusable.removeClass("ui-state-focus");
|
||||
},
|
||||
_destroy: e.noop,
|
||||
widget: function () {
|
||||
return this.element;
|
||||
},
|
||||
option: function (t, i) {
|
||||
var s,
|
||||
n,
|
||||
a,
|
||||
o = t;
|
||||
if (0 === arguments.length) return e.widget.extend({}, this.options);
|
||||
if ("string" == typeof t)
|
||||
if (((o = {}), (s = t.split(".")), (t = s.shift()), s.length)) {
|
||||
for (n = o[t] = e.widget.extend({}, this.options[t]), a = 0; s.length - 1 > a; a++)
|
||||
(n[s[a]] = n[s[a]] || {}), (n = n[s[a]]);
|
||||
if (((t = s.pop()), 1 === arguments.length)) return void 0 === n[t] ? null : n[t];
|
||||
n[t] = i;
|
||||
} else {
|
||||
if (1 === arguments.length) return void 0 === this.options[t] ? null : this.options[t];
|
||||
o[t] = i;
|
||||
}
|
||||
return this._setOptions(o), this;
|
||||
},
|
||||
_setOptions: function (e) {
|
||||
var t;
|
||||
for (t in e) this._setOption(t, e[t]);
|
||||
return this;
|
||||
},
|
||||
_setOption: function (e, t) {
|
||||
return (
|
||||
(this.options[e] = t),
|
||||
"disabled" === e &&
|
||||
(this.widget().toggleClass(this.widgetFullName + "-disabled", !!t),
|
||||
t &&
|
||||
(this.hoverable.removeClass("ui-state-hover"),
|
||||
this.focusable.removeClass("ui-state-focus"))),
|
||||
this
|
||||
);
|
||||
},
|
||||
enable: function () {
|
||||
return this._setOptions({ disabled: !1 });
|
||||
},
|
||||
disable: function () {
|
||||
return this._setOptions({ disabled: !0 });
|
||||
},
|
||||
_on: function (t, i, s) {
|
||||
var n,
|
||||
a = this;
|
||||
"boolean" != typeof t && ((s = i), (i = t), (t = !1)),
|
||||
s
|
||||
? ((i = n = e(i)), (this.bindings = this.bindings.add(i)))
|
||||
: ((s = i), (i = this.element), (n = this.widget())),
|
||||
e.each(s, function (s, o) {
|
||||
function r() {
|
||||
return t || (a.options.disabled !== !0 && !e(this).hasClass("ui-state-disabled"))
|
||||
? ("string" == typeof o ? a[o] : o).apply(a, arguments)
|
||||
: void 0;
|
||||
}
|
||||
"string" != typeof o && (r.guid = o.guid = o.guid || r.guid || e.guid++);
|
||||
var h = s.match(/^([\w:-]*)\s*(.*)$/),
|
||||
l = h[1] + a.eventNamespace,
|
||||
u = h[2];
|
||||
u ? n.delegate(u, l, r) : i.bind(l, r);
|
||||
});
|
||||
},
|
||||
_off: function (t, i) {
|
||||
(i = (i || "").split(" ").join(this.eventNamespace + " ") + this.eventNamespace),
|
||||
t.unbind(i).undelegate(i),
|
||||
(this.bindings = e(this.bindings.not(t).get())),
|
||||
(this.focusable = e(this.focusable.not(t).get())),
|
||||
(this.hoverable = e(this.hoverable.not(t).get()));
|
||||
},
|
||||
_delay: function (e, t) {
|
||||
function i() {
|
||||
return ("string" == typeof e ? s[e] : e).apply(s, arguments);
|
||||
}
|
||||
var s = this;
|
||||
return setTimeout(i, t || 0);
|
||||
},
|
||||
_hoverable: function (t) {
|
||||
(this.hoverable = this.hoverable.add(t)),
|
||||
this._on(t, {
|
||||
mouseenter: function (t) {
|
||||
e(t.currentTarget).addClass("ui-state-hover");
|
||||
},
|
||||
mouseleave: function (t) {
|
||||
e(t.currentTarget).removeClass("ui-state-hover");
|
||||
},
|
||||
});
|
||||
},
|
||||
_focusable: function (t) {
|
||||
(this.focusable = this.focusable.add(t)),
|
||||
this._on(t, {
|
||||
focusin: function (t) {
|
||||
e(t.currentTarget).addClass("ui-state-focus");
|
||||
},
|
||||
focusout: function (t) {
|
||||
e(t.currentTarget).removeClass("ui-state-focus");
|
||||
},
|
||||
});
|
||||
},
|
||||
_trigger: function (t, i, s) {
|
||||
var n,
|
||||
a,
|
||||
o = this.options[t];
|
||||
if (
|
||||
((s = s || {}),
|
||||
(i = e.Event(i)),
|
||||
(i.type = (t === this.widgetEventPrefix ? t : this.widgetEventPrefix + t).toLowerCase()),
|
||||
(i.target = this.element[0]),
|
||||
(a = i.originalEvent))
|
||||
)
|
||||
for (n in a) n in i || (i[n] = a[n]);
|
||||
return (
|
||||
this.element.trigger(i, s),
|
||||
!((e.isFunction(o) && o.apply(this.element[0], [i].concat(s)) === !1) || i.isDefaultPrevented())
|
||||
);
|
||||
},
|
||||
}),
|
||||
e.each({ show: "fadeIn", hide: "fadeOut" }, function (t, i) {
|
||||
e.Widget.prototype["_" + t] = function (s, n, a) {
|
||||
"string" == typeof n && (n = { effect: n });
|
||||
var o,
|
||||
r = n ? (n === !0 || "number" == typeof n ? i : n.effect || i) : t;
|
||||
(n = n || {}),
|
||||
"number" == typeof n && (n = { duration: n }),
|
||||
(o = !e.isEmptyObject(n)),
|
||||
(n.complete = a),
|
||||
n.delay && s.delay(n.delay),
|
||||
o && e.effects && e.effects.effect[r]
|
||||
? s[t](n)
|
||||
: r !== t && s[r]
|
||||
? s[r](n.duration, n.easing, a)
|
||||
: s.queue(function (i) {
|
||||
e(this)[t](), a && a.call(s[0]), i();
|
||||
});
|
||||
};
|
||||
}),
|
||||
e.widget,
|
||||
e.widget("ui.accordion", {
|
||||
version: "1.11.4",
|
||||
options: {
|
||||
active: 0,
|
||||
animate: {},
|
||||
collapsible: !1,
|
||||
event: "click",
|
||||
header: "> li > :first-child,> :not(li):even",
|
||||
heightStyle: "auto",
|
||||
icons: { activeHeader: "ui-icon-triangle-1-s", header: "ui-icon-triangle-1-e" },
|
||||
activate: null,
|
||||
beforeActivate: null,
|
||||
},
|
||||
hideProps: {
|
||||
borderTopWidth: "hide",
|
||||
borderBottomWidth: "hide",
|
||||
paddingTop: "hide",
|
||||
paddingBottom: "hide",
|
||||
height: "hide",
|
||||
},
|
||||
showProps: {
|
||||
borderTopWidth: "show",
|
||||
borderBottomWidth: "show",
|
||||
paddingTop: "show",
|
||||
paddingBottom: "show",
|
||||
height: "show",
|
||||
},
|
||||
_create: function () {
|
||||
var t = this.options;
|
||||
(this.prevShow = this.prevHide = e()),
|
||||
this.element.addClass("ui-accordion ui-widget ui-helper-reset").attr("role", "tablist"),
|
||||
t.collapsible || (t.active !== !1 && null != t.active) || (t.active = 0),
|
||||
this._processPanels(),
|
||||
0 > t.active && (t.active += this.headers.length),
|
||||
this._refresh();
|
||||
},
|
||||
_getCreateEventData: function () {
|
||||
return { header: this.active, panel: this.active.length ? this.active.next() : e() };
|
||||
},
|
||||
_createIcons: function () {
|
||||
var t = this.options.icons;
|
||||
t &&
|
||||
(e("<span>")
|
||||
.addClass("ui-accordion-header-icon ui-icon " + t.header)
|
||||
.prependTo(this.headers),
|
||||
this.active.children(".ui-accordion-header-icon").removeClass(t.header).addClass(t.activeHeader),
|
||||
this.headers.addClass("ui-accordion-icons"));
|
||||
},
|
||||
_destroyIcons: function () {
|
||||
this.headers.removeClass("ui-accordion-icons").children(".ui-accordion-header-icon").remove();
|
||||
},
|
||||
_destroy: function () {
|
||||
var e;
|
||||
this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role"),
|
||||
this.headers
|
||||
.removeClass(
|
||||
"ui-accordion-header ui-accordion-header-active ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top"
|
||||
)
|
||||
.removeAttr("role")
|
||||
.removeAttr("aria-expanded")
|
||||
.removeAttr("aria-selected")
|
||||
.removeAttr("aria-controls")
|
||||
.removeAttr("tabIndex")
|
||||
.removeUniqueId(),
|
||||
this._destroyIcons(),
|
||||
(e = this.headers
|
||||
.next()
|
||||
.removeClass(
|
||||
"ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-state-disabled"
|
||||
)
|
||||
.css("display", "")
|
||||
.removeAttr("role")
|
||||
.removeAttr("aria-hidden")
|
||||
.removeAttr("aria-labelledby")
|
||||
.removeUniqueId()),
|
||||
"content" !== this.options.heightStyle && e.css("height", "");
|
||||
},
|
||||
_setOption: function (e, t) {
|
||||
return "active" === e
|
||||
? (this._activate(t), void 0)
|
||||
: ("event" === e &&
|
||||
(this.options.event && this._off(this.headers, this.options.event), this._setupEvents(t)),
|
||||
this._super(e, t),
|
||||
"collapsible" !== e || t || this.options.active !== !1 || this._activate(0),
|
||||
"icons" === e && (this._destroyIcons(), t && this._createIcons()),
|
||||
"disabled" === e &&
|
||||
(this.element.toggleClass("ui-state-disabled", !!t).attr("aria-disabled", t),
|
||||
this.headers.add(this.headers.next()).toggleClass("ui-state-disabled", !!t)),
|
||||
void 0);
|
||||
},
|
||||
_keydown: function (t) {
|
||||
if (!t.altKey && !t.ctrlKey) {
|
||||
var i = e.ui.keyCode,
|
||||
s = this.headers.length,
|
||||
n = this.headers.index(t.target),
|
||||
a = !1;
|
||||
switch (t.keyCode) {
|
||||
case i.RIGHT:
|
||||
case i.DOWN:
|
||||
a = this.headers[(n + 1) % s];
|
||||
break;
|
||||
case i.LEFT:
|
||||
case i.UP:
|
||||
a = this.headers[(n - 1 + s) % s];
|
||||
break;
|
||||
case i.SPACE:
|
||||
case i.ENTER:
|
||||
this._eventHandler(t);
|
||||
break;
|
||||
case i.HOME:
|
||||
a = this.headers[0];
|
||||
break;
|
||||
case i.END:
|
||||
a = this.headers[s - 1];
|
||||
}
|
||||
a && (e(t.target).attr("tabIndex", -1), e(a).attr("tabIndex", 0), a.focus(), t.preventDefault());
|
||||
}
|
||||
},
|
||||
_panelKeyDown: function (t) {
|
||||
t.keyCode === e.ui.keyCode.UP && t.ctrlKey && e(t.currentTarget).prev().focus();
|
||||
},
|
||||
refresh: function () {
|
||||
var t = this.options;
|
||||
this._processPanels(),
|
||||
(t.active === !1 && t.collapsible === !0) || !this.headers.length
|
||||
? ((t.active = !1), (this.active = e()))
|
||||
: t.active === !1
|
||||
? this._activate(0)
|
||||
: this.active.length && !e.contains(this.element[0], this.active[0])
|
||||
? this.headers.length === this.headers.find(".ui-state-disabled").length
|
||||
? ((t.active = !1), (this.active = e()))
|
||||
: this._activate(Math.max(0, t.active - 1))
|
||||
: (t.active = this.headers.index(this.active)),
|
||||
this._destroyIcons(),
|
||||
this._refresh();
|
||||
},
|
||||
_processPanels: function () {
|
||||
var e = this.headers,
|
||||
t = this.panels;
|
||||
(this.headers = this.element
|
||||
.find(this.options.header)
|
||||
.addClass("ui-accordion-header ui-state-default ui-corner-all")),
|
||||
(this.panels = this.headers
|
||||
.next()
|
||||
.addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom")
|
||||
.filter(":not(.ui-accordion-content-active)")
|
||||
.hide()),
|
||||
t && (this._off(e.not(this.headers)), this._off(t.not(this.panels)));
|
||||
},
|
||||
_refresh: function () {
|
||||
var t,
|
||||
i = this.options,
|
||||
s = i.heightStyle,
|
||||
n = this.element.parent();
|
||||
(this.active = this._findActive(i.active)
|
||||
.addClass("ui-accordion-header-active ui-state-active ui-corner-top")
|
||||
.removeClass("ui-corner-all")),
|
||||
this.active.next().addClass("ui-accordion-content-active").show(),
|
||||
this.headers
|
||||
.attr("role", "tab")
|
||||
.each(function () {
|
||||
var t = e(this),
|
||||
i = t.uniqueId().attr("id"),
|
||||
s = t.next(),
|
||||
n = s.uniqueId().attr("id");
|
||||
t.attr("aria-controls", n), s.attr("aria-labelledby", i);
|
||||
})
|
||||
.next()
|
||||
.attr("role", "tabpanel"),
|
||||
this.headers
|
||||
.not(this.active)
|
||||
.attr({ "aria-selected": "false", "aria-expanded": "false", tabIndex: -1 })
|
||||
.next()
|
||||
.attr({ "aria-hidden": "true" })
|
||||
.hide(),
|
||||
this.active.length
|
||||
? this.active
|
||||
.attr({ "aria-selected": "true", "aria-expanded": "true", tabIndex: 0 })
|
||||
.next()
|
||||
.attr({ "aria-hidden": "false" })
|
||||
: this.headers.eq(0).attr("tabIndex", 0),
|
||||
this._createIcons(),
|
||||
this._setupEvents(i.event),
|
||||
"fill" === s
|
||||
? ((t = n.height()),
|
||||
this.element.siblings(":visible").each(function () {
|
||||
var i = e(this),
|
||||
s = i.css("position");
|
||||
"absolute" !== s && "fixed" !== s && (t -= i.outerHeight(!0));
|
||||
}),
|
||||
this.headers.each(function () {
|
||||
t -= e(this).outerHeight(!0);
|
||||
}),
|
||||
this.headers
|
||||
.next()
|
||||
.each(function () {
|
||||
e(this).height(Math.max(0, t - e(this).innerHeight() + e(this).height()));
|
||||
})
|
||||
.css("overflow", "auto"))
|
||||
: "auto" === s &&
|
||||
((t = 0),
|
||||
this.headers
|
||||
.next()
|
||||
.each(function () {
|
||||
t = Math.max(t, e(this).css("height", "").height());
|
||||
})
|
||||
.height(t));
|
||||
},
|
||||
_activate: function (t) {
|
||||
var i = this._findActive(t)[0];
|
||||
i !== this.active[0] &&
|
||||
((i = i || this.active[0]),
|
||||
this._eventHandler({ target: i, currentTarget: i, preventDefault: e.noop }));
|
||||
},
|
||||
_findActive: function (t) {
|
||||
return "number" == typeof t ? this.headers.eq(t) : e();
|
||||
},
|
||||
_setupEvents: function (t) {
|
||||
var i = { keydown: "_keydown" };
|
||||
t &&
|
||||
e.each(t.split(" "), function (e, t) {
|
||||
i[t] = "_eventHandler";
|
||||
}),
|
||||
this._off(this.headers.add(this.headers.next())),
|
||||
this._on(this.headers, i),
|
||||
this._on(this.headers.next(), { keydown: "_panelKeyDown" }),
|
||||
this._hoverable(this.headers),
|
||||
this._focusable(this.headers);
|
||||
},
|
||||
_eventHandler: function (t) {
|
||||
var i = this.options,
|
||||
s = this.active,
|
||||
n = e(t.currentTarget),
|
||||
a = n[0] === s[0],
|
||||
o = a && i.collapsible,
|
||||
r = o ? e() : n.next(),
|
||||
h = s.next(),
|
||||
l = { oldHeader: s, oldPanel: h, newHeader: o ? e() : n, newPanel: r };
|
||||
t.preventDefault(),
|
||||
(a && !i.collapsible) ||
|
||||
this._trigger("beforeActivate", t, l) === !1 ||
|
||||
((i.active = o ? !1 : this.headers.index(n)),
|
||||
(this.active = a ? e() : n),
|
||||
this._toggle(l),
|
||||
s.removeClass("ui-accordion-header-active ui-state-active"),
|
||||
i.icons &&
|
||||
s
|
||||
.children(".ui-accordion-header-icon")
|
||||
.removeClass(i.icons.activeHeader)
|
||||
.addClass(i.icons.header),
|
||||
a ||
|
||||
(n
|
||||
.removeClass("ui-corner-all")
|
||||
.addClass("ui-accordion-header-active ui-state-active ui-corner-top"),
|
||||
i.icons &&
|
||||
n
|
||||
.children(".ui-accordion-header-icon")
|
||||
.removeClass(i.icons.header)
|
||||
.addClass(i.icons.activeHeader),
|
||||
n.next().addClass("ui-accordion-content-active")));
|
||||
},
|
||||
_toggle: function (t) {
|
||||
var i = t.newPanel,
|
||||
s = this.prevShow.length ? this.prevShow : t.oldPanel;
|
||||
this.prevShow.add(this.prevHide).stop(!0, !0),
|
||||
(this.prevShow = i),
|
||||
(this.prevHide = s),
|
||||
this.options.animate ? this._animate(i, s, t) : (s.hide(), i.show(), this._toggleComplete(t)),
|
||||
s.attr({ "aria-hidden": "true" }),
|
||||
s.prev().attr({ "aria-selected": "false", "aria-expanded": "false" }),
|
||||
i.length && s.length
|
||||
? s.prev().attr({ tabIndex: -1, "aria-expanded": "false" })
|
||||
: i.length &&
|
||||
this.headers
|
||||
.filter(function () {
|
||||
return 0 === parseInt(e(this).attr("tabIndex"), 10);
|
||||
})
|
||||
.attr("tabIndex", -1),
|
||||
i
|
||||
.attr("aria-hidden", "false")
|
||||
.prev()
|
||||
.attr({ "aria-selected": "true", "aria-expanded": "true", tabIndex: 0 });
|
||||
},
|
||||
_animate: function (e, t, i) {
|
||||
var s,
|
||||
n,
|
||||
a,
|
||||
o = this,
|
||||
r = 0,
|
||||
h = e.css("box-sizing"),
|
||||
l = e.length && (!t.length || e.index() < t.index()),
|
||||
u = this.options.animate || {},
|
||||
d = (l && u.down) || u,
|
||||
c = function () {
|
||||
o._toggleComplete(i);
|
||||
};
|
||||
return (
|
||||
"number" == typeof d && (a = d),
|
||||
"string" == typeof d && (n = d),
|
||||
(n = n || d.easing || u.easing),
|
||||
(a = a || d.duration || u.duration),
|
||||
t.length
|
||||
? e.length
|
||||
? ((s = e.show().outerHeight()),
|
||||
t.animate(this.hideProps, {
|
||||
duration: a,
|
||||
easing: n,
|
||||
step: function (e, t) {
|
||||
t.now = Math.round(e);
|
||||
},
|
||||
}),
|
||||
e.hide().animate(this.showProps, {
|
||||
duration: a,
|
||||
easing: n,
|
||||
complete: c,
|
||||
step: function (e, i) {
|
||||
(i.now = Math.round(e)),
|
||||
"height" !== i.prop
|
||||
? "content-box" === h && (r += i.now)
|
||||
: "content" !== o.options.heightStyle &&
|
||||
((i.now = Math.round(s - t.outerHeight() - r)), (r = 0));
|
||||
},
|
||||
}),
|
||||
void 0)
|
||||
: t.animate(this.hideProps, a, n, c)
|
||||
: e.animate(this.showProps, a, n, c)
|
||||
);
|
||||
},
|
||||
_toggleComplete: function (e) {
|
||||
var t = e.oldPanel;
|
||||
t
|
||||
.removeClass("ui-accordion-content-active")
|
||||
.prev()
|
||||
.removeClass("ui-corner-top")
|
||||
.addClass("ui-corner-all"),
|
||||
t.length && (t.parent()[0].className = t.parent()[0].className),
|
||||
this._trigger("activate", null, e);
|
||||
},
|
||||
});
|
||||
});
|
||||
BIN
public/bbw/index_files/logo.png
Normal file
BIN
public/bbw/index_files/logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 6.7 KiB |
327
public/bbw/index_files/swipe.min.js
vendored
Normal file
327
public/bbw/index_files/swipe.min.js
vendored
Normal file
|
|
@ -0,0 +1,327 @@
|
|||
/* Swipe 2.0, (c) Brad Birdsall 2013, (c) Leo Feyer 2013-2014, MIT license */
|
||||
function Swipe(t, n) {
|
||||
"use strict";
|
||||
function e() {
|
||||
b = k.children;
|
||||
for (var e = 0; e < b.length; e++) 8 == b[e].nodeType && (k.removeChild(b[e]), --e);
|
||||
(y = b.length),
|
||||
b.length < 2 && (n.continuous = !1),
|
||||
w.transitions &&
|
||||
n.continuous &&
|
||||
b.length < 3 &&
|
||||
(k.appendChild(b[0].cloneNode(!0)),
|
||||
k.appendChild(k.children[1].cloneNode(!0)),
|
||||
(b = k.children),
|
||||
(M = !0)),
|
||||
(T = new Array(b.length)),
|
||||
(L = t.getBoundingClientRect().width || t.offsetWidth),
|
||||
(k.style.width = b.length * L + "px");
|
||||
for (var i = b.length; i--; ) {
|
||||
var o = b[i];
|
||||
(o.style.width = L + "px"),
|
||||
o.setAttribute("data-index", i.toString()),
|
||||
w.transitions && ((o.style.left = i * -L + "px"), f(i, D > i ? -L : i > D ? L : 0, 0));
|
||||
}
|
||||
n.continuous && w.transitions && (f(l(D - 1), -L, 0), f(l(D + 1), L, 0)),
|
||||
w.transitions || (k.style.left = D * -L + "px"),
|
||||
(t.style.visibility = "visible");
|
||||
}
|
||||
function i(t, n, e) {
|
||||
w.addEventListener ? t.addEventListener(n, e, !1) : window.attachEvent && t.attachEvent("on" + n, e);
|
||||
}
|
||||
function o(t) {
|
||||
(t.returnValue = !1), t.preventDefault && t.preventDefault();
|
||||
}
|
||||
function a(t, n, e) {
|
||||
w.addEventListener ? t.removeEventListener(n, e, !1) : window.detachEvent && t.detachEvent("on" + n, e);
|
||||
}
|
||||
function r() {
|
||||
for (var t = n.menu.childNodes, e = 0; e < t.length; e++)
|
||||
if (t[e].className && -1 != t[e].className.indexOf("slider-prev"))
|
||||
(O.prev = function (t) {
|
||||
o(t), E(), d();
|
||||
}),
|
||||
(I.prev = t[e]),
|
||||
i(I.prev, "click", O.prev);
|
||||
else if (t[e].className && -1 != t[e].className.indexOf("slider-next"))
|
||||
(O.next = function (t) {
|
||||
o(t), E(), u();
|
||||
}),
|
||||
(I.next = t[e]),
|
||||
i(I.next, "click", O.next);
|
||||
else if (t[e].className && -1 != t[e].className.indexOf("slider-menu")) {
|
||||
for (var a = 0; y > a; a++) {
|
||||
var r = document.createElement("b");
|
||||
(r.innerHTML = "•"),
|
||||
r.setAttribute("data-index", a.toString()),
|
||||
a == N && (r.className = "active"),
|
||||
i(
|
||||
r,
|
||||
"click",
|
||||
(function (t) {
|
||||
return function (n) {
|
||||
o(n),
|
||||
E(),
|
||||
v(
|
||||
parseInt(
|
||||
this.getAttribute
|
||||
? this.getAttribute("data-index")
|
||||
: t.attributes["data-index"].nodeValue
|
||||
)
|
||||
);
|
||||
};
|
||||
})(r)
|
||||
),
|
||||
t[e].appendChild(r);
|
||||
}
|
||||
I.dots = t[e];
|
||||
}
|
||||
}
|
||||
function s() {
|
||||
for (var t = 0; y > t; t++) {
|
||||
var n = I.dots.children[t];
|
||||
n.className =
|
||||
parseInt(n.getAttribute ? n.getAttribute("data-index") : n.attributes["data-index"].nodeValue) == N
|
||||
? "active"
|
||||
: "";
|
||||
}
|
||||
}
|
||||
function c() {
|
||||
for (var t = I.dots.childNodes; t.length > 0; ) I.dots.removeChild(t[0]);
|
||||
a(I.prev, "click", O.prev), a(I.next, "click", O.next);
|
||||
}
|
||||
function d() {
|
||||
n.continuous ? v(D - 1) : D && v(D - 1);
|
||||
}
|
||||
function u() {
|
||||
n.continuous ? v(D + 1) : D < b.length - 1 && v(D + 1);
|
||||
}
|
||||
function l(t) {
|
||||
return (b.length + (t % b.length)) % b.length;
|
||||
}
|
||||
function v(t, e) {
|
||||
if (D != t) {
|
||||
if (w.transitions) {
|
||||
var i = Math.abs(D - t) / (D - t);
|
||||
if (n.continuous) {
|
||||
var o = i;
|
||||
(i = -T[l(t)] / L), i !== o && (t = -i * b.length + t);
|
||||
}
|
||||
for (var a = Math.abs(D - t) - 1; a--; ) f(l((t > D ? t : D) - a - 1), L * i, 0);
|
||||
(t = l(t)), f(D, L * i, e || z), f(t, 0, e || z), n.continuous && f(l(t - i), -(L * i), 0);
|
||||
} else (t = l(t)), m(D * -L, t * -L, e || z);
|
||||
(D = t), (N = M ? D % 2 : D), n.menu && s(), g(n.callback && n.callback(N, b[D]));
|
||||
}
|
||||
}
|
||||
function f(t, n, e) {
|
||||
h(t, n, e), (T[t] = n);
|
||||
}
|
||||
function h(t, n, e) {
|
||||
var i = b[t],
|
||||
o = i && i.style;
|
||||
o &&
|
||||
((o.webkitTransitionDuration =
|
||||
o.MozTransitionDuration =
|
||||
o.msTransitionDuration =
|
||||
o.OTransitionDuration =
|
||||
o.transitionDuration =
|
||||
e + "ms"),
|
||||
(o.webkitTransform = "translate(" + n + "px,0)translateZ(0)"),
|
||||
(o.msTransform = o.MozTransform = o.OTransform = "translateX(" + n + "px)"));
|
||||
}
|
||||
function m(t, e, i) {
|
||||
if (!i) return void (k.style.left = e + "px");
|
||||
var o = +new Date(),
|
||||
a = setInterval(function () {
|
||||
var r = +new Date() - o;
|
||||
return r > i
|
||||
? ((k.style.left = e + "px"),
|
||||
S && p(),
|
||||
n.transitionEnd && n.transitionEnd.call(event, N, b[D]),
|
||||
void clearInterval(a))
|
||||
: void (k.style.left = (e - t) * (Math.floor((r / i) * 100) / 100) + t + "px");
|
||||
}, 4);
|
||||
}
|
||||
function p() {
|
||||
A = setTimeout(u, S);
|
||||
}
|
||||
function E() {
|
||||
(S = 0), clearTimeout(A);
|
||||
}
|
||||
var x = function () {},
|
||||
g = function (t) {
|
||||
setTimeout(t || x, 0);
|
||||
},
|
||||
w = {
|
||||
addEventListener: !!window.addEventListener,
|
||||
touch: "ontouchstart" in window || (window.DocumentTouch && document instanceof DocumentTouch),
|
||||
transitions: (function (t) {
|
||||
var n = ["transitionProperty", "WebkitTransition", "MozTransition", "OTransition", "msTransition"];
|
||||
for (var e in n) if (void 0 !== t.style[n[e]]) return !0;
|
||||
return !1;
|
||||
})(document.createElement("swipe")),
|
||||
};
|
||||
if (t) {
|
||||
var b,
|
||||
T,
|
||||
L,
|
||||
y,
|
||||
k = t.children[0];
|
||||
n = n || {};
|
||||
var D = parseInt(n.startSlide, 10) || 0,
|
||||
N = D,
|
||||
M = !1,
|
||||
z = n.speed || 300;
|
||||
n.continuous = void 0 !== n.continuous ? n.continuous : !0;
|
||||
var A,
|
||||
C,
|
||||
I = {},
|
||||
O = {},
|
||||
S = n.auto || 0,
|
||||
P = {},
|
||||
V = {},
|
||||
X = {
|
||||
handleEvent: function (t) {
|
||||
switch (t.type) {
|
||||
case "touchstart":
|
||||
this.start(t);
|
||||
break;
|
||||
case "touchmove":
|
||||
this.move(t);
|
||||
break;
|
||||
case "touchend":
|
||||
g(this.end(t));
|
||||
break;
|
||||
case "webkitTransitionEnd":
|
||||
case "msTransitionEnd":
|
||||
case "oTransitionEnd":
|
||||
case "otransitionend":
|
||||
case "transitionend":
|
||||
g(this.transitionEnd(t));
|
||||
break;
|
||||
case "resize":
|
||||
g(e);
|
||||
}
|
||||
n.stopPropagation && t.stopPropagation();
|
||||
},
|
||||
start: function (t) {
|
||||
var n = t.touches[0];
|
||||
(P = { x: n.pageX, y: n.pageY, time: +new Date() }),
|
||||
(C = void 0),
|
||||
(V = {}),
|
||||
k.addEventListener("touchmove", this, !1),
|
||||
k.addEventListener("touchend", this, !1);
|
||||
},
|
||||
move: function (t) {
|
||||
if (!(t.touches.length > 1 || (t.scale && 1 !== t.scale))) {
|
||||
n.disableScroll && t.preventDefault();
|
||||
var e = t.touches[0];
|
||||
(V = { x: e.pageX - P.x, y: e.pageY - P.y }),
|
||||
"undefined" == typeof C && (C = !!(C || Math.abs(V.x) < Math.abs(V.y))),
|
||||
C ||
|
||||
(t.preventDefault(),
|
||||
E(),
|
||||
n.continuous
|
||||
? (h(l(D - 1), V.x + T[l(D - 1)], 0),
|
||||
h(D, V.x + T[D], 0),
|
||||
h(l(D + 1), V.x + T[l(D + 1)], 0))
|
||||
: ((V.x =
|
||||
V.x /
|
||||
((!D && V.x > 0) || (D == b.length - 1 && V.x < 0)
|
||||
? Math.abs(V.x) / L + 1
|
||||
: 1)),
|
||||
h(D - 1, V.x + T[D - 1], 0),
|
||||
h(D, V.x + T[D], 0),
|
||||
h(D + 1, V.x + T[D + 1], 0)));
|
||||
}
|
||||
},
|
||||
end: function () {
|
||||
var t = +new Date() - P.time,
|
||||
e = (Number(t) < 250 && Math.abs(V.x) > 20) || Math.abs(V.x) > L / 2,
|
||||
i = (!D && V.x > 0) || (D == b.length - 1 && V.x < 0);
|
||||
n.continuous && (i = !1);
|
||||
var o = V.x < 0;
|
||||
C ||
|
||||
(e && !i
|
||||
? (o
|
||||
? (n.continuous ? (f(l(D - 1), -L, 0), f(l(D + 2), L, 0)) : f(D - 1, -L, 0),
|
||||
f(D, T[D] - L, z),
|
||||
f(l(D + 1), T[l(D + 1)] - L, z),
|
||||
(D = l(D + 1)))
|
||||
: (n.continuous ? (f(l(D + 1), L, 0), f(l(D - 2), -L, 0)) : f(D + 1, L, 0),
|
||||
f(D, T[D] + L, z),
|
||||
f(l(D - 1), T[l(D - 1)] + L, z),
|
||||
(D = l(D - 1))),
|
||||
(N = M ? D % 2 : D),
|
||||
n.menu && s(),
|
||||
n.callback && n.callback(N, b[D]))
|
||||
: n.continuous
|
||||
? (f(l(D - 1), -L, z), f(D, 0, z), f(l(D + 1), L, z))
|
||||
: (f(D - 1, -L, z), f(D, 0, z), f(D + 1, L, z))),
|
||||
k.removeEventListener("touchmove", X, !1),
|
||||
k.removeEventListener("touchend", X, !1);
|
||||
},
|
||||
transitionEnd: function (t) {
|
||||
parseInt(t.target.getAttribute("data-index"), 10) == D &&
|
||||
(S && p(), n.transitionEnd && n.transitionEnd.call(t, N, b[D]));
|
||||
},
|
||||
};
|
||||
return (
|
||||
e(),
|
||||
n.menu && r(),
|
||||
S && p(),
|
||||
w.addEventListener
|
||||
? (w.touch && k.addEventListener("touchstart", X, !1),
|
||||
w.transitions &&
|
||||
(k.addEventListener("webkitTransitionEnd", X, !1),
|
||||
k.addEventListener("msTransitionEnd", X, !1),
|
||||
k.addEventListener("oTransitionEnd", X, !1),
|
||||
k.addEventListener("otransitionend", X, !1),
|
||||
k.addEventListener("transitionend", X, !1)),
|
||||
window.addEventListener("resize", X, !1))
|
||||
: (window.onresize = function () {
|
||||
e();
|
||||
}),
|
||||
{
|
||||
setup: function () {
|
||||
e();
|
||||
},
|
||||
slide: function (t, n) {
|
||||
E(), v(t, n);
|
||||
},
|
||||
prev: function () {
|
||||
E(), d();
|
||||
},
|
||||
next: function () {
|
||||
E(), u();
|
||||
},
|
||||
stop: function () {
|
||||
E();
|
||||
},
|
||||
getPos: function () {
|
||||
return N;
|
||||
},
|
||||
getNumSlides: function () {
|
||||
return y;
|
||||
},
|
||||
kill: function () {
|
||||
E(), (k.style.width = ""), (k.style.left = "");
|
||||
for (var t = b.length; t--; ) {
|
||||
var n = b[t];
|
||||
(n.style.width = ""), (n.style.left = ""), w.transitions && h(t, 0, 0);
|
||||
}
|
||||
w.addEventListener
|
||||
? (k.removeEventListener("touchstart", X, !1),
|
||||
k.removeEventListener("webkitTransitionEnd", X, !1),
|
||||
k.removeEventListener("msTransitionEnd", X, !1),
|
||||
k.removeEventListener("oTransitionEnd", X, !1),
|
||||
k.removeEventListener("otransitionend", X, !1),
|
||||
k.removeEventListener("transitionend", X, !1),
|
||||
window.removeEventListener("resize", X, !1))
|
||||
: (window.onresize = null),
|
||||
c();
|
||||
},
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
@ -1,21 +1,18 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<meta name="theme-color" content="#000000" />
|
||||
<meta
|
||||
name="description"
|
||||
content="Web site created using create-react-app"
|
||||
/>
|
||||
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
|
||||
<!--
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<meta name="theme-color" content="#000000" />
|
||||
<meta name="description" content="Web site created using create-react-app" />
|
||||
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
|
||||
<!--
|
||||
manifest.json provides metadata used when your web app is installed on a
|
||||
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
|
||||
-->
|
||||
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
|
||||
<!--
|
||||
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
|
||||
<!--
|
||||
Notice the use of %PUBLIC_URL% in the tags above.
|
||||
It will be replaced with the URL of the `public` folder during the build.
|
||||
Only files inside the `public` folder can be referenced from the HTML.
|
||||
|
|
@ -24,12 +21,12 @@
|
|||
work correctly both with client-side routing and a non-root public URL.
|
||||
Learn how to configure a non-root public URL by running `npm run build`.
|
||||
-->
|
||||
<title>React App</title>
|
||||
</head>
|
||||
<body>
|
||||
<noscript>You need to enable JavaScript to run this app.</noscript>
|
||||
<div id="root"></div>
|
||||
<!--
|
||||
<title>React App</title>
|
||||
</head>
|
||||
<body>
|
||||
<noscript>You need to enable JavaScript to run this app.</noscript>
|
||||
<div id="root"></div>
|
||||
<!--
|
||||
This HTML file is a template.
|
||||
If you open it directly in the browser, you will see an empty page.
|
||||
|
||||
|
|
@ -38,6 +35,5 @@
|
|||
|
||||
To begin the development, run `npm start` or `yarn start`.
|
||||
To create a production bundle, use `npm run build` or `yarn build`.
|
||||
-->
|
||||
</body>
|
||||
--></body>
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -1,25 +1,25 @@
|
|||
{
|
||||
"short_name": "React App",
|
||||
"name": "Create React App Sample",
|
||||
"icons": [
|
||||
{
|
||||
"src": "favicon.ico",
|
||||
"sizes": "64x64 32x32 24x24 16x16",
|
||||
"type": "image/x-icon"
|
||||
},
|
||||
{
|
||||
"src": "logo192.png",
|
||||
"type": "image/png",
|
||||
"sizes": "192x192"
|
||||
},
|
||||
{
|
||||
"src": "logo512.png",
|
||||
"type": "image/png",
|
||||
"sizes": "512x512"
|
||||
}
|
||||
],
|
||||
"start_url": ".",
|
||||
"display": "standalone",
|
||||
"theme_color": "#000000",
|
||||
"background_color": "#ffffff"
|
||||
"short_name": "React App",
|
||||
"name": "Create React App Sample",
|
||||
"icons": [
|
||||
{
|
||||
"src": "favicon.ico",
|
||||
"sizes": "64x64 32x32 24x24 16x16",
|
||||
"type": "image/x-icon"
|
||||
},
|
||||
{
|
||||
"src": "logo192.png",
|
||||
"type": "image/png",
|
||||
"sizes": "192x192"
|
||||
},
|
||||
{
|
||||
"src": "logo512.png",
|
||||
"type": "image/png",
|
||||
"sizes": "512x512"
|
||||
}
|
||||
],
|
||||
"start_url": ".",
|
||||
"display": "standalone",
|
||||
"theme_color": "#000000",
|
||||
"background_color": "#ffffff"
|
||||
}
|
||||
|
|
|
|||
25
src/App.tsx
25
src/App.tsx
|
|
@ -1,5 +1,5 @@
|
|||
import React, { useEffect, useRef, useState } from "react";
|
||||
import { Button, Card, Container, FormControl, FormGroup, FormLabel, Row, Spinner } from "react-bootstrap";
|
||||
import { Button, Card, Container, Form, FormControl, FormGroup, FormLabel, Row, Spinner } from "react-bootstrap";
|
||||
import client from "./ApiClient";
|
||||
import { Band, Option } from "./Types";
|
||||
import ModalBand from "./ModalBand";
|
||||
|
|
@ -21,38 +21,41 @@ function App() {
|
|||
}
|
||||
}, [bandQuery]);
|
||||
|
||||
const search = () => {
|
||||
const search = (e: any) => {
|
||||
const input = searchRef.current?.value;
|
||||
if (!input) {
|
||||
return;
|
||||
}
|
||||
history.push(`/${encodeURIComponent(input)}`);
|
||||
setBands(null);
|
||||
e.preventDefault();
|
||||
};
|
||||
|
||||
return (
|
||||
<Container>
|
||||
<Row>
|
||||
<FormGroup>
|
||||
<FormLabel>Search Band</FormLabel>
|
||||
<FormControl name="searchBand" type="text" ref={searchRef} />
|
||||
</FormGroup>
|
||||
<Button onClick={search}>Search</Button>
|
||||
<Form onSubmit={search}>
|
||||
<FormGroup controlId="searchBand">
|
||||
<FormLabel>Search Band</FormLabel>
|
||||
<FormControl name="searchBand" type="text" ref={searchRef} />
|
||||
</FormGroup>
|
||||
<Button type="submit">Search</Button>
|
||||
</Form>
|
||||
</Row>
|
||||
<Row>
|
||||
<Row aria-live="polite">
|
||||
{selectedBand && <ModalBand onClose={() => setSelectedBand(null)} band={selectedBand} />}
|
||||
{bands ? (
|
||||
bands.map((band) => (
|
||||
<Card onClick={() => setSelectedBand(band)} style={{ width: "18rem" }} key={band.uid}>
|
||||
<Card.Img variant="top" src={band.url_for_image_original} />
|
||||
<Card.Img variant="top" src={band.url_for_image_original} alt={band.name} />
|
||||
<Card.Title>{band.name}</Card.Title>
|
||||
<Card.Body>{getBioText(band, 200)}</Card.Body>
|
||||
</Card>
|
||||
))
|
||||
) : bandQuery ? (
|
||||
<></>
|
||||
) : (
|
||||
<Spinner animation="border" />
|
||||
) : (
|
||||
<></>
|
||||
)}
|
||||
</Row>
|
||||
</Container>
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ const axiosInstance = axios.create({
|
|||
baseURL: "https://api.srgssr.ch/mx3/v2",
|
||||
headers: {
|
||||
"content-type": "application/json",
|
||||
Authorization: "Bearer ELBiWACfIgGyJTHtcuGHT6zMQJ1o",
|
||||
Authorization: "Bearer HPM3tl4opFR2KPBU3BQSReRn3Egd",
|
||||
},
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue