2022-08-03 04:29:35 +00:00
|
|
|
!(function () {
|
2022-08-03 04:29:25 +00:00
|
|
|
"use strict";
|
|
|
|
var e = document.querySelector("#mainNav");
|
|
|
|
if (e) {
|
2022-08-03 04:29:35 +00:00
|
|
|
var n = function () {
|
2022-08-03 04:29:25 +00:00
|
|
|
(void 0 !== window.pageYOffset
|
2022-08-03 04:29:35 +00:00
|
|
|
? window.pageYOffset
|
|
|
|
: (
|
|
|
|
document.documentElement ||
|
|
|
|
document.body.parentNode ||
|
|
|
|
document.body
|
|
|
|
).scrollTop) > 100
|
|
|
|
? e.classList.add("navbar-shrink")
|
|
|
|
: e.classList.remove("navbar-shrink");
|
2022-08-03 04:29:25 +00:00
|
|
|
};
|
2022-08-03 04:29:35 +00:00
|
|
|
n(), document.addEventListener("scroll", n);
|
2022-08-03 04:29:25 +00:00
|
|
|
}
|
|
|
|
document.getElementsByClassName("popup-gallery").length > 0 &&
|
2022-08-03 04:29:35 +00:00
|
|
|
baguetteBox.run(".popup-gallery", { animation: "slideIn" }),
|
|
|
|
(function () {
|
|
|
|
if (
|
|
|
|
"requestAnimationFrame" in window &&
|
|
|
|
!/Mobile|Android/.test(navigator.userAgent)
|
|
|
|
) {
|
|
|
|
var e = document.querySelectorAll("[data-bss-parallax]");
|
|
|
|
if (e.length) {
|
|
|
|
var n,
|
|
|
|
t = [];
|
|
|
|
window.addEventListener("scroll", a),
|
|
|
|
window.addEventListener("resize", a),
|
|
|
|
a();
|
2022-08-03 04:29:25 +00:00
|
|
|
}
|
2022-08-03 04:29:35 +00:00
|
|
|
}
|
|
|
|
function a() {
|
|
|
|
t.length = 0;
|
|
|
|
for (var a = 0; a < e.length; a++) {
|
|
|
|
var r = e[a].getBoundingClientRect(),
|
|
|
|
i =
|
|
|
|
parseFloat(e[a].getAttribute("data-bss-parallax-speed"), 10) ||
|
|
|
|
0.5;
|
|
|
|
r.bottom > 0 &&
|
|
|
|
r.top < window.innerHeight &&
|
|
|
|
t.push({ speed: i, node: e[a] });
|
2022-08-03 04:29:25 +00:00
|
|
|
}
|
2022-08-03 04:29:35 +00:00
|
|
|
cancelAnimationFrame(n), t.length && (n = requestAnimationFrame(o));
|
|
|
|
}
|
|
|
|
function o() {
|
|
|
|
for (var e = 0; e < t.length; e++) {
|
|
|
|
var n = t[e].node,
|
|
|
|
a = t[e].speed;
|
|
|
|
n.style.transform =
|
|
|
|
"translate3d(0, " + -window.scrollY * a + "px, 0)";
|
2022-08-03 04:29:25 +00:00
|
|
|
}
|
2022-08-03 04:29:35 +00:00
|
|
|
}
|
|
|
|
})();
|
|
|
|
})();
|