| Server IP : 94.136.191.34 / Your IP : 216.73.216.25 Web Server : Apache System : Linux hostpanel.netbiz.in 5.15.0-130-generic #140-Ubuntu SMP Wed Dec 18 17:59:53 UTC 2024 x86_64 User : omkar.com_6nnuz6y629h ( 10087) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system,proc_open,popen MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/vhosts/omkar.com/httpdocs/assets/js/ |
Upload File : |
function openCity(evt, cityName) {
var i, tabcontent, tablinks;
tabcontent = document.getElementsByClassName("tabcontent");
for (i = 0; i < tabcontent.length; i++) {
tabcontent[i].style.display = "none";
}
tablinks = document.getElementsByClassName("tablinks");
for (i = 0; i < tablinks.length; i++) {
tablinks[i].className = tablinks[i].className.replace(" active", "");
}
document.getElementById(cityName).style.display = "block";
evt.currentTarget.className += " active";
}
if($(window).width() <= 1024) {
$("section,img,p,div, h1, h2, h3, h4, h5,a").removeAttr("data-aos");
}
AOS.init({easing: 'ease-in-out-sine'});
$(document).ready(function(){
// About
$('.tabs-title a').on('click', function(e) {
var currentAttrValue = $(this).attr('href');
$('.tabs-panel' + currentAttrValue).show().siblings().hide();
$(this).parent('li').addClass('active').siblings().removeClass('active');
e.preventDefault();
});
$('.tabs-content .menu ul li a').on('click', function(e) {
var currentAttrValue = $(this).attr('href');
$('.desc-content' + currentAttrValue).show().siblings().hide();
$(this).parent('li').addClass('active').siblings().removeClass('active');
e.preventDefault();
});
$('#main-slider').owlCarousel({
loop:false,
nav:true,
dots: false,
items: 1,
margin: 0,
navText: ["<",">"],
singleitem: true,
autoplay: true,
autoplayHoverPause: true,
});
$('#project-slider').owlCarousel({
loop:false,
nav:true,
items: 1,
margin: 0,
singleitem: true,
autoplay: true,
autoplayHoverPause: true,
});
$('#residential-carousel').owlCarousel({
loop:false,
nav:true,
margin: 30,
dots: false,
responsive:{
0:{items:1, stagePadding: 30},
480:{items:2},
800:{items:3},
1000:{items:4}
}
});
$('#commercial-carousel').owlCarousel({
loop:false,
nav:true,
margin: 30,
dots: false,
responsive:{
0:{items:1, stagePadding: 30},
480:{items:2},
800:{items:3},
1000:{items:4}
}
});
$('#testimonial-slider').owlCarousel({
nav:false,
dots: true,
autoplay: false,
singleitem: true,
Horizontal: true,
items: 1,
autoHeight: true,
autoHeightClass: 'owl-height',
animateOut: 'fadeOut'
});
$('#moments-slider').owlCarousel({
nav:true,
margin: 8,
dots: false,
navText:["<",">"],
responsive:{
0:{items:1},
480:{items:2},
800:{items:3},
1000:{items:4}
}
});
$('#moments-slider1').owlCarousel({
loop:false,
nav:true,
margin: 60,
dots: false,
navText:["<",">"],
responsive:{
0:{items:1, dots: true, nav: false},
480:{items:2, dots: true, nav: false},
767:{items:2},
1000: {items:3}
}
});
$('#amenities-slider').owlCarousel({
stagePadding: 0,
loop:false,
nav:true,
margin: 40,
dots: false,
navText:["<",">"],
items: 3,
responsive:{
0:{items:1},
576:{items:2},
1000:{items:3}
}
});
$('#consult-slider, #images-slider, #walkthrough-slider').owlCarousel({
nav:true,
margin: 30,
dots: false,
navText:["<",">"],
responsive:{
0:{items:1},
576:{items:2},
1000:{items:3}
}
});
$('#invest-slider').owlCarousel({
loop:true,
nav:false,
dots: true,
items: 1,
margin: 0,
singleitem: true,
autoplayHoverPause: true,
});
$('#latest_news_slider').owlCarousel({
loop:false,
nav: true,
dots: false,
items: 3,
margin: 40,
singleitem: true,
autoplay: false,
autoplayHoverPause: true,
slideBy: 3,
mouseDrag: false,
responsive:{
0:{items:1},
700:{items:2},
1000:{items:3}
}
});
$('#press_release_slider').owlCarousel({
loop:false,
nav:true,
dots: false,
items: 3,
margin: 40,
singleitem: true,
autoplayHoverPause: true,
slideBy: 3,
mouseDrag: false,
responsive:{
0:{items:1},
700:{items:2},
1000:{items:3}
}
});
$('#awards_slider').owlCarousel({
loop:false,
nav: true,
dots: false,
items: 2,
margin: 40,
singleitem: true,
autoplayHoverPause: true,
mouseDrag: false,
responsive:{
0:{items:1},
700:{items:2},
1000:{items:3}
}
});
$('#testimonial_slider').owlCarousel({
loop:false,
nav: true,
dots: false,
items: 2,
margin: 40,
singleitem: true,
autoplayHoverPause: true,
mouseDrag: false,
responsive:{
0:{items:1, autoHeight: true, autoHeightClass: 'owl-height'},
700:{items:2},
1000:{items:3}
}
});
$('#partner_testimonial_slider').owlCarousel({
loop:false,
nav: true,
dots: false,
items: 2,
margin: 40,
singleitem: true,
autoplayHoverPause: true,
mouseDrag: false,
navText: ["<",">"],
responsive:{
0:{items:1,autoHeight: true},
1000:{items:2}
},
});
$('#media_coverage_slider').owlCarousel({
loop:false,
nav: true,
dots: false,
items: 3,
margin: 40,
singleitem: true,
autoplayHoverPause: true,
mouseDrag: false,
responsive:{
0:{items:1,autoHeight: true, autoHeightClass: 'owl-height'},
700:{items:2},
1000:{items:3}
}
});
$('#tax_benefits_slider').owlCarousel({
loop:false,
nav:true,
dots: false,
items: 3,
margin: 40,
singleitem: true,
autoplayHoverPause: true,
slideBy: 3,
mouseDrag: false,
responsive:{
0:{items:1, autoHeight: true, autoHeightClass: 'owl-height'},
700:{items:2, autoHeight: true, autoHeightClass: 'owl-height'},
1000:{items:3}
}
});
$('#real_estate_faq_slider').owlCarousel({
loop:false,
nav:true,
dots: false,
items: 3,
margin: 40,
singleitem: true,
autoplayHoverPause: true,
slideBy: 3,
mouseDrag: false,
responsive:{
0:{items:1},
700:{items:2},
1000:{items:3}
}
});
$('#nri_pio_help_slider').owlCarousel({
loop:false,
nav:true,
dots: false,
items: 3,
margin: 40,
singleitem: true,
autoplayHoverPause: true,
slideBy: 3,
mouseDrag: false,
responsive:{
0:{items:1, autoHeight: true, autoHeightClass: 'owl-height'},
700:{items:2, autoHeight: true, autoHeightClass: 'owl-height'},
1000:{items:3}
}
});
$('#testy_slider').owlCarousel({
loop:false,
nav: true,
dots: false,
items: 2,
margin: 40,
singleitem: true,
autoplayHoverPause: true,
mouseDrag: false,
responsive:{
0:{items:1},
700:{items:2},
1000:{items:3}
}
});
$('#director-slider').owlCarousel({
loop:false,
nav:true,
dots: false,
margin: 30,
navText: ["<",">"],
responsive:{
0:{items:1},
540:{items:2},
800:{items:3},
1024:{items:4}
},
autoplay: false,
});
$('#partnerlogos').owlCarousel({
loop:false,
nav:false,
dots: false,
margin: 10,
autoplay: false,
responsive:{
0:{items:3, dots: true},
767:{items:5, dots: true},
1024:{items:8}
},
mouseDrag: false
});
$('#master_plans_slider').owlCarousel({
loop:false,
nav:true,
dots: false,
items: 1,
margin: 0,
singleitem: true,
autoplayHoverPause: true,
});
$('#floor_plans_slider').owlCarousel({
loop:false,
nav:true,
dots: false,
items: 1,
margin: 0,
singleitem: true,
autoplayHoverPause: true,
});
$('#devlp-part-slider').owlCarousel({
loop:false,
nav:false,
dots: false,
margin: 30,
autoplay: false,
responsive:{
0:{items:1, dots: true},
767:{items:3, dots: true},
1024:{items:5}
},
mouseDrag: false,
});
/*$('#director-slider').on('mousewheel', '.owl-stage', function (e) {
if (e.deltaY>0) {
$('#director-slider').trigger('next.owl');
} else {
$('#director-slider').trigger('prev.owl');
}
e.preventDefault();
});*/
$(document).ready(function () {
$(document).on("scroll", onScroll);
//smoothscroll
$('#sub-nav ul li a').on('click', function (e) {
e.preventDefault();
$(document).off("scroll");
//console.log(1);
$(this).addClass("active");
$('#sub-nav ul li a').removeClass("active");
var target = this.hash,
menu = target;
$target = $(target);
var val_ = $target.offset().top - ($("header").innerHeight() + $("#sub-nav").innerHeight());
// console.log(window.location.hash = target);
// .stop()
// $('html, body').animate({
// 'scrollTop': $target.offset().top - ($("header").innerHeight() + $("#sub-nav").innerHeight())
// }, 500);
$('html, body').animate({
'scrollTop': $target.offset().top - ($("header").innerHeight() + $("#sub-nav").innerHeight())
}, 500, 'swing', function () {
// window.location.hash = target;
$(document).on("scroll", onScroll);
});
});
});
// $(window).scroll(function(){
// window.location.hash = target;
// $(document).on("scroll", onScroll);
// })
function onScroll(event){
var scrollPos = $(document).scrollTop();
if ($(this).scrollTop() >= $("#innder-slider, #project-slider").innerHeight() - ($("header").innerHeight() + $("#sub-nav").innerHeight())) {
$("#sub-nav").addClass("sticked").css({"top" : $("header").innerHeight()});
}
else {
$("#sub-nav").removeClass("sticked").css({"top" : "inherit"});
}
$('#sub-nav ul li a').each(function () {
var currLink = $(this);
var refElement = $(currLink.attr("href"));
// console.log(refElement.position().top)
if (refElement.position().top - 150 <= scrollPos && refElement.position().top + refElement.height() >= scrollPos) {
$('#sub-nav ul li a').removeClass("active");
currLink.addClass("active");
}
else{
currLink.removeClass("active");
}
});
}
// Top Button
$('body').prepend('<a href="#" class="back-to-top">Back to Top</a>');
var amountScrolled = 300;
$(window).scroll(function () {
if ($(window).scrollTop() > amountScrolled) {
$('a.back-to-top').fadeIn('slow');
} else {
$('a.back-to-top').fadeOut('slow');
}
});
$('a.back-to-top').click(function () {
$('html, body').animate({
scrollTop: 0
}, 700);
return false;
});
// Career Page tabs
$('.tabs .tab-links a').on('click', function(e) {
var currentAttrValue = $(this).attr('href');
$('.tabs ' + currentAttrValue).show().siblings().hide();
$(this).parent('li').addClass('active').siblings().removeClass('active');
e.preventDefault();
});
// Load More
size_li = $(".projects-lists .list-cols .col-md-6").size();
x=8;
$('.projects-lists .list-cols .col-md-6:lt('+x+')').show();
$('#loadMore').click(function () {
x= (x+8 <= size_li) ? x+8 : size_li;
$('.projects-lists .list-cols .col-md-6:lt('+x+')').show();
});
$('.fancybox').fancybox({
padding : 5,
'nextEffect': 'fade',
'prevEffect': 'fade'
});
$(".vid_fancybox").on("click", function(){
$.fancybox({
href: this.href,
type: $(this).data("type")
});
return false
});
$(".director_box").fancybox({
padding: 12,
maxWidth : 650,
maxHeight : 500,
fitToView : false,
autoSize : false,
closeClick : false,
openEffect : 'none',
closeEffect : 'none'
});
$(".enq_box").fancybox({
padding: 12,
maxWidth : 650,
maxHeight : 400,
fitToView : false,
autoSize : false,
closeClick : false,
openEffect : 'none',
closeEffect : 'none'
});
$(".enq_box_cust").fancybox({
padding: 5,
maxWidth : 650,
maxHeight : 530,
fitToView : false,
autoSize : false,
closeClick : false,
openEffect : 'none',
closeEffect : 'none'
});
$(".whatsapp-no-dsk").fancybox({
padding: 5,
maxWidth : 500,
maxHeight : 300,
fitToView : false,
autoSize : false,
closeClick : false,
openEffect : 'none',
closeEffect : 'none'
});
$(".g-view-btn").click(function(){
$("iframe").show();
$(".s-view").hide();
$(this).hide();
$(".s-view-btn").show();
});
$(".s-view-btn").click(function(){
$("iframe").hide();
$(".s-view").show();
$(this).hide();
$(".g-view-btn").show();
})
});
// Projects Tabs
function openProject(evt, projectName) {
var i, tabcontent, tablinks;
tabcontent = document.getElementsByClassName("tabcontent");
for (i = 0; i < tabcontent.length; i++) {
tabcontent[i].style.display = "none";
}
tablinks = document.getElementsByClassName("tablinks");
for (i = 0; i < tablinks.length; i++) {
tablinks[i].className = tablinks[i].className.replace(" active", "");
}
document.getElementById(projectName).style.display = "block";
evt.currentTarget.className += " active";
}
function close_accordion_section() {
$('.accordion .accordion-section-title').removeClass('active');
$('.accordion .accordion-section-content').slideUp(300).removeClass('open');
}
$('.accordion-section-title').click(function(e) {
var currentAttrValue = $(this).attr('data-source');
if($(e.target).is('.active')) {
close_accordion_section();
}else {
close_accordion_section();
$(this).addClass('active');
$('.accordion ' + currentAttrValue).slideDown(300).addClass('open');
}e.preventDefault();
});
var rangeValue, roiValue, numYears, numMonth;
var loanVal;
function valueChange() {
$('#range').on('change', function() {
rangeValue = $(this).val();
loanVal = rangeValue * 100000;
$('.loan').val(custom_rupees(rangeValue * 100000));
// $('.loan').val(rangeValue * 100000);
});
$('#roi').on('change', function() {
roiValue = $(this).val();
var roi = $('.roi').val(roiValue);
});
$('#year').on('change', function() {
numYears = $(this).val();
$('.year').val(numYears);
});
$('#month').on('change', function() {
numMonth = $(this).val();
$('.month').val(numMonth);
});
}
valueChange();
$('.btnCalculate').click(function() {
var loanAmt = $('.loan').val();
var roiValue = $('.roi').val();
var yrNumber = $('.year').val();
});
$('#swap_yr').css({
'display': 'block'
});
$('.noYrSwaper span').on('click', function() {
var curId = 'swap_' + $(this).attr('id');
$('.yearPanel .slider-rt').css({
'display': 'none'
});
$("#" + curId).fadeIn(500);
$('.noYrSwaper span').removeClass('activeSwapper');
$(this).addClass('activeSwapper');
// $('.emi_span').html($(this).attr('id'));
});
$('.searchBtn').on('click', function() {
$('.searchCon').slideToggle();
});
$(function () {
$("#range").ionRangeSlider({
hide_min_max: true,
keyboard: true,
min: 0,
max: 200,
from: 0,
to: 25,
type: 'single',
step: 1,
postfix: "L",
grid: true
});
$("#roi").ionRangeSlider({
hide_min_max: true,
keyboard: true,
min: 0,
max: 25,
from: 0,
to: 200,
type: 'single',
step: 0.1,
grid: true
});
$("#year").ionRangeSlider({
hide_min_max: true,
keyboard: true,
min: 0,
max:25,
from: 0,
to: 5,
type: 'single',
step: 1,
grid: true
});
$("#month").ionRangeSlider({
hide_min_max: true,
keyboard: true,
min: 0,
max:360,
from: 0,
to: 5,
type: 'single',
step: 1,
grid: true
});
});
function Calculate()
{
var P = document.getElementById('loan1').value;
var R = document.getElementById('roi1').value;
var Year = document.getElementById('year1').value;
var Month = document.getElementById('month1').value;
if(P!= '' || R!= '' || Year!= '' || Month!= ''){
P = P.replace(/,/g, "");
// alert(P);
R = R/1200;
if(jQuery('.noYrSwaper #yr').hasClass('activeSwapper')){
var N=Year*12;
}
if(jQuery('.noYrSwaper #mo').hasClass('activeSwapper')){
var N=Month
}
var principal3 = (P*R*Math.pow(1+R, N))/(Math.pow(1+R, N)-1);
var emi = Math.round(principal3);
var finalemi = (emi.toLocaleString('en-IN', { maximumSignificantDigits: 3 }));
// alert(finalemi);
document.getElementById('finalemi').value = finalemi;
}
}
function custom_rupees(amt){
var x=amt;
x=x.toString();
var lastThree = x.substring(x.length-3);
var otherNumbers = x.substring(0,x.length-3);
if(otherNumbers != '')
lastThree = ',' + lastThree;
var res = otherNumbers.replace(/\B(?=(\d{2})+(?!\d))/g, ",") + lastThree;
return res;
}
$(".collps-btn-wrp").click(function() {
$(".sidebar").toggleClass("nav-open");
//$(this).toggleClass('close-btn');
$('.close-btn').show();
$('body').css('overflow','hidden');
})
$(".close-btn").click(function() {
$(".sidebar").removeClass("nav-open");
$(this).hide();
$('.close-btn:before').css('display','none');
$('body').css('overflow','auto');
})
$(document).ready(function(){
$('#offc-info .col-md-12, .maps').click(function(){
$(this).find('iframe').addClass('clicked')})
.mouseleave(function(){
$(this).find('iframe').removeClass('clicked')});
$('a.scroll-down').on('click', function (e) {
e.preventDefault();
var target = this.hash
$('html, body').stop().animate({
'scrollTop': $(target).offset().top - $("header").innerHeight()
}, 500, 'swing')
})
$(".cls-otp").click(function() {
$('.modal_otp').hide()
})
});
$('#plans .tabs-wrap span').click(function(e){
var data_tab = $(this).data('sec-tab');
$(this).siblings('span').removeClass('active');
$(this).addClass('active');
$('#plans .tabs-content').hide();
$('#'+data_tab).show();
})
$('#gallery .tabs-wrap span').click(function(e){
var data_tab = $(this).data('sec-tab');
$(this).siblings('span').removeClass('active');
$(this).addClass('active');
$('#gallery .tabs-content').hide();
$('#'+data_tab).show();
})
/*$(document).on('click','.project-type-links li a',function(){
$('html, body').animate({ scrollTop: 200 }, 1200);
return false;
});*/