Server : LiteSpeed
System : Linux quebec.us.hostns.io 5.14.0-687.42.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Aug 27 11:55:12 EDT 2026 x86_64
User : gazetufm ( 1431)
PHP Version : 8.1.35
Disable Function : NONE
Directory :  /home2/gazetufm/www/wp/wp-content/plugins/wp-statistics/assets/dev/javascript/pages/

📁 Create New:
⬆️ Upload File:
Current Dir [ Writable ] Root [ Writable ]


OR Upload from URL:
URL: Save as:

📄 File: lock-page.js

Path: //home2/gazetufm/www/wp/wp-content/plugins/wp-statistics/assets/dev/javascript/pages/lock-page.js

Size: 1.37 KB

Permissions: 0644

let currentSlide = 0;
const slides = document.querySelectorAll('.wps-slider__slide');
const totalSlides = slides.length;
const dotsContainer = document.querySelector('.wps-slider__dots');
let wpsAutoSlideInterval;

function showSlide(index) {
    slides.forEach((slide, i) => {
        slide.style.display = (i === index) ? 'block' : 'none';
    });
    updateDots(index);
}

function updateDots(index) {
    dotsContainer.innerHTML = '';
    if (totalSlides > 1) {
        for (let i = 0; i < totalSlides; i++) {
            const dot = document.createElement('span');
            dot.className = 'wps-slider__dot';
            dot.addEventListener('click', () => {
                showSlide(i);
                resetAutoSlide();
            });
            dot.classList.toggle('active', i === index);
            dotsContainer.appendChild(dot);
        }
        dotsContainer.style.display = 'block';
    } else {
        dotsContainer.style.display = 'none';
    }
}

function startAutoSlideLockPage() {
    if (totalSlides > 1) {
        wpsAutoSlideInterval = setInterval(() => {
            currentSlide = (currentSlide + 1) % totalSlides;
            showSlide(currentSlide);
        }, 5000);
    }
}

function resetAutoSlide() {
    clearInterval(wpsAutoSlideInterval);
    startAutoSlideLockPage();
}

if (totalSlides > 0) {
    showSlide(currentSlide);
    startAutoSlideLockPage();
}

← Back to Directory Edit File 🔒 Chmod

WP File Manager