Shadow-Here


Server : Apache
System : Linux methusalix2 3.16.0-11-amd64 #1 SMP Debian 3.16.84-1 (2020-06-09) x86_64
User : hios ( 1437)
PHP Version : 5.6.40-0+deb8u12
Disable Function : proc_close,proc_open,dl,shell_exec,passthru
Directory :  /home/hios/public_html/wp-content/themes/theme-boilerplate/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :
Current File : /home/hios/public_html/wp-content/themes/theme-boilerplate/js/script.js
$ = jQuery;

jQuery.extend(verge);

jQuery(document).ready(function() {
    jQuery('.single-item').slick({
        autoplay: true,
        arrows: true,
        infinite: true,   
        slidesToShow: 3,
        slidesToScroll: 1,
        nextArrow: '<span class="slick-arrow slick-nav-next"></span>',
        prevArrow: '<span class="slick-arrow slick-nav-prev"></span>',
        responsive: [
        {
          breakpoint: 767,
          settings: {
            slidesToShow: 2,
          }
        },
        {
          breakpoint: 500,
          settings: {
            slidesToShow: 1,
          }
        }
      ] 
    });

	jQuery(document).ready(function() {
	    jQuery(".mmenu").mmenu({
	        // Options
	    });
	    var API = jQuery(".mmenu").data("mmenu");

	    jQuery(".mmenu-toggle").click(function() {
	        API.open();
	    });
	});

    jQuery('.read-more').click(function() {
    	jQuery('.read-more').show();
    	jQuery('.hidden-text').css('display', 'none');

    	jQuery(this).hide();
    	jQuery(this).next('.hidden-text').css('height', '100%');
    	jQuery(this).next().slideDown();
    }); 

    jQuery('.hidden-text').click(function() {
    	jQuery(this).slideUp( function() {
    		jQuery('.read-more').show();
    		jQuery('.hidden-text').css('display', 'none');
    	});
    });  
});

function headerScrollDetection() {
    console
    if ($(window).scrollTop() > 21  && !$('.header').hasClass('scroll')) {
        $('.header').addClass('scroll');
    } else {
        if($('.header').hasClass('scroll') && $(window).scrollTop() < 1) {
            $('.header').removeClass('scroll');
        }
    }
}

// ===================
// == SMOOTH SCROLL ==
// ===================


// Prevent hash jumps
if (location.hash) {
    window.scrollTo(0, 0);
    setTimeout(function() {
        window.scrollTo(0, 0);
    }, 1);
}

// Function: Smooth Anchor Scrolling
function smoothAnchorScrolling() {
    var hash = $(location).attr("hash");
    if ($(hash).length > 0) {
        var target = $(hash).offset().top-132;
        $("html, body").animate({scrollTop: target}, 1000);
    }
}

// Prototype Function: Check if string contains
String.prototype.contains = function(it) {
    return this.indexOf(it) != -1;
};


$(window).load(function(){
  // Smooth Anchor Scrolling
    smoothAnchorScrolling();
    $("a").click(function(e) {
        var id = $(this).attr("href");
        id = id.substring(id.indexOf("#"));
        if (id.contains("#")) {
            if ($(id).length > 0) {
                var target = $(id).offset().top-130;
                $("html, body").animate({scrollTop: target}, 1000);
                e.preventDefault();
            }
        }
    });
});

$(window).scroll(function() {
    headerScrollDetection();

    $('.section').each(function() {
        var id = $(this).attr('id');
        var element = $(this);

        if ((verge.inViewport(element, -150))) {
            if (!element.hasClass('in-view')) {
                element.addClass('in-view');
                $('.mainnav a[href="#' + id + '"]').addClass('current-menu-item');
            }
        } else {
            element.removeClass('in-view');
            $('.mainnav a[href="#' + id + '"]').removeClass('current-menu-item');
        }
    });
});

Samx