| .. | |||||
| helpers | |||||
| libs | |||||
| uni-core | |||||
| app-head-bs.js | |||||
| app.js | |||||
| custom.js | |||||
| editor.js | |||||
| uikit-components-bs.js |
| Server IP : 103.169.32.36 / Your IP : 216.73.217.13 Web Server : Apache System : Linux web.dpmptsp 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : apache ( 48) PHP Version : 5.6.40 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/dpmptsp/public_html/newsigniter/assets/front_v2/js/ |
Upload File : |
{
const e = () => {
document.documentElement.style.setProperty("--body-scroll-width", window.innerWidth - document.documentElement.clientWidth + "px")
}
;
window.addEventListener("resize", e),
e()
}
{
const e = () => {
setDarkMode(!isDarkMode());
const e = isDarkMode();
localStorage.setItem("darkMode", e ? "1" : "0")
}
, t = e => {
e.checked = isDarkMode()
}
;
document.querySelectorAll("[data-darkmode-toggle] input, [data-darkmode-switch] input").forEach((n => {
n.addEventListener("change", e),
t(n)
}
))
}
document.querySelectorAll(".uc-horizontal-scroll").forEach((e => {
e.addEventListener("wheel", (t => {
t.preventDefault(),
e.scrollBy({
left: t.deltaY,
behavior: "smooth"
})
}
))
}
)),
document.addEventListener("DOMContentLoaded", ( () => {
const e = document.querySelector("[data-uc-backtotop]");
if (!e)
return;
e.addEventListener("click", (e => {
e.preventDefault(),
window.scrollTo({
top: 0,
behavior: "smooth"
})
}
));
let t = 0;
window.addEventListener("scroll", ( () => {
const n = document.body.getBoundingClientRect().top;
e.parentNode.classList.toggle("uc-active", n <= t),
t = n
}
))
}
)),
document.addEventListener("DOMContentLoaded", (function() {
let e = [].slice.call(document.querySelectorAll("video.video-lazyload"));
function t(e) {
let t = e.querySelector("source");
t.src = t.dataset.src,
e.load(),
e.muted = !0,
"visible" === document.visibilityState ? e.play() : document.addEventListener("visibilitychange", (function t() {
"visible" === document.visibilityState && (e.play(),
document.removeEventListener("visibilitychange", t))
}
))
}
if ("IntersectionObserver"in window) {
let n = new IntersectionObserver((function(e, o) {
e.forEach((function(e) {
if (e.isIntersecting) {
let o = e.target;
t(o),
n.unobserve(o)
}
}
))
}
));
e.forEach((function(e) {
n.observe(e),
e.getBoundingClientRect().top < window.innerHeight && e.getBoundingClientRect().bottom > 0 && (t(e),
n.unobserve(e))
}
))
} else
e.forEach((function(e) {
t(e)
}
))
}
));
| .. | |||||
| helpers | |||||
| libs | |||||
| uni-core | |||||
| app-head-bs.js | |||||
| app.js | |||||
| custom.js | |||||
| editor.js | |||||
| uikit-components-bs.js |