HEX
Server: nginx/1.18.0
System: Linux iZuf6ar3jbed2aosvzu1ofZ 4.18.0-240.22.1.el8_3.x86_64 #1 SMP Thu Apr 8 19:01:30 UTC 2021 x86_64
User: root (0)
PHP: 7.3.28
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: /www/wwwroot/wood-lk.cn/wp-content/themes/mlk/assets/js/index.js
var swiper = new Swiper('.index-banner .swiper-container', {
    autoplay: {
    	delay: 5000,
    	stopOnLastSlide: false,
    	disableOnInteraction: false,
    },
    navigation: {
        nextEl: '.index-banner .swiper-button-next',
        prevEl: '.index-banner .swiper-button-prev',
    },
    pagination: {
        el: '.index-banner .swiper-pagination',
        clickable: true,
    },
});
// 





// var oService = new Swiper('.index-service-swiper .swiper-container', {
//     autoplay: {
//     	delay: 5000,
//     	stopOnLastSlide: false,
//     	disableOnInteraction: false,
//     },
//     navigation: {
//         nextEl: '.index-service .swiper-button-next',
//         prevEl: '.index-service .swiper-button-prev',
//     },
//     slidesPerView: 3.5,
//     spaceBetween: 20,
//     breakpoints: {
//         640: {
//             slidesPerView: 1.5,
//         },
//         768: {
//             slidesPerView: 2,
//         },
//         1024: {
//             slidesPerView: 2,
//         },1230: {
//             slidesPerView: 2.5,
//         }
//     },
//     pagination: {
//         el: '.index-service-swiper .swiper-pagination',
//         clickable: true,
//     },
// });





function indexTabs(oTitle, oItem, oShow) {
    $(oTitle).eq(0).addClass(oShow);
    $(oItem).eq(0).show();
    $('.index-case-bg').css("background-image",'url('+$(oItem).eq(0).find('img').attr('src')+')');
    
    $(oTitle).click(function() {
        $(oTitle).eq($(this).index()).addClass(oShow).siblings().removeClass(oShow);
        $(oItem).hide().eq($(this).index()).show();
        let src = $(oItem+">.index-case-item").eq($(this).index()).find('img').attr('src');
        if(src){
            $(".index-case-bg").css("background-image",'url('+src+')');
        }
    });
}


indexTabs(".index-news-cate li", ".index-news-box .index-news-item", "on");



// wow
wow = new WOW({
    boxClass: 'wow', // default
    animateClass: 'animated', // default
    offset: 50, // default
    mobile: true, // default
    live: true // default
})
wow.init();