123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118 |
-
- $(function () {
-
- new WOW().init();
- });
- (function($) {
- "use strict";
-
- $('a.js-scroll-trigger[href*="#"]:not([href="#"])').click(function() {
- if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && location.hostname == this.hostname) {
- var target = $(this.hash);
- target = target.length ? target : $('[name=' + this.hash.slice(1) + ']');
- if (target.length) {
- $('html, body').animate({
- scrollTop: (target.offset().top - 63)
- }, 1000, "easeInOutExpo");
- return false;
- }
- }
- });
-
- $('.js-scroll-trigger').click(function() {
- $('.navbar-collapse').collapse('hide');
- });
-
- $('body').scrollspy({
- target: '#mainNav',
- offset: 64
- });
-
- var navbarCollapse = function() {
- if ($("#mainNav").offset().top > 100) {
- $("#mainNav").addClass("navbar-shrink");
- } else {
- $("#mainNav").removeClass("navbar-shrink");
- }
- };
-
- navbarCollapse();
-
- $(window).scroll(navbarCollapse);
-
- $('.portfolio-modal').on('show.bs.modal', function(e) {
- $(".navbar").addClass("d-none");
- })
- $('.portfolio-modal').on('hidden.bs.modal', function(e) {
- $(".navbar").removeClass("d-none");
- })
- })(jQuery);
- $(function() {
- $("#gallery-slider").owlCarousel({
- items: 3,
- smartSpeed: 700,
- autoplay: true,
- loop: true,
- pagination: true,
- slideSpeed: 1000,
- responsive: {
- 0: {
- items: 1
- },
- 500: {
- items: 2
- },
- 767: {
- items: 2
- },
- 992: {
- items: 3
- }
- }
- });
- });
- (function() {
- $(window).scroll(function() {
- if ($(this).scrollTop() < 50) {
-
- $("nav").removeClass("ss-top-nav");
- $("#back-to-top").fadeOut();
- } else {
-
- $("nav").addClass("ss-top-nav");
- $("#back-to-top").fadeIn();
- }
- });
- });
|