korsygfhrfggfhfgfffgffg6655665dtggggggzangaiide
Elehhjhjjkjkfpf6df56fd65ffff
/
home2
/
sunpublicschools
/
www
/
js
/
Upload FileeE
HOME
/* ================================= ------------------------------------ Unica - University Template Version: 1.0 ------------------------------------ ====================================*/ 'use strict'; var window_w = $(window).innerWidth(); $(window).on('load', function() { /*------------------ Preloder --------------------*/ $(".loader").fadeOut(); $("#preloder").delay(400).fadeOut("slow"); }); (function($) { /*------------------ Navigation --------------------*/ $('.nav-switch').on('click', function(event) { $('.main-menu').slideToggle(400); event.preventDefault(); }); /*------------------ Background set --------------------*/ $('.set-bg').each(function() { var bg = $(this).data('setbg'); $(this).css('background-image', 'url(' + bg + ')'); }); /*------------------ Hero Slider --------------------*/ var window_h = $(window).innerHeight(); var header_h = $('.header-section').innerHeight(); var nav_h = $('.nav-section').innerHeight(); if (window_w > 767) { $('.hs-item').height((window_h)-((header_h)+(nav_h))); } $('.hero-slider').owlCarousel({ loop: true, nav: false, dots: true, mouseDrag: false, animateOut: 'fadeOut', animateIn: 'fadeIn', items: 1, autoplay: true }); $('.hero-slider').owlCarousel({ loop: true, nav: false, dots: true, mouseDrag: false, animateOut: 'fadeOut', animateIn: 'fadeIn', items: 1, autoplay: true }); /*------------------ Counter --------------------*/ $(".counter").countdown("2018/07/01", function(event) { $(this).html(event.strftime("<div class='counter-item'><h4>%D</h4>Days</div>" + "<div class='counter-item'><h4>%H</h4>hours</div>" + "<div class='counter-item'><h4>%M</h4>Mins</div>" + "<div class='counter-item'><h4>%S</h4>secs</div>")); }); /*------------------ Gallery --------------------*/ $('.gallery').find('.gallery-item').each(function() { var pi_height1 = $(this).width(), pi_height2 = pi_height1/2; if($(this).hasClass('gi-long') && window_w > 991){ $(this).css('height', pi_height2); }else{ $(this).css('height', Math.abs(pi_height1)); } }); /*------------------ Testimonial --------------------*/ $('.testimonial-slider').owlCarousel({ loop: true, nav: true, dots: true, animateOut: 'fadeOutLeft', animateIn: 'fadeInLeft', navText: ['<i class="fa fa-angle-left"></i>', '</i><i class="fa fa-angle-right"></i>'], items: 2, autoplay: true }); $(document).ready(function() { $("#owl-demo").owlCarousel({ autoPlay: 3000, //Set AutoPlay to 3 seconds loop: true, nav: true, animateOut: 'fadeOutLeft', animateIn: 'fadeInLeft', navText: ['<i class="fa fa-angle-left"></i>', '</i><i class="fa fa-angle-right"></i>'], items: 2, itemsDesktop : [1199,2], itemsDesktopSmall : [979,1] }); }); /*------------------ Popup --------------------*/ $('.img-popup').magnificPopup({ type: 'image', mainClass: 'img-popup-warp', removalDelay: 400, }); })(jQuery); $('.counter-count').each(function () { $(this).prop('Counter',0).animate({ Counter: $(this).text() }, { duration: 5000, easing: 'swing', step: function (now) { $(this).text(Math.ceil(now)); } }); });