jQuery(document).ready(function($){
/*----------------------------- Scroll To Top -----------------------*/
jQuery(window).on('scroll',function () {
if (jQuery(this).scrollTop() > 600) {
jQuery('#scrollup').fadeIn();
} else {
jQuery('#scrollup').fadeOut();
}
});
jQuery('#scrollup').on('click',function(){
jQuery('html, body').animate({
scrollTop: 0
}, 1500);
return false;
});
/*owl carousel slider------------------------*/
jQuery("#owl-demo").owlCarousel({
items: 1,
autoplay: true,
loop: true,
dots:false,
mouseDrag:false,
nav: true,
navText : ["",""],
transitionStyle:"fade",
animateIn: 'fadeIn',
animateOut: 'fadeOutLeft'
});
/*owl carousel slider------------------------*/
jQuery("#test-slide").owlCarousel({
items: 1,
autoplay: true,
loop: true,
dots:false,
mouseDrag:false,
nav: true,
navText : ["",""],
transitionStyle:"fade",
animateIn: 'fadeIn',
animateOut: 'fadeOutLeft'
});
/*owl carousel slider------------------------*/
jQuery("#home-two-test").owlCarousel({
items: 1,
autoplay: true,
loop: true,
dots:false,
mouseDrag:false,
nav: false,
transitionStyle:"fade",
animateIn: 'fadeInRight',
animateOut: 'fadeOutLeft'
});
/*owl carousel slider------------------------*/
jQuery('#testimonial-two-slide').owlCarousel({
items: 1,
dots:true,
autoplay: true,
mouseDrag:false,
nav: false,
transitionStyle:"fade",
animateIn: 'fadeInRight',
animateOut: 'fadeOutLeft'
});
/*vertical slider------------------------*/
jQuery('.carousel .vertical .item').each(function(){
var next = jQuery(this).next();
if (!next.length) {
next = jQuery(this).siblings(':first');
}
next.children(':first-child').clone().appendTo(jQuery(this));
for (var i=1;i<2;i++) {
next=next.next();
if (!next.length) {
next = jQuery(this).siblings(':first');
}
next.children(':first-child').clone().appendTo(jQuery(this));
}
});
/*circliful ------------------------*/
jQuery('#circle-1').circliful({
animationStep: 5,
foregroundBorderWidth: 5,
backgroundBorderWidth: 5,
percent: 65,
fillColor: '#ebebeb',
iconColor: '#ad926d',
halfCircle: 1
});
jQuery('#circle-2').circliful({
animationStep: 5,
foregroundBorderWidth: 5,
backgroundBorderWidth: 5,
percent: 65,
fillColor: '#ebebeb',
iconColor: '#ad926d',
halfCircle: 1
});
jQuery('#circle-3').circliful({
animationStep: 5,
foregroundBorderWidth: 5,
backgroundBorderWidth: 5,
percent: 65,
fillColor: '#ebebeb',
iconColor: '#ad926d',
halfCircle: 1
});
jQuery('#circle-4').circliful({
animationStep: 5,
foregroundBorderWidth: 5,
backgroundBorderWidth: 5,
percent: 65,
fillColor: '#ebebeb',
iconColor: '#ad926d',
halfCircle: 1
});
/*----------------- parallax background --------------*/
jQuery('#parallaxone').parallax("50%", 0);
/*-------------- video ------------------*/
jQuery('.video').parent().on("click",function () {
if(jQuery(this).children(".video").get(0).paused){
jQuery(this).children(".video").get(0).play();
jQuery(this).children(".img").fadeOut();
}else{
jQuery(this).children(".video").get(0).pause();
jQuery(this).children(".img").fadeIn();
}
});
/*owl carousel slider------------------------*/
jQuery("#testimonial-slider").owlCarousel({
items: 1,
autoplay: true,
loop: true,
dots:false,
mouseDrag:false,
nav: true,
navText : ["",""],
transitionStyle:"fade",
animateIn: 'fadeIn',
animateOut: 'fadeOutLeft'
});
/*-------------- Gmaps ------------------*/
var map;
jQuery('.ev-map-display').each(function() {
var element = jQuery(this).attr('id');
var lan=jQuery('#lan').val();
var lng=jQuery('#lng').val();
map = new GMaps({
el: '#' + element,
center: new google.maps.LatLng(lan,lng),
zoom:5,
scrollwheel: false,
styles: [
{
"featureType": "water",
"elementType": "geometry",
"stylers": [
{
"color": "#222"
}
]
},
{
"featureType": "landscape",
"elementType": "geometry",
"stylers": [
{
"color": "#555"
}
]
},
{
"featureType": "road.highway",
"elementType": "geometry.fill",
"stylers": [
{
"color": "#333333"
},
{
"lightness": 17
}
]
},
{
"featureType": "road.highway",
"elementType": "geometry.stroke",
"stylers": [
{
"color": "#fefefe"
},
{
"lightness": 30
},
{
"weight": 0.3
}
]
},
{
"featureType": "road.arterial",
"elementType": "geometry",
"stylers": [
{
"color": "#333333"
},
{
"lightness":20
}
]
},
{
"featureType": "road.local",
"elementType": "geometry",
"stylers": [
{
"color": "#333333"
},
{
"lightness": 17
}
]
},
{
"featureType": "poi",
"elementType": "geometry",
"stylers": [
{
"color": "#ccc"
},
{
"lightness": 22
}
]
},
{
"featureType": "poi.park",
"elementType": "geometry",
"stylers": [
{
"color": "#dedede"
},
{
"lightness": 22
}
]
},
{
"elementType": "labels.text.stroke",
"stylers": [
{
"visibility": "on"
},
{
"color": "#333"
},
{
"lightness": 7
}
]
},
{
"elementType": "labels.text.fill",
"stylers": [
{
"saturation": 37
},
{
"color": "#333333"
},
{
"lightness": 41
}
]
},
{
"elementType": "labels.icon",
"stylers": [
{
"visibility": "off"
}
]
},
{
"featureType": "transit",
"elementType": "geometry",
"stylers": [
{
"color": "#f2f2f2"
},
{
"lightness": 20
}
]
},
{
"featureType": "administrative",
"elementType": "geometry.fill",
"stylers": [
{
"color": "#000"
},
{
"lightness": 1
}
]
},
{
"featureType": "administrative",
"elementType": "geometry.stroke",
"stylers": [
{
"color": "#000"
},
{
"lightness": 1
},
{
"weight": 1.3
}
]
}
]
});
map.addMarker({
lat: lan,
lng: lng,
title: '',
icon:'',
});
});
/*-------------- accordion ------------------*/
jQuery('#accordion .collapse').on('shown.bs.collapse', function(){
jQuery(this).parent().find(".glyphicon-plus").removeClass("glyphicon-plus").addClass("glyphicon-minus");
}).on('hidden.bs.collapse', function(){
jQuery(this).parent().find(".glyphicon-minus").removeClass("glyphicon-minus").addClass("glyphicon-plus");
});
/*-------------- accordion3 ------------------*/
jQuery('#accordion3 .collapse').on('shown.bs.collapse', function(){
jQuery(this).parent().find(".glyphicon-plus").removeClass("glyphicon-plus").addClass("glyphicon-minus");
}).on('hidden.bs.collapse', function(){
jQuery(this).parent().find(".glyphicon-minus").removeClass("glyphicon-minus").addClass("glyphicon-plus");
});
/*-------------- accordion1 ------------------*/
jQuery('#accordion1 .collapse').on('shown.bs.collapse', function(){
jQuery(this).parent().find(".glyphicon-menu-up").removeClass("glyphicon-menu-up").addClass("glyphicon-menu-down");
}).on('hidden.bs.collapse', function(){
jQuery(this).parent().find(".glyphicon-menu-down").removeClass("glyphicon-menu-down").addClass("glyphicon-menu-up");
});
/*-------------- accordion4 ------------------*/
jQuery('#accordion4 .collapse').on('shown.bs.collapse', function(){
jQuery(this).parent().find(".glyphicon-download").removeClass("glyphicon-download").addClass("glyphicon-upload");
}).on('hidden.bs.collapse', function(){
jQuery(this).parent().find(".glyphicon-upload").removeClass("glyphicon-upload").addClass("glyphicon-download");
});
/*-------------- counterUp ------------------*/
jQuery('h1.int span').counterUp({
delay: 10, // the delay time in ms
time: 800 // the speed time in ms
});
jQuery(window).load(function(){
//Portfolio container
var $container = jQuery('.portfolioContainer');
$container.isotope({
filter: '*',
animationOptions: {
duration: 750,
easing: 'linear',
queue: false
}
});
jQuery('.portfolioFilter a').on('click', function(){
jQuery('.portfolioFilter a').removeClass('current');
jQuery(this).addClass('current');
var selector = jQuery(this).attr('data-filter');
$container.isotope({
filter: selector,
animationOptions: {
duration: 750,
easing: 'linear',
queue: false
}
});
return false;
});
});
/*----------- fixed-nav ------------*/
jQuery('#nav').onePageNav();
/*----------- wow ------------*/
new WOW().init();
/*-------------- Pre-loader ------------------*/
jQuery(window).on('load',function() {
jQuery("#preloader").delay(1000).fadeOut(500);
jQuery(".inTurnBlurringTextG").on('click',function() {
jQuery("#loader").fadeOut(500);
});
});
});