Submit
Path:
~
/
/
proc
/
self
/
root
/
proc
/
self
/
root
/
proc
/
thread-self
/
root
/
home
/
getwphos
/
www
/
jewel
/
mtframwork
/
js
/
custom
/
File Content:
scripts.js
;(function($) { "use strict"; /*----------------------------- OnePageNav --------------------------*/ $('#navs').onePageNav({ currentClass: 'active', filter: ':not(.external)', scrollThreshold: 0.25, scrollOffset: 0, }); /*----------------------------- Sticky Navigation --------------------------*/ $(".main-menu-header").sticky({ topSpacing: 0 }); /*----------------------------- Responsive Nav --------------------------*/ $( "ul.sub-menu").parent().append("<span class='toggle_nav_button'>+</span>"); $(".toggle_nav_button").click( function(){ var link = $(this); $(this).parent().find("ul.sub-menu").slideToggle('fast', function(){ if ($(this).is(':visible')){ link.text('-'); } else { link.text('+'); } }); return false; }); /*----------------------------- Responsive Nav --------------------------*/ $('.nav a.colapse-menu1').click(function () { $(".navbar-collapse").collapse("hide") }); $('body').on('touchstart.dropdown', '.dropdown-menu', function (e) { e.stopPropagation(); }); /*----------------------------- Scroll To Top--------------------------*/ // declare variable var scrollTop = $(".scrollTop"); $(window).scroll(function() { // declare variable var topPos = $(this).scrollTop(); // if user scrolls down - show scroll to top button if (topPos > 100) { $(scrollTop).css(); } else { $(scrollTop).css(); } }); // scroll END //Click event to scroll to top $(scrollTop).click(function() { $('html, body').animate({ scrollTop: 0 }, 2000); return false; }); // click() scroll top EMD /*------------------ Homepage-Slides Carousel --------------*/ /* $("#mt-homepage-slides").owlCarousel({ navigation : true, items : 1, loop : true, dots : true, navigation : true, singleItem : true, transitionStyle : "fade", navigationText : [ "<i class='fa fa-chevron-left'></i>", "<i class='fa fa-chevron-right'></i>" ], slideSpeed : 1000, paginationSpeed : 400, singleItem:true, autoplay:true, autoplayTimeout:4000, autoplaySpeed: 2000, smartSpeed: 1000, animateOut: 'slideOut', animateIn: 'flipInX', }); $('#mt-homepage-slides').slick({ draggable: true, arrows: false, dots: true, fade: true, speed: 900, infinite: true, slidesToShow: 1, cssEase: 'cubic-bezier(0.7, 0, 0.3, 1)', touchThreshold: 100, nextArrow: '<i class="fa fa-chevron-left"></i>', prevArrow: '<i class="fa fa-chevron-right"></i>', })*/ /*------------------ Homepage-Slides Carousel --------------*/ $("#mt-recent-carousel").owlCarousel({ navigation : true, items : 3, loop : true, dots : false, navigation : true, navigationText : [ "<i class='fa fa-chevron-left'></i>", "<i class='fa fa-chevron-right'></i>" ], slideSpeed : 1000, paginationSpeed : 400, singleItem:true, autoplay:true, autoplayTimeout:4000, autoplaySpeed: 2000, smartSpeed: 1000, responsiveClass:true, responsive:{ 0:{ items:1, nav:true }, 480:{ items:1, nav:false }, 600:{ items:3, nav:false }, } }); /*----------------- Testimonial Carousel One ---------------*/ $('#mt-testimonials-carousel-one').owlCarousel({ loop: true, items: 3, margin: 38, nav: false, dots: false, }); jQuery(document).ready(function(){ $(".mt-testimonial-author-name").perfectScrollbar(); }); jQuery(window).load(function(){ }); /*----------------- Testimonial Carousel three ---------------*/ $(".mt-testimonial-carousel-three").owlCarousel({ items: 1, dots: false, nav: true, navText: ["<i class='fa fa-angle-left'></i>", "<i class='fa fa-angle-right'></i>"], loop: true, autoplay: false, }); /*----------------- Testimonial Carousel four ---------------*/ $("#mt-tests-carousel-four").owlCarousel({ navigation : true, items : 1, loop : true, dots : true, nav : false, navigationText : [ "<i class='fa fa-chevron-left'></i>", "<i class='fa fa-chevron-right'></i>" ], slideSpeed : 1000, paginationSpeed : 400, singleItem:true, autoplay:true, autoplayTimeout:4000, autoplaySpeed: 2000, }); /*----------------- Testimonial Eleven ---------------*/ $(".video-play-btn").magnificPopup({ type: 'video', }); /*----------------- Testimonial Carousel twelve ---------------*/ $("#mt-testimonials-carousel-twelve").owlCarousel({ navigation : true, items : 3, loop : true, dots : true, nav : false, slideSpeed : 1000, paginationSpeed : 400, singleItem:true, autoplay:true, autoplayTimeout:4000, autoplaySpeed: 2000, }); /*----------------- Testimonial Carousel twelve ---------------*/ $('.mt-tests-item-fifteen').owlCarousel({ navigation : true, loop:true, margin:10, nav:true, slideSpeed : 1000, paginationSpeed : 400, singleItem:true, autoplay:true, autoplayTimeout:4000, autoplaySpeed: 2000, navigationText : [ "<i class='fa fa-chevron-left'></i>", "<i class='fa fa-chevron-right'></i>" ], responsive:{ 0:{ items:1 }, 600:{ items:3 }, 1000:{ items:3 } } }); /*----------------- Testimonial Carousel seventeen ---------------*/ $("#mt-tests-carousel-seventeen").owlCarousel({ navigation : true, items : 3, margin: 10, autoWidth:true, loop : true, dots : true, nav : true, slideSpeed : 1000, paginationSpeed : 400, singleItem:true, autoplay:true, autoplayTimeout:4000, autoplaySpeed: 2000, }); /*----------------- Testimonial Carousel eighteen ---------------*/ $("##mt-tests-carousel-eighteen").owlCarousel({ navigation : true, items : 1, margin: 10, loop : true, dots : true, nav : false, slideSpeed : 1000, paginationSpeed : 400, singleItem:true, autoplay:false, autoplayTimeout:4000, autoplaySpeed: 2000, }); /*----------------------------- ScrollReveal Animation --------------------------*/ $(".portfolio-list").isotope({ // set itemSelector so .grid-sizer is not used in layout itemSelector: '.single-portfolio-item', percentPosition: true, masonry: { // use element for option columnWidth: '.single-portfolio-item', horizontalOrder: true } }); /*----------------------------- blog-style-9 massonary --------------------------*/ jQuery(window).load(function(){ jQuery(".mt-blog-s-list-nine").isotope(); }); /*----------------------------- Portfolio Column 2 --------------------------*/ // init Isotope var $grid = $('.projects-list-2').isotope({ // options }); // filter items on button click $('.filter-button-group').on( 'click', 'button', function() { var filterValue = $(this).attr('data-filter'); $grid.isotope({ filter: filterValue }); }); /*----------------------------- counter --------------------------*/ $('.counter').counterUp({ delay: 10, time: 1000, offset: 70, beginAt: 100, formatter: function (n) { return n.replace(/,/g, '.'); } }); // Accordion component const accordionEl = document.getElementsByClassName('accordion-title') if (accordionEl.length) { for (let i = 0; i < accordionEl.length; i++) { accordionEl[i].addEventListener('click', function () { this.parentNode.classList.toggle('is-open') const panel = this.nextElementSibling if (panel.style.maxHeight) { panel.style.maxHeight = null } else { panel.style.maxHeight = `${panel.scrollHeight}px` } }) } } /*----------------------------- ScrollReveal Animation --------------------------*/ ScrollReveal().reveal("..carousel-captions h2", { delay: 150, duration: 1e3, distance: "60px", easing: "cubic-bezier(0.215, 0.61, 0.355, 1)", origin: "bottom", interval: 150 }); ScrollReveal().reveal(".feature-container, .service-container", { delay: 300, duration: 1e3, rotate: { y: 50 }, easing: "cubic-bezier(0.215, 0.61, 0.355, 1)", interval: 150 }); ScrollReveal().reveal(".single-team-box-1", { delay: 300, duration: 1e3, origin: "bottom", easing: "cubic-bezier(0.215, 0.61, 0.355, 1)", interval: 150, scale: 0.85, viewFactor: .2 }); ScrollReveal().reveal(".features-title, .services-title, .clients-title , .portfolio-title, .team-title, .news-consult-title", { duration: 600, distance: "40px", easing: "cubic-bezier(0.215, 0.61, 0.355, 1)", interval: 100, origin: "bottom", viewFactor: .2 }) /*----------------- Testimonial two ---------------*/ })(jQuery);
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
index.js
6487 bytes
0644
scripts.js
11316 bytes
0644
N4ST4R_ID | Naxtarrr