| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314 |
- (function($) {
- 'use strict';
- $(function(e) {
- /*------------------------------------------------------------------
- Intro-Slider
- -------------------------------------------------------------------*/
- $('#intro .owl-carousel').owlCarousel({
- loop: true,
- margin: 0,
- nav: true,
- dots: false,
- animateOut: 'fadeOut',
- autoplay: true,
- autoplayTimeout: 3000,
- stagePadding: 0,
- items: 1,
- singleItem: true,
- responsive: {
- 0: {
- items: 1
- },
- 600: {
- items: 1
- },
- 1000: {
- items: 1
- }
- }
- });
- /*-------------------------------------------------------------------------------
- Video
- -------------------------------------------------------------------------------*/
- $('.popup-youtube').magnificPopup({
- type: 'iframe'
- });
- $('.popup-vimeo').magnificPopup({
- type: 'iframe'
- });
- $('.popup-video').magnificPopup({
- type: 'iframe'
- });
- /*------------------------------------------------------------------
- Services
- -------------------------------------------------------------------*/
- $('#services .owl-carousel').owlCarousel({
- loop: true,
- margin: 20,
- nav: true,
- dots: false,
- animateOut: 'fadeOut',
- autoplay: true,
- autoplayTimeout: 3000,
- responsive: {
- 0: {
- items: 1
- },
- 600: {
- items: 2
- },
- 1000: {
- items: 4
- }
- }
- });
- /*------------------------------------------------------------------
- Portfolio
- -------------------------------------------------------------------*/
- $('#portfolio-image .owl-carousel').owlCarousel({
- loop: true,
- margin: 20,
- nav: true,
- dots: false,
- animateOut: 'fadeOut',
- autoplay: true,
- autoplayTimeout: 3000,
- responsive: {
- 0: {
- items: 1
- },
- 600: {
- items: 1
- },
- 1000: {
- items: 1
- }
- }
- });
- /*------------------------------------------------------------------
- Partners-Logo
- -------------------------------------------------------------------*/
- $('#partners .owl-carousel').owlCarousel({
- loop: true,
- margin: 20,
- nav: false,
- dots: false,
- animateOut: 'fadeOut',
- autoplay: true,
- autoplayTimeout: 3000,
- responsive: {
- 0: {
- items: 2
- },
- 600: {
- items: 3
- },
- 1000: {
- items: 5
- }
- }
- });
- /*------------------------------------------------------------------
- testimonials
- -------------------------------------------------------------------*/
- $('#testimonials .owl-carousel').owlCarousel({
- loop: true,
- margin: 0,
- nav: false,
- dots: true,
- autoplay: true,
- autoplayTimeout: 3000,
- responsive: {
- 0: {
- items: 1
- },
- 600: {
- items: 1
- },
- 1000: {
- items: 1
- }
- }
- });
- /*------------------------------------------------------------------
- testimonials-2
- -------------------------------------------------------------------*/
- $('#testimonialsTwo .owl-carousel').owlCarousel({
- loop: true,
- margin: 30,
- nav: false,
- dots: true,
- autoplay: true,
- autoplayTimeout: 3000,
- responsive: {
- 0: {
- items: 1
- },
- 600: {
- items: 1
- },
- 1000: {
- items: 3
- }
- }
- });
- /*------------------------------------------------------------------
- Team
- -------------------------------------------------------------------*/
- $('#team .owl-carousel').owlCarousel({
- loop: true,
- margin: 30,
- nav: false,
- dots: true,
- autoplay: true,
- autoplayTimeout: 3000,
- responsive: {
- 0: {
- items: 1
- },
- 600: {
- items: 1
- },
- 1000: {
- items: 3
- }
- }
- });
- /*-------------------------------------------------------------------------------
- search-form
- -------------------------------------------------------------------------------*/
- $('header .search-toggle').on('click', function(e) {
- $(".search-form").toggleClass("main");
- $(this).find(".fa-search").toggleClass('fa-times');
- });
- /*-------------------------------------------------------------------------------
- Portfolio
- -------------------------------------------------------------------------------*/
- $(window).load(function() {
- var $container = $('.portfolioContainer');
- $container.isotope({
- filter: '*',
- animationOptions: {
- duration: 750,
- easing: 'linear',
- queue: false
- }
- });
- $('.portfolioFilter a').click(function() {
- $('.portfolioFilter .current').removeClass('current');
- $(this).addClass('current');
- var selector = $(this).attr('data-filter');
- $container.isotope({
- filter: selector,
- animationOptions: {
- duration: 750,
- easing: 'linear',
- queue: false
- }
- });
- return false;
- });
- });
- /*------------------------------------------------------------------
- Countdown
- -------------------------------------------------------------------*/
- // 2018[year] - 12[month] - 01[day]
- if ($('#countdown').length > 0) {
- $('#countdown').countdown('2019/12/01', function(event) {
- $(this).html(event.strftime('<span class="countdown-period">%-D <span>Day%!D</span></span> <span class="countdown-period">%H <span>Hours</span></span> <span class="countdown-period">%M <span>Minutes</span></span> <span class="countdown-period">%S <span>Seconds</span></span>'));
- });
- }
- /*-------------------------------------
- Instagram Photos
- -------------------------------------*/
- $('.instagram-photos').each(function() {
- $.instagramFeed({
- 'username': $(this).data('username'),
- 'container': $(this),
- 'display_profile': false,
- 'display_biography': false,
- 'items': $(this).data('items'),
- 'margin': 0,
- });
- });
- /*------------------------------------------------------------------
- Benefits
- -------------------------------------------------------------------*/
- if ($('.center-slider').length > 0) {
- $('.center-slider').slick({
- centerMode: true,
- centerPadding: '100px',
- slidesToShow: 3,
- slidesToScroll: 1,
- arrows: false,
- responsive: [{
- breakpoint: 1200,
- settings: {
- arrows: false,
- centerMode: true,
- centerPadding: '40px',
- slidesToShow: 1
- }
- },
- {
- breakpoint: 768,
- settings: {
- centerPadding: '10px',
- slidesToShow: 1
- }
- }
- ]
- });
- }
- /*------------------------------------------------------------------
- Testimonial
- -------------------------------------------------------------------*/
- if($('.testimonial-slider').length > 0){
- $('.testimonial-slider').slick({
- infinite: true,
- slidesToShow: 1,
- slidesToScroll: 1,
- arrows: false,
- });
- }
- });
- })(jQuery);
|