@xwadex/fesd 0.0.14-re.83 → 0.0.14-re.85
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,7 +9,7 @@ var h = (n, i, t) => {
|
|
9
9
|
};
|
10
10
|
var d = (n, i, t) => (fs(n, i, "access private method"), t);
|
11
11
|
import { OverlayScrollbars as Me } from "overlayscrollbars";
|
12
|
-
import
|
12
|
+
import v from "jquery";
|
13
13
|
import "./vendor-bundle.js";
|
14
14
|
import "validator";
|
15
15
|
import "flatpickr";
|
@@ -27,7 +27,7 @@ const Y = {
|
|
27
27
|
videoTarget: "video-template",
|
28
28
|
videoTargetRoute: "https://cdn.wdd.idv.tw/fesd/video4_lightbox.html",
|
29
29
|
videoVimeoHash: null,
|
30
|
-
videoHighQuality:
|
30
|
+
videoHighQuality: "off",
|
31
31
|
videoStartTime: 0
|
32
32
|
},
|
33
33
|
ATTRS: {
|
@@ -365,7 +365,7 @@ const Y = {
|
|
365
365
|
return -t * ((n = n / e - 1) * n * n * n - 1) + i;
|
366
366
|
}
|
367
367
|
}, we = (n, i) => {
|
368
|
-
const { target: t, container: e, spacer: s, speed: o, gap: a, easing: r, direction: l } = n, c = l === "horizontal", u = c ? "scrollLeft" : "scrollTop", p = c ? "left" : "top", m = c ? "width" : "height", g = w(e) ? A(e) : document.scrollingElement,
|
368
|
+
const { target: t, container: e, spacer: s, speed: o, gap: a, easing: r, direction: l } = n, c = l === "horizontal", u = c ? "scrollLeft" : "scrollTop", p = c ? "left" : "top", m = c ? "width" : "height", g = w(e) ? A(e) : document.scrollingElement, f = g[u], b = w(t) ? A(t).getBoundingClientRect()[p] : 0 - f, y = w(s) ? A(s).getBoundingClientRect()[m] : 0, H = b - a - y, G = 15;
|
369
369
|
let S = 0;
|
370
370
|
if (H === 0)
|
371
371
|
return;
|
@@ -376,7 +376,7 @@ const Y = {
|
|
376
376
|
X("beforeScroll");
|
377
377
|
const Pe = () => {
|
378
378
|
S += G;
|
379
|
-
const R = Ls[r](S,
|
379
|
+
const R = Ls[r](S, f, H, o);
|
380
380
|
g[u] = R, S < o && requestAnimationFrame(Pe), S >= o && X("afterScroll");
|
381
381
|
};
|
382
382
|
requestAnimationFrame(Pe);
|
@@ -674,13 +674,13 @@ customElements.define("modern-modal", ti);
|
|
674
674
|
const _s = (n, i) => {
|
675
675
|
const t = n === window ? n.innerHeight : n.getBoundingClientRect().height, e = n === window ? 0 : n.getBoundingClientRect().top;
|
676
676
|
i.forEach((s) => {
|
677
|
-
const { class: o, delay: a, start: r, end: l, repeat: c, instance: u } = s.aost, { top: p, bottom: m } = s.getBoundingClientRect(), g = t * (r / 100),
|
678
|
-
if (p - e <= g && m - e >=
|
677
|
+
const { class: o, delay: a, start: r, end: l, repeat: c, instance: u } = s.aost, { top: p, bottom: m } = s.getBoundingClientRect(), g = t * (r / 100), f = t * (l / 100);
|
678
|
+
if (p - e <= g && m - e >= f && s.offsetParent)
|
679
679
|
setTimeout(() => {
|
680
680
|
s.classList.add(o);
|
681
681
|
}, a);
|
682
682
|
else {
|
683
|
-
const y = s.classList.contains(o) && c === "down" && p - e >= g || c === "up" && m - e <=
|
683
|
+
const y = s.classList.contains(o) && c === "down" && p - e >= g || c === "up" && m - e <= f || c === !0;
|
684
684
|
setTimeout(() => {
|
685
685
|
y && s.classList.remove(o);
|
686
686
|
}, a);
|
@@ -859,18 +859,18 @@ function Ei(n) {
|
|
859
859
|
const i = [];
|
860
860
|
n && n.forEach((t) => {
|
861
861
|
t instanceof HTMLElement ? i.push(t) : typeof t == "string" && i.push(...document.querySelectorAll(`${t}`));
|
862
|
-
}),
|
862
|
+
}), v("html").addClass("scrollLock"), vs(i);
|
863
863
|
}
|
864
864
|
function Ai(n) {
|
865
865
|
const i = [];
|
866
866
|
n && n.forEach((t) => {
|
867
867
|
t instanceof HTMLElement ? i.push(t) : typeof t == "string" && i.push(...document.querySelectorAll(`${t}`));
|
868
|
-
}),
|
868
|
+
}), v("html").removeClass("scrollLock"), bs(i);
|
869
869
|
}
|
870
870
|
async function fn(n = 0) {
|
871
|
-
if (
|
871
|
+
if (v(".loading-wrapper").length)
|
872
872
|
return;
|
873
|
-
|
873
|
+
v("body").append(`
|
874
874
|
<div class="loading-wrapper">
|
875
875
|
<div class="icon-box">
|
876
876
|
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid"><path d="M10 50A40 40 0 0 0 90 50A40 42 0 0 1 10 50" fill="#ffffff" stroke="none">
|
@@ -880,13 +880,13 @@ async function fn(n = 0) {
|
|
880
880
|
</svg>
|
881
881
|
</div>
|
882
882
|
</div>
|
883
|
-
`),
|
883
|
+
`), v(".loading-wrapper").delay(n).fadeIn(300).promise().done(function() {
|
884
884
|
Ei();
|
885
885
|
});
|
886
886
|
}
|
887
887
|
function vn() {
|
888
|
-
|
889
|
-
|
888
|
+
v(".loading-wrapper").fadeOut(300).promise().done(function() {
|
889
|
+
v(".loading-wrapper").remove(), Ai();
|
890
890
|
});
|
891
891
|
}
|
892
892
|
function bn(n, i) {
|
@@ -899,7 +899,7 @@ function Cs() {
|
|
899
899
|
}
|
900
900
|
function yn(n, i = () => {
|
901
901
|
}) {
|
902
|
-
|
902
|
+
v(`[data-tab-content=${n}]`).fadeIn(function() {
|
903
903
|
typeof i == "function" && i();
|
904
904
|
}).siblings("[data-tab-content]").hide(), Cs();
|
905
905
|
}
|
@@ -940,13 +940,13 @@ function En() {
|
|
940
940
|
};
|
941
941
|
}
|
942
942
|
function An(n, i) {
|
943
|
-
|
944
|
-
|
943
|
+
v(n).on("click", function() {
|
944
|
+
v(this).toggleClass(i);
|
945
945
|
});
|
946
946
|
}
|
947
947
|
function Ln(n, i) {
|
948
|
-
|
949
|
-
|
948
|
+
v(n).on("click", function() {
|
949
|
+
v(n).not(this).removeClass(i), v(this).addClass(i);
|
950
950
|
});
|
951
951
|
}
|
952
952
|
function Hs(n, i = 250) {
|
@@ -968,12 +968,12 @@ function Sn(n, i = 250) {
|
|
968
968
|
};
|
969
969
|
}
|
970
970
|
function Dn() {
|
971
|
-
window._g.interval = [],
|
972
|
-
const e = Number(
|
971
|
+
window._g.interval = [], v(".countdown").each((i, t) => {
|
972
|
+
const e = Number(v(t).attr("data-seconds")) + 1;
|
973
973
|
let s = Math.floor(e / 60) + ":" + e % 60;
|
974
974
|
window._g.interval[i] = setInterval(function() {
|
975
975
|
var o = s.split(":"), a = parseInt(o[0], 10), r = parseInt(o[1], 10);
|
976
|
-
--r, a = r < 0 ? --a : a, a = a < 10 ? a = "0" + a : a, a == 0 && r == 0 && clearInterval(window._g.interval[i]), r = r < 0 ? 59 : r, r = r < 10 ? "0" + r : r,
|
976
|
+
--r, a = r < 0 ? --a : a, a = a < 10 ? a = "0" + a : a, a == 0 && r == 0 && clearInterval(window._g.interval[i]), r = r < 0 ? 59 : r, r = r < 10 ? "0" + r : r, v(t).html(a + ":" + r), s = a + ":" + r;
|
977
977
|
}, 1e3);
|
978
978
|
});
|
979
979
|
}
|
@@ -992,13 +992,13 @@ function kn() {
|
|
992
992
|
n(), window.addEventListener("resize", Hs(n));
|
993
993
|
}
|
994
994
|
function $n(n, i, t, e, s) {
|
995
|
-
const o = this, r =
|
995
|
+
const o = this, r = v(n).html().split("<br>");
|
996
996
|
let l = "", c = 0;
|
997
997
|
r.forEach((u, p) => {
|
998
|
-
p !== 0 && (l += "<br>"), u.split("").forEach((g,
|
999
|
-
i ? (
|
998
|
+
p !== 0 && (l += "<br>"), u.split("").forEach((g, f) => {
|
999
|
+
i ? (f === 0 && (l += '<span class="letter-wrap" style="display: inline-block">'), g === " " ? l += '</span> <span class="letter-wrap" style="display: inline-block">' : (l += `<span class="letter"${s || t ? ` style="${s ? `transition: ${o.formatFloat(Math.random(), 2) * s}s;` : ""}${t ? t === "random" ? `transition-delay: ${o.formatFloat(Math.random(), 2)}s;` : `transition-delay: ${t + c * e}s;` : ""}"` : ""}>${g}</span>`, c++), f === u.length - 1 && (l += "</span>")) : g === " " ? l += " " : (l += `<span class="letter"${s || t ? ` style="${s ? `transition: ${o.formatFloat(Math.random(), 2) * s}s;` : ""}${t ? t === "random" ? `transition-delay: ${o.formatFloat(Math.random(), 2)}s;` : `transition-delay: ${t + c * e}s;` : ""}"` : ""}>${g}</span>`, c++);
|
1000
1000
|
});
|
1001
|
-
}),
|
1001
|
+
}), v(n).html(l);
|
1002
1002
|
}
|
1003
1003
|
function xn(n, i) {
|
1004
1004
|
const t = Math.pow(10, i);
|
@@ -1021,7 +1021,7 @@ function Cn(n) {
|
|
1021
1021
|
}
|
1022
1022
|
function Hn(n, i) {
|
1023
1023
|
const t = n.$el, e = n.params.grid.rows, s = i || n.params.slidesPerView * e;
|
1024
|
-
(n.loopedSlides ? n.slides.length - n.loopedSlides * 2 : n.slides.length) <= s ? (t.addClass("swiper-no-swiping"),
|
1024
|
+
(n.loopedSlides ? n.slides.length - n.loopedSlides * 2 : n.slides.length) <= s ? (t.addClass("swiper-no-swiping"), v(n.params.navigation.nextEl).hide(), v(n.params.navigation.prevEl).hide(), v(n.params.pagination.el).hide(), n.params.autoplay.enabled = !1, n.autoplay.stop()) : (t.removeClass("swiper-no-swiping"), v(n.params.navigation.nextEl).show(), v(n.params.navigation.prevEl).show(), v(n.params.pagination.el).show(), n.params.autoplay.enabled && n.autoplay.start());
|
1025
1025
|
}
|
1026
1026
|
function Mn(n) {
|
1027
1027
|
n.el.querySelectorAll("img.detect-shade").forEach((i) => {
|
@@ -1031,36 +1031,36 @@ function Mn(n) {
|
|
1031
1031
|
});
|
1032
1032
|
}
|
1033
1033
|
function qn(n) {
|
1034
|
-
const i = n.el, t =
|
1035
|
-
n.autoplay.stop(),
|
1034
|
+
const i = n.el, t = v(i).find(".swiper-slide-active"), e = v(t).find("video").get(0), s = v(i).find(".swiper-slide video");
|
1035
|
+
n.autoplay.stop(), v(e).off("ended"), e ? (s.each((o, a) => {
|
1036
1036
|
a.currentTime = 0;
|
1037
|
-
}),
|
1037
|
+
}), v(e).on("ended", function() {
|
1038
1038
|
n.slideNext();
|
1039
1039
|
}), e.play()) : n.params.autoplay.enabled && n.autoplay.start();
|
1040
1040
|
}
|
1041
1041
|
function In() {
|
1042
|
-
|
1043
|
-
const t =
|
1042
|
+
v(".number-grow").each(function(n, i) {
|
1043
|
+
const t = v(i), o = t.attr("data-num").replace(/(\d)(?=(?:\d{3})+$)/g, "$1,").split(""), a = () => {
|
1044
1044
|
let r = "";
|
1045
1045
|
for (var l = 0; l <= 9; l++)
|
1046
1046
|
r += String(l) + "<br>";
|
1047
1047
|
return r;
|
1048
1048
|
};
|
1049
|
-
|
1049
|
+
v(o).each(function(r, l) {
|
1050
1050
|
const c = () => l !== "," ? `<div class="num" data-final-num="${l}"><div><br>${a()}<br>${a()}</div></div>` : `<div class="comma">${l}</div>`;
|
1051
1051
|
t.append(c);
|
1052
1052
|
});
|
1053
1053
|
});
|
1054
1054
|
}
|
1055
1055
|
function On() {
|
1056
|
-
|
1057
|
-
const t =
|
1056
|
+
v(".letter-grow").each(function(n, i) {
|
1057
|
+
const t = v(i), s = t.attr("data-letter").split(""), o = () => {
|
1058
1058
|
let a = "";
|
1059
1059
|
for (let r = 65; r <= 90; r++)
|
1060
1060
|
a += String.fromCharCode(r) + "<br>";
|
1061
1061
|
return a;
|
1062
1062
|
};
|
1063
|
-
|
1063
|
+
v(s).each(function(a, r) {
|
1064
1064
|
const l = `<div class="letter" data-final-letter="${r}"><div><br>${o()}<br>${o()}</div></div>`;
|
1065
1065
|
t.append(l);
|
1066
1066
|
});
|
@@ -1121,8 +1121,8 @@ V = new WeakSet(), Se = function() {
|
|
1121
1121
|
i.classList.add("video4-cover"), s.querySelector("img") || (s.insertAdjacentHTML(E.prepend, '<picture><source srcset="" type="image/webp"><source srcset="" type="image/jpeg"><img src="" alt></picture>'), T("video4", "若啟用 [videoCover] 且選擇 onBox 模式必須於 video-target 內放置 img 結構,若無結構則自動加入圖片結構"));
|
1122
1122
|
const g = s.querySelector("img");
|
1123
1123
|
g.insertAdjacentHTML(E.after, t[o]);
|
1124
|
-
const
|
1125
|
-
!
|
1124
|
+
const f = (g == null ? void 0 : g.getAttribute("src")) || (g == null ? void 0 : g.getAttribute("data-src"));
|
1125
|
+
!f && r == "youtube" ? p == "on" ? g.setAttribute("src", `http://img.youtube.com/vi/${a}/maxresdefault.jpg `) : g.setAttribute("src", `https://img.youtube.com/vi/${a}/0.jpg`) : !f && r == "vimeo" ? g.setAttribute("src", `https://vumbnail.com/${a}_large.jpg`) : !f && r == "tiktok" ? fetch(`https://www.tiktok.com/oembed?url=https://www.tiktok.com/@/video/${a}`, { method: "GET", redirect: "follow" }).then((b) => b.json()).then((b) => {
|
1126
1126
|
const y = b.thumbnail_url;
|
1127
1127
|
g.setAttribute("src", `${y}`);
|
1128
1128
|
}).catch(function(b) {
|
@@ -1136,13 +1136,13 @@ V = new WeakSet(), Se = function() {
|
|
1136
1136
|
i.classList.add("video4-cover"), s.querySelector("img") || (s.insertAdjacentHTML(E.prepend, '<picture><source srcset="" type="image/webp"><source srcset="" type="image/jpeg"><img src="" alt></picture>'), T("video", "若啟用 [videoCover] 且選擇 onBox 模式必須於 video-target 內放置 img 結構"));
|
1137
1137
|
const g = s.querySelector("img");
|
1138
1138
|
g.insertAdjacentHTML(E.after, t[o]);
|
1139
|
-
const
|
1140
|
-
!
|
1139
|
+
const f = (g == null ? void 0 : g.getAttribute("src")) || (g == null ? void 0 : g.getAttribute("data-src"));
|
1140
|
+
!f && r == "youtube" ? p == "on" ? g.setAttribute("src", `http://img.youtube.com/vi/${a}/maxresdefault.jpg `) : g.setAttribute("src", `https://img.youtube.com/vi/${a}/0.jpg`) : !f && r == "vimeo" ? g.setAttribute("src", `https://vumbnail.com/${a}_large.jpg`) : !f && r == "tiktok" ? fetch(`https://www.tiktok.com/oembed?url=https://www.tiktok.com/@/video/${a}`, { method: "GET", redirect: "follow" }).then((b) => b.json()).then((b) => {
|
1141
1141
|
const y = b.thumbnail_url;
|
1142
1142
|
g.setAttribute("src", `${y}`);
|
1143
1143
|
}).catch(function(b) {
|
1144
1144
|
console.log("error");
|
1145
|
-
}) :
|
1145
|
+
}) : f || T("video4", "僅 youtube & vimeo 提供,無圖片時放置預設封面畫面,其他影片平台請自行上傳封面照片"), c == "off" ? m = s : (m = s.querySelector(c) ?? s, s.querySelector(c) || T("video4", `找不到 videoButton 設定的 element -> '${c}', 點擊物件轉移至 '${this.__storage__.el}'`));
|
1146
1146
|
} else {
|
1147
1147
|
s.innerHTML = Te(e);
|
1148
1148
|
return;
|
@@ -1159,14 +1159,21 @@ V = new WeakSet(), Se = function() {
|
|
1159
1159
|
on: {
|
1160
1160
|
complete(m) {
|
1161
1161
|
if (l == "instagram") {
|
1162
|
-
const g = (
|
1163
|
-
m.querySelector(".modal-content").insertAdjacentHTML("beforeend", g(t.params)), m.querySelector(".modal-content").setAttribute("video-typeStyle", `${l}`), window.instgrm
|
1162
|
+
const g = (f) => `${c}`;
|
1163
|
+
if (m.querySelector(".modal-content").insertAdjacentHTML("beforeend", g(t.params)), m.querySelector(".modal-content").setAttribute("video-typeStyle", `${l}`), window.instgrm)
|
1164
|
+
window.instgrm.Embeds.process();
|
1165
|
+
else {
|
1166
|
+
const f = document.createElement("script");
|
1167
|
+
f.src = "https://www.instagram.com/embed.js", f.async = !0, document.body.appendChild(f), setTimeout(() => {
|
1168
|
+
window.modalScroll.update();
|
1169
|
+
}, 10);
|
1170
|
+
}
|
1164
1171
|
} else
|
1165
1172
|
m.querySelector(".modal-content").insertAdjacentHTML("beforeend", Te(t.params)), m.querySelector(".modal-content").setAttribute("video-typeStyle", `${l}`);
|
1166
1173
|
},
|
1167
1174
|
open(m) {
|
1168
1175
|
const g = m.querySelectorAll("[data-overlayscrollbars-viewport]");
|
1169
|
-
u.update(),
|
1176
|
+
u.update(), Ei([...g]);
|
1170
1177
|
},
|
1171
1178
|
close(m) {
|
1172
1179
|
const g = m.querySelectorAll("[data-overlayscrollbars-viewport]");
|
@@ -2318,22 +2325,22 @@ It = new WeakSet(), $i = function() {
|
|
2318
2325
|
const u = this, p = [...e.s.allLi].indexOf(u), m = parseInt(e.getAttribute("d4-default-height"));
|
2319
2326
|
if (u.classList.contains("has-sublayer")) {
|
2320
2327
|
c.stopPropagation();
|
2321
|
-
const
|
2322
|
-
|
2323
|
-
const H = parseInt(
|
2328
|
+
const f = u.querySelector(".sub-dropdown"), b = f.querySelector(".sub-dropdown-list"), y = parseInt(getComputedStyle(b).marginTop) + parseInt(getComputedStyle(b).marginBottom);
|
2329
|
+
f.style.cssText = `--height: ${b.offsetHeight + y}px`;
|
2330
|
+
const H = parseInt(f.style.cssText.replace("--height:", "").trim()), G = parseInt(getComputedStyle(a).maxHeight), S = () => {
|
2324
2331
|
s = m + e.s.subDropdownTotalH, o = s > G ? G : s, e.style.cssText = `--maxHeight: ${o}px;`, e.s.dropdownEl.style.height = `${o}px`;
|
2325
2332
|
};
|
2326
2333
|
u.classList.contains("open") ? (u.classList.remove("open"), e.s.subDropdownTotalH -= H, S()) : (u.classList.add("open"), e.s.subDropdownTotalH += H, S());
|
2327
2334
|
const X = () => {
|
2328
|
-
e.__scroller__.update(!0),
|
2335
|
+
e.__scroller__.update(!0), f.removeEventListener("transitionend", X);
|
2329
2336
|
};
|
2330
|
-
|
2337
|
+
f.addEventListener("transitionend", X);
|
2331
2338
|
} else
|
2332
2339
|
switch (Os(e), e.s.selectType) {
|
2333
2340
|
case "single":
|
2334
2341
|
if (e.setAttribute("d4-value", u.getAttribute("data-option")), r) {
|
2335
|
-
const
|
2336
|
-
y && (y.querySelector(".dropdown-list").textContent = "", x(y, -1), Oe[
|
2342
|
+
const f = e.s.cityLang, b = l.textContent.trim(), y = document.getElementById(e.getAttribute("dist-select"));
|
2343
|
+
y && (y.querySelector(".dropdown-list").textContent = "", x(y, -1), Oe[f][b].forEach((H, G) => {
|
2337
2344
|
const S = document.createElement("li");
|
2338
2345
|
S.textContent = H[0], S.setAttribute("data-option", H[0]), y.querySelector(".dropdown-list").append(S);
|
2339
2346
|
}), e.__events__.selectOption(y));
|
@@ -2547,22 +2554,22 @@ jt = new WeakSet(), Mi = function() {
|
|
2547
2554
|
break;
|
2548
2555
|
case "alternate":
|
2549
2556
|
let g = function() {
|
2550
|
-
let
|
2557
|
+
let f = [];
|
2551
2558
|
switch (e) {
|
2552
2559
|
case "top":
|
2553
|
-
p = Math.abs(t.s.animateEl.scrollHeight - t.clientHeight), m = parseInt(t.s.nowDuration / (p * 2)) * t.s.animateEl.scrollHeight,
|
2560
|
+
p = Math.abs(t.s.animateEl.scrollHeight - t.clientHeight), m = parseInt(t.s.nowDuration / (p * 2)) * t.s.animateEl.scrollHeight, f = [{ transform: `translate3d(0,${t.clientHeight}px,0)` }, { transform: `translate3d(0,calc(${t.clientHeight}px - 100%),0)` }];
|
2554
2561
|
break;
|
2555
2562
|
case "right":
|
2556
|
-
p = Math.abs(t.s.animateEl.scrollWidth - t.clientWidth), m = parseInt(t.s.nowDuration / (p * 2)) * t.s.animateEl.scrollWidth,
|
2563
|
+
p = Math.abs(t.s.animateEl.scrollWidth - t.clientWidth), m = parseInt(t.s.nowDuration / (p * 2)) * t.s.animateEl.scrollWidth, f = [{ transform: "translate3d(-100%,0,0)" }, { transform: "translate3d(0,0,0)" }];
|
2557
2564
|
break;
|
2558
2565
|
case "bottom":
|
2559
|
-
p = Math.abs(t.s.animateEl.scrollHeight - t.clientHeight), m = parseInt(o / (p * 2)) * t.s.animateEl.scrollHeight,
|
2566
|
+
p = Math.abs(t.s.animateEl.scrollHeight - t.clientHeight), m = parseInt(o / (p * 2)) * t.s.animateEl.scrollHeight, f = [{ transform: "translate3d(0,-100%,0)" }, { transform: "translate3d(0,0,0)" }];
|
2560
2567
|
break;
|
2561
2568
|
case "left":
|
2562
|
-
p = Math.abs(t.s.animateEl.scrollWidth - t.clientWidth), m = parseInt(o / (p * 2)) * t.s.animateEl.scrollWidth,
|
2569
|
+
p = Math.abs(t.s.animateEl.scrollWidth - t.clientWidth), m = parseInt(o / (p * 2)) * t.s.animateEl.scrollWidth, f = [{ transform: `translate3d(${t.clientWidth}px,0,0)` }, { transform: `translate3d(calc(-100% + ${t.clientWidth}px),0,0)` }];
|
2563
2570
|
break;
|
2564
2571
|
}
|
2565
|
-
return
|
2572
|
+
return f;
|
2566
2573
|
}, p, m;
|
2567
2574
|
(t.clientHeight > t.s.animateEl.scrollHeight || e === "left" || e === "right") && (t.s.animateEl.style.transform = `${g()[0].transform}`, t.s.animateEl.animate(g(), {
|
2568
2575
|
duration: m,
|