123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117 |
- /*
- Page: main JS
- Author: Surjith S M
- URI: http://surjithctly.in/
- Version: 1.0
- */
- (function($) {
- "use strict";
- /* ============= Preloader Close on Click ============= */
- if ($('.loader-wrapper').length) {
- $('.loader-wrapper').on('click', function() {
- $(this).fadeOut();
- });
- }
- /* ============= Homepage Slider ============= */
- if ($('.flexslider').length) {
- $('.flexslider').flexslider({
- animation: "fade"
- });
- }
- /* ============= Partner Logo Carousel ============= */
- if ($('.logo-slides').length) {
- $(".logo-slides").owlCarousel({
- autoplay: true,
- autoplayTimeout: 3000,
- loop: true,
- margin: 10,
- nav: false,
- responsiveClass: true,
- responsive: {
- 0: {
- items: 1
- },
- 480: {
- items: 2
- },
- 767: {
- items: 3
- },
- 991: {
- items: 4
- },
- 1199: {
- items: 5
- }
- }
- });
- }
- /* ============= Percentage Slider ============= */
- if ($('#skills').length) {
- var skillsDiv = $('#skills');
- $(window).on('scroll', function() {
- var winT = $(window).scrollTop(),
- winH = $(window).height(),
- skillsT = skillsDiv.offset().top;
- if (winT + winH > skillsT) {
- $('.skillbar').each(function() {
- $(this).find('.skillbar-bar').animate({
- width: $(this).attr('data-percent')
- }, 2000);
- });
- }
- });
- }
- /* ============= Service Slider ============= */
- if ($('.service-slider').length) {
- $('.service-slider').flexslider({
- animation: "slide",
- controlNav: false,
- directionNav: true,
- touch: true
- });
- }
- /* ============= Blog Slider ============= */
- if ($('.blog-slide').length) {
- $('.blog-slide').flexslider({
- controlNav: false,
- animation: "slide"
- });
- }
- /* ============= Stats Counter ============= */
- if ($('.counter').length) {
- $('.counter').counterUp({
- delay: 10,
- time: 1500
- });
- }
- $(window).load(function() {
- /* ============= Preloader ============= */
- if ($('.loader-wrapper').length) {
- $('.loader-wrapper').fadeOut();
- }
- }); // End Window.Load
- })(jQuery);
|