HEX
Server: Apache/2
System: Linux da.abacipark.com 4.18.0-553.34.1.el8_10.x86_64 #1 SMP Wed Jan 8 09:40:06 EST 2025 x86_64
User: ankarasy (1626)
PHP: 8.4.18
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: /home/ankarasy/domains/ankarasymm.com/public_html/wp-content/themes/alomaliye4/includes/js/main.js
jQuery(document).ready(function() {

    /* Click search box appear */
    jQuery('body').on('click', '#header-search-button', function() {
        jQuery(this).parents().find('.header-search-form-wrap:first').slideToggle(200);
    });
    var setupHeaderSearchform = function() {
        var headerSearchFormTopPosition = jQuery('.header-top').outerHeight() + jQuery('.header-bottom').outerHeight();
        jQuery('.header-search-form-wrap').css({
            'top': headerSearchFormTopPosition + 'px'
        });
    };
    setupHeaderSearchform();
    jQuery(window).on('load scroll resize', function() {
        setupHeaderSearchform();
    });

    /* Site Main Menu animation */
    if (jQuery(window).width() >= '751') {
        jQuery('.header-bottom nav.main-menu li').hover(function() {
            jQuery(this).children('ul').stop(true, true).slideDown(200);
        }, function() {
            jQuery(this).children('ul').stop(true, true).slideUp(200);
        });
    }

    jQuery('.header-bottom nav.main-menu li ul li a').hover(function() {
        jQuery(this).stop(true, true).velocity({
            paddingLeft: "23px"
        }, 150);
    }, function() {
        jQuery(this).stop(true, true).velocity({
            paddingLeft: "20px"
        }, 150);
    });

    /*  MeanMenu Responsive Nav */
    if (jQuery().meanmenu) {
        jQuery('nav.main-menu').meanmenu({
            meanMenuClose: '<i class="fa fa-times"></i>',
            meanExpand: "+",
            meanContract: "-",
            meanMenuContainer: '#responsive-menu-container',
            meanScreenWidth: "767",
            meanRemoveAttrs: true
        });
    }

    /* Scroll to Top */
    jQuery(function() {
        if (jQuery('a#scroll-top').length) {
            jQuery(window).scroll(function() {
                if (jQuery(this).scrollTop() > 250) {
                    jQuery('a#scroll-top').fadeIn();
                } else {
                    jQuery('a#scroll-top').fadeOut();
                }
            });
            jQuery('a#scroll-top').on('click', function(event) {
                event.preventDefault();
                jQuery('html, body').velocity("scroll", {
                    duration: 750,
                    easing: "swing"
                });
            });
        }
    });

    /* Owl carousel */
    if (jQuery('#home-slider .main-owl-carousel').length) {
        jQuery(".main-owl-carousel").owlCarousel({
            navigation: true,
            pagination: false,
            responsive: true,
            items: 1,
            touchDrag: true,
            navigationText: false,
            mouseDrag: true,
            itemsDesktop: [3000, 1],
            itemsDesktopSmall: [1440, 1],
            itemsTablet: [1024, 1],
            itemsTabletSmall: [600, 1],
            itemsMobile: [360, 1],
            autoPlay: true,
            autoHeight: true,
        });
    }

}); //End jQuery