HEX
Server: nginx/1.28.1
System: Linux 10-41-63-61 6.8.0-31-generic #31-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 20 00:40:06 UTC 2024 x86_64
User: www (1001)
PHP: 7.4.33
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/www.baofufacai.com/3/static2/js/index.js
(function () {
    /**/ 
    let delayImgs = [...document.getElementsByClassName("delayImg")];
    let ob = new IntersectionObserver(el => {
        el.forEach(item => {
            if (item.isIntersecting) {
                if (item.target.hasAttribute("data-src")) {
                    item.target.src = item.target.dataset.src;
                }
                ob.unobserve(item.target);
            }
        });
    });

    delayImgs.forEach(item => {
        ob.observe(item);
    });
    /**/ 
    
    let testSwiper = new Swiper('.swiper_container', {
        autoHeight: true,
        allowTouchMove: false
    })

    document.querySelectorAll(".swiper_container .swiper-wrapper li").forEach(item => {
        item.addEventListener("click", event => {
          if(event.target.className == "answer_end") {
            event.target.style.backgroundColor = "red"
            testSwiper.slideNext();
            setTimeout(() => {
                testSwiper.slideNext()
            }, 1200)
            if (event.target.hasAttribute("data-a")) {
              document.getElementById(
                  "num2"
              ).innerHTML = event.target.getAttribute("data-a");
            }
          }else{
            event.target.style.backgroundColor = "red"
            testSwiper.slideNext();
          }
        });
    });

    /**/
    let scrollBar = new Swiper('.scroll-bar', {
        direction: 'vertical',
        allowTouchMove: false,
        autoplay: {
            delay: 500,
            stopOnLastSlide: false,
            disableOnInteraction: true,
        },
        speed: 1000,
        slidesPerView: 1,
        loop: true
    })

    /**/
    $('.animateImg').click(() => {
        $(".popWindow").fadeTo("slow", 1).css({"touch-action" : "none"});
    }) 
    $('.pop_close').click(() => {
        $('.popWindow').fadeOut().css({ "touch-auto": "auto" });
    }) 
    /**/ 


    /**/
    let contentTop = document.getElementsByClassName("content_top")[0];
    let ob2 = new IntersectionObserver(
        el => {
            if (el[0].isIntersecting) {
                document.getElementById("alert").classList.add("act");
                ob2.disconnect();
            }
        },
        { threshold: [0.7] }
    );
    ob2.observe(contentTop);

    document.getElementById("dismiss").addEventListener("click", e => {
        document.getElementById("alert").classList.remove("act");
    });

    document.getElementById("action").addEventListener("click", e => {
        document.getElementById("alert").classList.remove("act");
        $('.popText').html(`下のボタンをクリックする </br>
        彼女たちがいかにダイエットに成功したかをチェックしましょう</br>`)
        $(".popWindow").fadeIn();
    });

    $(".popWindow").on('click', function () {
        $(".popWindow").css("display", "none")
      })


    /**/ 

    $('.content_btn').click(() =>{
        $(".popWindow").fadeTo("slow", 1).css({"touch-action" : "none"});
    })
})()