HEX
Server: nginx/1.24.0
System: Linux VM-8-5-opencloudos 6.6.47-12.oc9.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Sep 24 16:15:42 CST 2024 x86_64
User: www (1000)
PHP: 8.0.26
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/aiwellbore.com/wp-content/updraft/themes-old/study-education-pro/js/custom.js
jQuery(document).ready(function () {
    var ww = jQuery(window).width();
    jQuery("area[rel^='prettyPhoto']").prettyPhoto();
    jQuery(".gallery:first a[rel^='prettyPhoto']").prettyPhoto({animation_speed: 'normal', theme: 'light_square', slideshow: 3000, autoplay_slideshow: false});
    jQuery(".gallery:gt(0) a[rel^='prettyPhoto']").prettyPhoto({animation_speed: 'fast', slideshow: 10000, hideflash: true});
    jQuery("#custom_content a[rel^='prettyPhoto']:first").prettyPhoto({
        custom_markup: '<div id="map_canvas" style="width:260px; height:265px"></div>',
        changepicturecallback: function () {
            initialize();
        }
    });
    jQuery("#custom_content a[rel^='prettyPhoto']:last").prettyPhoto({
        custom_markup: '<div id="bsap_1259344" class="bsarocks bsap_d49a0984d0f377271ccbf01a33f2b6d6"></div><div id="bsap_1237859" class="bsarocks bsap_d49a0984d0f377271ccbf01a33f2b6d6" style="height:260px"></div><div id="bsap_1251710" class="bsarocks bsap_d49a0984d0f377271ccbf01a33f2b6d6"></div>',
        changepicturecallback: function () {
            _bsap.exec();
        }
    });

    // accordion
    jQuery('.accordion-box .acc-content').hide();
    jQuery('.accordion-box h2:first').addClass('active').next().show();
    jQuery('.accordion-box h2').click(function () {
        if (jQuery(this).next().is(':hidden')) {
            jQuery('.accordion-box h2').removeClass('active').next().slideUp();
            jQuery(this).toggleClass('active').next().slideDown();
        }
        return false; // Prevent the browser jump to the link anchor
    });

    // Tabs
    jQuery('ul.tabs > br').remove();
    jQuery('.tabs-wrapper').append(jQuery('.tabs li div'));
    jQuery('.tabs li:first a').addClass('defaulttab selected');
    jQuery('.tabs a').click(function () {
        switch_tabs(jQuery(this));
    });
    switch_tabs(jQuery('.defaulttab'));
    function switch_tabs(obj) {
        jQuery('.tab-content').hide();
        jQuery('.tabs a').removeClass("selected");
        var id = obj.attr("rel");
        jQuery('#' + id).show();
        obj.addClass("selected");
    }

    // Content Toggle
    jQuery(".slide_toggle_content").hide();
    jQuery("h3.slide_toggle").toggle(function () {
        jQuery(this).addClass("clicked");
    }, function () {
        jQuery(this).removeClass("clicked");
    });
    jQuery("h3.slide_toggle").click(function () {
        jQuery(this).next(".slide_toggle_content").slideToggle();
    });

});



// NAVIGATION CALLBACK
var ww = jQuery(window).width();
jQuery(document).ready(function () {
    jQuery(".header-nav li a").each(function () {
        if (jQuery(this).next().length > 0) {
            jQuery(this).addClass("parent");
        }
        ;
    });
    jQuery(".toggleMenu").click(function (e) {
        e.preventDefault();
        jQuery(this).toggleClass("active");
        jQuery(".header-nav").slideToggle('fast');
    });
    adjustMenu();
});

// navigation orientation resize callbak
jQuery(window).bind('resize orientationchange', function () {
    ww = jQuery(window).width();
    adjustMenu();
});

var adjustMenu = function () {
    if (ww < 981) {
        jQuery(".toggleMenu").css("display", "block");
        if (!jQuery(".toggleMenu").hasClass("active")) {
            jQuery(".header-nav").hide();
        } else {
            jQuery(".header-nav").show();
        }
        jQuery(".header-nav li").unbind('mouseenter mouseleave');
    } else {
        jQuery(".toggleMenu").css("display", "none");
        jQuery(".header-nav").show();
        jQuery(".header-nav li").removeClass("hover");
        jQuery(".header-nav li a").unbind('click');
        jQuery(".header-nav li").unbind('mouseenter mouseleave').bind('mouseenter mouseleave', function () {
            jQuery(this).toggleClass('hover');
        });
    }
};

jQuery(document).ready(function () {
    jQuery('.srchicon').click(function () {
        jQuery('.searchtop').toggle();
        jQuery('.topsocial').toggle();
    });



// mixitup
    jQuery(function () {
        jQuery('#Grid').mixitup();
    });

    //Client Logo jquery 


    jQuery('.skillbar').each(function () {
        jQuery(this).find('.skillbar-bar').animate({
            width: jQuery(this).attr('data-percent')
        }, 6000);
    });

    jQuery('section').addClass("hidden").viewportChecker({
        classToAdd: 'visible animated fadeIn',
        offset: 100
    });

    jQuery('#footer-wrapper').addClass("hidden").viewportChecker({
        classToAdd: 'visible animated fadeIn',
        offset: 100
    });

    // hide #back-top first
    jQuery("#back-top").hide();
    // fade in #back-top
    jQuery(function () {
        jQuery(window).scroll(function () {
            if (jQuery(this).scrollTop() > 50) {
                jQuery('#back-top').fadeIn();
            } else {
                jQuery('#back-top').fadeOut();
            }
        });
        // scroll body to 0px on click
        jQuery('#back-top').click(function () {
            jQuery('body,html').animate({
                scrollTop: 50
            }, 800);
            return false;
        });
    });

    //testimonial section code
    jQuery('#clienttestiminials .owl-carousel').owlCarousel({
        loop: false,
        autoplay: false,
        autoplayTimeout: 8000,
        margin: 0,
        nav: false,
        autoHeight: false,
        navText: ["<i class='fas fa-angle-up'></i>", "<i class='fas fa-angle-down'></i>"],
        dots: true,
        responsive: {
            0: {
                items: 1
            },
            600: {
                items: 1
            },
            1000: {
                items: 1
            }
        }
    });
    //testimonial section code end

    //youtube link
    jQuery(".youtube-link").grtyoutube({
        autoPlay: true,
        theme: "dark"
    });
});