mirror of
https://github.com/ryanamay/pint.git
synced 2024-09-20 01:50:34 +00:00
Merge branch 'dev' of https://github.com/fuwaa/pint into dev
This commit is contained in:
commit
bd9e58a5e1
5 changed files with 20230 additions and 10 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
341
public/pint-newinstall/assets/css/styles.min.css
vendored
341
public/pint-newinstall/assets/css/styles.min.css
vendored
File diff suppressed because one or more lines are too long
5588
public/pint-newinstall/assets/js/jquery.min.js
vendored
5588
public/pint-newinstall/assets/js/jquery.min.js
vendored
File diff suppressed because one or more lines are too long
57
public/pint-newinstall/assets/js/script.min.js
vendored
57
public/pint-newinstall/assets/js/script.min.js
vendored
|
@ -1 +1,56 @@
|
|||
!function(){"use strict";var e=document.querySelector("#mainNav");if(e){var n=function(){(void 0!==window.pageYOffset?window.pageYOffset:(document.documentElement||document.body.parentNode||document.body).scrollTop)>100?e.classList.add("navbar-shrink"):e.classList.remove("navbar-shrink")};n(),document.addEventListener("scroll",n)}document.getElementsByClassName("popup-gallery").length>0&&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()}}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)||.5;r.bottom>0&&r.top<window.innerHeight&&t.push({speed:i,node:e[a]})}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)"}}}()}();
|
||||
!(function () {
|
||||
"use strict";
|
||||
var e = document.querySelector("#mainNav");
|
||||
if (e) {
|
||||
var n = function () {
|
||||
(void 0 !== window.pageYOffset
|
||||
? window.pageYOffset
|
||||
: (
|
||||
document.documentElement ||
|
||||
document.body.parentNode ||
|
||||
document.body
|
||||
).scrollTop) > 100
|
||||
? e.classList.add("navbar-shrink")
|
||||
: e.classList.remove("navbar-shrink");
|
||||
};
|
||||
n(), document.addEventListener("scroll", n);
|
||||
}
|
||||
document.getElementsByClassName("popup-gallery").length > 0 &&
|
||||
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();
|
||||
}
|
||||
}
|
||||
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] });
|
||||
}
|
||||
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)";
|
||||
}
|
||||
}
|
||||
})();
|
||||
})();
|
||||
|
|
Loading…
Reference in a new issue