;(function($) {
"use strict";
var navbar=$('.main_header_area .header_menu, .main_header_area .middle_menu_area');
var nav_offset_top = $('.header_menu, .middle_menu_area, .comming_soon_area, .error_area').offset().top + 85;
/*-------------------------------------------------------------------------------
Navbar
-------------------------------------------------------------------------------*/
navbar.affix({
offset: {
top: nav_offset_top,
}
});
navbar.on('affix.bs.affix', function() {
if (!navbar.hasClass('affix')){
navbar.addClass('animated slideInDown');
}
});
navbar.on('affixed-top.bs.affix', function() {
navbar.removeClass('animated slideInDown');
});
/*----------------------------------------------------*/
/* Main Slider js
/*----------------------------------------------------*/
function main_slider(){
if ( $('#main_slider').length ){
$("#main_slider").revolution({
sliderType:"standard",
sliderLayout:"auto",
delay:400000,
disableProgressBar:"on",
navigation: {
onHoverStop: 'off',
touch:{
touchenabled:"on"
},
arrows: {
style:"zeus",
enable:true,
hide_onmobile:true,
hide_under:767,
hide_onleave:true,
hide_delay:200,
hide_delay_mobile:1200,
tmp:'
',
left: {
h_align: "left",
v_align: "center",
h_offset: 50,
v_offset: 0
},
right: {
h_align: "right",
v_align: "center",
h_offset: 50,
v_offset: 0
}
},
},
responsiveLevels:[4096,1199,992,767,480],
gridwidth:[1170,1000,750,700,300],
gridheight:[860,860,860,600,500],
lazyType:"smart",
fallbacks: {
simplifyAll:"off",
nextSlideOnWindowFocus:"off",
disableFocusListener:false,
}
})
}
}
main_slider();
/*----------------------------------------------------*/
/* Main Slider js
/*----------------------------------------------------*/
function main_slider2(){
if ( $('#main_slider2').length ){
$("#main_slider2").revolution({
sliderType:"standard",
sliderLayout:"auto",
delay:4000,
disableProgressBar:"on",
navigation: {
onHoverStop: 'off',
touch:{
touchenabled:"on"
},
arrows: {
style:"zeus",
enable:false,
hide_onmobile:true,
hide_under:767,
hide_onleave:true,
hide_delay:200,
hide_delay_mobile:1200,
tmp:'',
left: {
h_align: "left",
v_align: "center",
h_offset: 50,
v_offset: 0
},
right: {
h_align: "right",
v_align: "center",
h_offset: 50,
v_offset: 0
}
},
},
responsiveLevels:[4096,1199,992,767,480],
gridwidth:[1170,1000,750,700,300],
gridheight:[1080,1080,860,600,500],
lazyType:"smart",
fallbacks: {
simplifyAll:"off",
nextSlideOnWindowFocus:"off",
disableFocusListener:false,
}
})
}
}
main_slider2();
/*----------------------------------------------------*/
/* Main Slider js
/*----------------------------------------------------*/
function main_slider3(){
if ( $('#main_slider3').length ){
$("#main_slider3").revolution({
sliderType:"standard",
sliderLayout:"auto",
delay:4000,
disableProgressBar:"on",
navigation: {
onHoverStop: 'off',
touch:{
touchenabled:"on"
},
arrows: {
style:"zeus",
enable:false,
hide_onmobile:true,
hide_under:767,
hide_onleave:true,
hide_delay:200,
hide_delay_mobile:1200,
tmp:'',
left: {
h_align: "left",
v_align: "center",
h_offset: 50,
v_offset: 0
},
right: {
h_align: "right",
v_align: "center",
h_offset: 50,
v_offset: 0
}
},
},
responsiveLevels:[4096,1199,992,767,480],
gridwidth:[1170,1000,750,700,300],
gridheight:[600,600,600,600,470],
lazyType:"smart",
fallbacks: {
simplifyAll:"off",
nextSlideOnWindowFocus:"off",
disableFocusListener:false,
}
})
}
}
main_slider3();
/*----------------------------------------------------*/
/* Main Slider js
/*----------------------------------------------------*/
function main_slider4(){
if ( $('#main_slider4').length ){
$("#main_slider4").revolution({
sliderType:"standard",
sliderLayout:"auto",
delay:4000,
disableProgressBar:"on",
navigation: {
onHoverStop: 'off',
touch:{
touchenabled:"on"
},
arrows: {
style:"zeus",
enable:true,
hide_onmobile:true,
hide_under:767,
hide_onleave:true,
hide_delay:200,
hide_delay_mobile:1200,
tmp:'',
left: {
h_align: "left",
v_align: "center",
h_offset: 50,
v_offset: 0
},
right: {
h_align: "right",
v_align: "center",
h_offset: 50,
v_offset: 0
}
},
},
responsiveLevels:[4096,1199,992,767,480],
gridwidth:[1170,1000,750,700,300],
gridheight:[954,954,750,600,500],
lazyType:"smart",
fallbacks: {
simplifyAll:"off",
nextSlideOnWindowFocus:"off",
disableFocusListener:false,
}
})
}
}
main_slider4();
/*----------------------------------------------------*/
/* skillSlider
/*----------------------------------------------------*/
// function serviceSlider(){
// var sSlider = $(".r_service_slider");
// if( sSlider.length ){
// sSlider.owlCarousel({
// loop:true,
// margin:30,
// items:1,
// autoplay:true,
// center: true,
// smartSpeed:1000,
// nav: true,
// navText: ['',''],
// responsiveClass:true
// });
// }
// }
// serviceSlider();
/*----------------------------------------------------*/
/* portfolio_isotope
/*----------------------------------------------------*/
// function our_project(){
// if ( $('.project_inner, .recent_project_inner,.promo_inner').length ){
// // Activate isotope in container
// $(".project_inner, .recent_project_inner,.promo_inner").imagesLoaded( function() {
// $(".project_inner, .recent_project_inner,.promo_inner").isotope({
// layoutMode: 'fitRows',
// });
// });
// // Add isotope click function
// $(".project_fillter li, .rec_project_fillter li").on('click',function(){
// $(".project_fillter li, .rec_project_fillter li").removeClass("active");
// $(this).addClass("active");
//
// var selector = $(this).attr("data-filter");
// $(".project_inner, .recent_project_inner,.promo_inner").isotope({
// filter: selector,
// animationOptions: {
// duration: 450,
// easing: "linear",
// queue: false,
// }
// });
// return false;
// });
// }
// }
// our_project();
// $(".form_datetime1").datetimepicker({
// format: "yyyy-mm-dd",
// minView:'month',
// });
//
// $(".form_datetime2").datetimepicker({
// format: "yyyy-mm-dd",
// minView:'month',
// });
$(function () {
var date = new Date();
date.setDate(date.getDate());
$(".form_datetime").datetimepicker({
format: "yyyy-mm-dd",
minView:'month',
startDate: date
});
});
var date = new Date();
date.setDate(date.getDate() + 1);
$(".form_datetime1").datetimepicker({
format: "yyyy-mm-dd",
//todayBtn: true,
minView:'month',
autoclose: true,
startDate: date
})
.on("changeDate", function(e) {
var checkInDate = e.date, $checkOut = $(".form_datetime2");
checkInDate.setDate(checkInDate.getDate() + 1);
$checkOut.datetimepicker("setStartDate", checkInDate);
$checkOut.datetimepicker("setDate", checkInDate).focus();
});
$(".form_datetime2").datetimepicker({
format: "yyyy-mm-dd",
minView:'month',
//todayBtn: true,
autoclose: true
});
/*----------------------------------------------------*/
/* Gallery Slider
/*----------------------------------------------------*/
function gallery_slider(){
if ( $('.resort_gallery').length ){
$('.resort_gallery').owlCarousel({
loop:true,
margin: 30,
items: 4,
nav:true,
autoplay: true,
smartSpeed: 1500,
dots:true,
navContainer: '.resort_gallery_inner',
navText: ['',''],
responsiveClass: true,
responsive: {
0: {
items: 1,
},
600: {
items: 2,
},
800: {
items: 3,
},
1060: {
items: 4,
}
}
})
}
}
gallery_slider();
/*----------------------------------------------------*/
/* Gallery Slider
/*----------------------------------------------------*/
function resort_full_slider(){
if ( $('.resort_full_gallery').length ){
$('.resort_full_gallery').owlCarousel({
loop:true,
margin: 0,
items: 4,
nav:false,
autoplay: true,
smartSpeed: 1500,
dots:true,
responsiveClass: true,
responsive: {
0: {
items: 1,
},
400: {
items: 2,
},
600: {
items: 3,
},
800: {
items: 4,
}
}
})
}
}
resort_full_slider();
/*----------------------------------------------------*/
/* Gallery Slider
/*----------------------------------------------------*/
function resot_slider(){
if ( $('.choose_resot_slider, .room_details_img').length ){
$('.choose_resot_slider, .room_details_img').owlCarousel({
loop:true,
margin: 0,
items: 1,
nav:true,
autoplay: true,
smartSpeed: 1500,
dots:true,
navContainer: '.choose_resot_slider, .room_details_img',
navText: ['',''],
responsiveClass: true,
})
}
}
resot_slider();
function resot_slider1(){
if ( $('.choose_resot_slider_, .room_details_img_').length ){
$('.choose_resot_slider_, .room_details_img_').owlCarousel({
loop:true,
margin: 0,
items: 1,
nav:true,
autoplay: true,
smartSpeed: 1500,
dots:true,
navContainer: '.choose_resot_slider_, .room_details_img_',
navText: ['',''],
responsiveClass: true,
})
}
}
resot_slider1();
function resot_slider3(){
if ( $('.choose_resot_slider_3, .room_details_img_3').length ){
$('.choose_resot_slider_3, .room_details_img_3').owlCarousel({
loop:true,
margin: 0,
items: 1,
nav:true,
autoplay: true,
smartSpeed: 1500,
dots:true,
navContainer: '.choose_resot_slider_3, .room_details_img_3',
navText: ['',''],
responsiveClass: true,
})
}
}
resot_slider3();
function resot_slider4(){
if ( $('.choose_resot_slider_4, .room_details_img_3').length ){
$('.choose_resot_slider_4, .room_details_img_3').owlCarousel({
loop:true,
margin: 0,
items: 1,
nav:true,
autoplay: true,
smartSpeed: 1500,
dots:true,
navContainer: '.choose_resot_slider_4, .room_details_img_3',
navText: ['',''],
responsiveClass: true,
})
}
}
resot_slider4();
/*----------------------------------------------------*/
/* Explor Room Slider
/*----------------------------------------------------*/
function explor_slider(){
if ( $('.explor_slider').length ){
$('.explor_slider').owlCarousel({
loop:true,
margin: 30,
items: 3,
nav:true,
autoplay: false,
smartSpeed: 1500,
dots:true,
navContainerClass: 'explor_slider',
navText: ['',''],
responsiveClass: true,
responsive: {
0: {
items: 1,
},
650: {
items: 2,
},
992: {
items: 3,
}
}
})
}
}
explor_slider();
/*----------------------------------------------------*/
/* Gallery Slider
/*----------------------------------------------------*/
function clients_slider(){
if ( $('.clients_slider').length ){
$('.clients_slider').owlCarousel({
loop:true,
margin: 0,
items: 1,
nav:false,
autoplay: false,
smartSpeed: 1500,
dots:false,
responsiveClass: true,
})
}
}
clients_slider();
/*----------------------------------------------------*/
/* Magnificpopup js
/*----------------------------------------------------*/
$(document).ready(function() {
$('.popup-youtube').magnificPopup({
disableOn: 700,
type: 'iframe',
mainClass: 'mfp-fade',
removalDelay: 160,
preloader: false,
fixedContentPos: false
});
});
$('.counter').counterUp({
delay: 10,
time: 1000
});
$(".aminities_item").css({
height: $(".aminities_item").outerHeight(true)
});
/*----------------------------------------------------*/
/* portfolio_isotope
/*----------------------------------------------------*/
function gallery_two_column(){
if ( $('.grid_gallery_item_inner').length ){
// Activate isotope in container
$(".grid_gallery_item_inner").imagesLoaded( function() {
$(".grid_gallery_item_inner").isotope({
layoutMode: 'fitRows',
});
});
}
}
gallery_two_column();
// Add isotope click function
function gallery_click(){
$(".gallery_filter li").on('click',function(){
$(".gallery_filter li").removeClass("active");
$(this).addClass("active");
var selector = $(this).attr("data-filter");
$(".grid_gallery_item_inner, .cobage_g_masonary").isotope({
filter: selector,
animationOptions: {
duration: 450,
easing: "linear",
queue: false,
}
});
return false;
});
}
gallery_click();
$('.cobage_g_masonary').imagesLoaded(function(){
$('.cobage_g_masonary').isotope({
layoutMode: 'masonry',
percentPosition:true,
columnWidth: 1
// masonry: {
// columnWidth: '.grid-sizer, .grid-sizer_two',
// }
})
});
/*----------------------------------------------------*/
/* Simple LightBox js
/*----------------------------------------------------*/
$('.imageGallery1 .light').simpleLightbox();
$(document).ready(function() {
$('.popup-with-zoom-anim').magnificPopup({
type: 'inline',
fixedContentPos: false,
fixedBgPos: true,
overflowY: 'auto',
closeBtnInside: true,
preloader: false,
midClick: true,
removalDelay: 300,
mainClass: 'my-mfp-zoom-in'
});
$('.popup-with-move-anim').magnificPopup({
type: 'inline',
fixedContentPos: false,
fixedBgPos: true,
overflowY: 'auto',
closeBtnInside: true,
preloader: false,
midClick: true,
removalDelay: 300,
mainClass: 'my-mfp-slide-bottom'
});
});
/*----------------------------------------------------*/
/* Google map js
/*----------------------------------------------------*/
if ( $('#mapBox').length ){
var $lat = $('#mapBox').data('lat');
var $lon = $('#mapBox').data('lon');
var $zoom = $('#mapBox').data('zoom');
var $marker = $('#mapBox').data('marker');
var $info = $('#mapBox').data('info');
var $markerLat = $('#mapBox').data('mlat');
var $markerLon = $('#mapBox').data('mlon');
var map = new GMaps({
el: '#mapBox',
lat: $lat,
lng: $lon,
scrollwheel: false,
scaleControl: true,
streetViewControl: false,
panControl: true,
disableDoubleClickZoom: true,
mapTypeControl: false,
zoom: $zoom,
styles: [
{
"featureType": "administrative.country",
"elementType": "geometry",
"stylers": [
{
"visibility": "simplified"
},
{
"hue": "#ff0000"
}
]
}
]
});
map.addMarker({
lat: $markerLat,
lng: $markerLon,
icon: $marker,
infoWindow: {
content: $info
}
})
}
/*----------------------------------------------------*/
/* Google map js
/*----------------------------------------------------*/
if ( $('#mapBox2').length ){
var $lat = $('#mapBox2').data('lat');
var $lon = $('#mapBox2').data('lon');
var $zoom = $('#mapBox2').data('zoom');
var $marker = $('#mapBox2').data('marker');
var $info = $('#mapBox2').data('info');
var $markerLat = $('#mapBox2').data('mlat');
var $markerLon = $('#mapBox2').data('mlon');
var map = new GMaps({
el: '#mapBox2',
lat: $lat,
lng: $lon,
scrollwheel: false,
scaleControl: true,
streetViewControl: false,
panControl: true,
disableDoubleClickZoom: true,
mapTypeControl: false,
zoom: $zoom,
styles: [
{
"featureType": "water",
"elementType": "geometry.fill",
"stylers": [
{
"color": "#dcdfe6"
}
]
},
{
"featureType": "transit",
"stylers": [
{
"color": "#808080"
},
{
"visibility": "off"
}
]
},
{
"featureType": "road.highway",
"elementType": "geometry.stroke",
"stylers": [
{
"visibility": "on"
},
{
"color": "#dcdfe6"
}
]
},
{
"featureType": "road.highway",
"elementType": "geometry.fill",
"stylers": [
{
"color": "#ffffff"
}
]
},
{
"featureType": "road.local",
"elementType": "geometry.fill",
"stylers": [
{
"visibility": "on"
},
{
"color": "#ffffff"
},
{
"weight": 1.8
}
]
},
{
"featureType": "road.local",
"elementType": "geometry.stroke",
"stylers": [
{
"color": "#d7d7d7"
}
]
},
{
"featureType": "poi",
"elementType": "geometry.fill",
"stylers": [
{
"visibility": "on"
},
{
"color": "#ebebeb"
}
]
},
{
"featureType": "administrative",
"elementType": "geometry",
"stylers": [
{
"color": "#a7a7a7"
}
]
},
{
"featureType": "road.arterial",
"elementType": "geometry.fill",
"stylers": [
{
"color": "#ffffff"
}
]
},
{
"featureType": "road.arterial",
"elementType": "geometry.fill",
"stylers": [
{
"color": "#ffffff"
}
]
},
{
"featureType": "landscape",
"elementType": "geometry.fill",
"stylers": [
{
"visibility": "on"
},
{
"color": "#efefef"
}
]
},
{
"featureType": "road",
"elementType": "labels.text.fill",
"stylers": [
{
"color": "#696969"
}
]
},
{
"featureType": "administrative",
"elementType": "labels.text.fill",
"stylers": [
{
"visibility": "on"
},
{
"color": "#737373"
}
]
},
{
"featureType": "poi",
"elementType": "labels.icon",
"stylers": [
{
"visibility": "off"
}
]
},
{
"featureType": "poi",
"elementType": "labels",
"stylers": [
{
"visibility": "off"
}
]
},
{
"featureType": "road.arterial",
"elementType": "geometry.stroke",
"stylers": [
{
"color": "#d6d6d6"
}
]
},
{
"featureType": "road",
"elementType": "labels.icon",
"stylers": [
{
"visibility": "off"
}
]
},
{},
{
"featureType": "poi",
"elementType": "geometry.fill",
"stylers": [
{
"color": "#dadada"
}
]
}
]
});
map.addMarker({
lat: $markerLat,
lng: $markerLon,
icon: $marker,
infoWindow: {
content: $info
}
})
}
})(jQuery)