1 2$(document).ready(function(){ 3 4 // $('.thankyoupop').hide(); 5 6 // $('.swiper-slide a').click(function(e) { 7 // e.preventDefault(); 8 // }); 9 10 11 12 13 14 15 // $(".fadein-content").each(function(){ 16 // var x = $(document).scrollTop(); 17 // var y = $(this).position(); 18 // // var x = $(document).scrollTop(); 19 // // var x = $(this).offset(); 20 // if(y.top = x ) 21 // { 22 // $(this).fadeIn().css({"top":"0", "opacity" : 1}); 23 24 25 // } 26 // }); 27 28 29 var winWidth = $(window).width(); 30 31 $(window).resize(function() { 32 winWidth = $(window).width(); 33 }); 34 35 36 /*----------------------------------- 37 Animatie Numbers Function 38 ------------------------------------*/ 39 40 $("#number-proj1,#number-proj3").animateNumbers(4000, true, 7000); 41 $("#number-proj2,#number-proj4").animateNumbers(3, true, 7000); 42 43 44 /*----------------------------------- 45 Navigation Bar Function 46 ------------------------------------*/ 47 $(".navbtn").click(function(){ 48 $(".nav-collapse").css("right","0"); 49 $("header").css("right","200px"); 50 $("body").css("right","200px"); 51 52 }); 53 54 $(".close-btn,.nav-link").click(function(){ 55 $(".nav-collapse").css("right","-100%"); 56 $("header").css("right","0px"); 57 $("body").css("right","0px"); 58 }); 59 60 61 // $('.carouselExampleCaptions').carousel('pause'); 62// $(window).load(function() { 63// $('.carouselExampleCaptions').carousel('pause'); 64// }); 65 66 /*----------------------------------- 67 Why Choose Us? Function 68 ------------------------------------*/ 69 70 71 $("#strength1").click(function(){ 72 73 $("#strength-cont1").fadeIn(); 74 }); 75 76 77 78 /*----------------------------------- 79 Vision Mission Function 80 ------------------------------------*/ 81 82 $(".mission-cover").hover(function(){ 83 84 if (winWidth <= 768) { 85 $(".mission-cover").css("bottom","-25%"); 86 } else { 87 $(".mission-cover").css("right","-10%"); 88 } 89 90 91 },function(){ 92 93 if (winWidth <= 768) { 94 $(".mission-cover").css("bottom","-50%"); 95 } else { 96 $(".mission-cover").css("right","-50%"); 97 } 98 99 }); 100 101 102 103 $(".vision-cover").hover(function(){ 104 105 if (winWidth <= 768) { 106 $(".mission-cover").css("bottom","-70%"); 107 } else { 108 $(".mission-cover").css("right","-80%"); 109 } 110 111 112 },function(){ 113 114 if (winWidth <= 768) { 115 $(".mission-cover").css("bottom","-50%"); 116 } else { 117 $(".mission-cover").css("right","-50%"); 118 } 119 }); 120 121 122 123 /*---------------------------------------- 124 Project Page Project Section Function 125 ----------------------------------------*/ 126 127 128 $(".projects_section").hover(function(){ 129 $(".projimg img",this).css("box-shadow","0px 3px 15px 1px") 130 },function(){ 131 $(".projimg img",this).css("box-shadow","0px 3px 15px -3px") 132 }); 133 134 135 136 /*----------------------------------- 137 Image Pop Up Function 138 ------------------------------------*/ 139 140 function createpopup(){ 141 $("body").append($('<div/>').attr("id", "newDiv1").addClass("popped-image-block")); 142 $("#newDiv1").append($('<div/>').attr("id", "close-btn-new").addClass("popped-close").text("X")); 143 // $("body").append($('<div/>').attr("id", "newDiv2").addClass("image-center")); 144 145 $("body").append($('<img/>').attr("id", "newimg").attr("src","")) 146 147 } 148 149 createpopup(); 150 151 $(".image-pop-up").click(function(){ 152 var imgsrc = $(this).attr("src"); 153 154 $(".popped-image-block").fadeIn(); 155 $("#newimg").attr("src",imgsrc); 156 $("#newimg").css("transform","translate(-50%, -50%) scale(1)"); 157 158 159 }); 160 161 162 $(".popped-close,.popped-image-block").click(function(){ 163 164 $(".popped-image-block").fadeOut(); 165 $("#newimg").css("transform","translate(-50%, -50%) scale(0)"); 166 167 168 }); 169 170 171 172 173 174 // $(".mission-cover").hover(function(){ 175 // $(".mission-cover").css("right","-10%"); 176 // },function(){ 177 // $(".mission-cover").css("right","-50%"); 178 // }); 179 180 // $(".vision-cover").hover(function(){ 181 // $(".mission-cover").css("right","-80%"); 182 // },function(){ 183 // $(".mission-cover").css("right","-50%"); 184 // }); 185 186 187 188 189 190 191 192 193// setTimeout(function(){ 194// $(".navbtn").trigger("click"); 195// },2000) 196 197 198// setTimeout( function() { 199// var h = parseInt(window.innerHeight); 200// var w = parseInt(window.innerWidth); 201 202// if(w <= 500) { 203// //max-width 500px 204// $(".navbtn").trigger("click"); 205 206// } 207 208// },3000) 209 210 /*----------------------------------- 211 Floor Plans Function 212 ------------------------------------*/ 213 214 215 $("#plans1").click(function(){ 216 $("#plans1").addClass("plans-active"); 217 $("#plans2,#plans3").removeClass("plans-active"); 218 $("#floorplans2,#floorplans3").hide(); 219 $("#floorplans1").fadeIn(); 220 221 222 }); 223 224 $("#plans2").click(function(){ 225 $("#plans2").addClass("plans-active"); 226 $("#plans1, #plans3").removeClass("plans-active"); 227 $("#floorplans1,#floorplans3").hide(); 228 $("#floorplans2").fadeIn(); 229 230 231 }); 232 233 $("#plans3").click(function(){ 234 $("#plans3").addClass("plans-active"); 235 $("#plans1, #plans2").removeClass("plans-active"); 236 $("#floorplans1,#floorplans2").hide(); 237 $("#floorplans3").fadeIn(); 238 239 }); 240 241 242 243 244 245 246 /*----------------------------------- 247 Fade In Content 248 ------------------------------------*/ 249 250 $(".fadein-content").each(function(){ 251 var x = $(this).position(); 252 253 if(x.top < 650) 254 { 255 $(this).fadeIn().css({"top":"0", "opacity" : 1}); 256 257 258 } 259 }); 260 261 262 263 $('body').scroll(function(){ 264 265 266 $(".fadein-content").each(function(){ 267 var x = $(this).position(); 268 if(x.top < 650) 269 { 270 $(this).fadeIn().css({"top":"0", "opacity" : 1}); 271 272 273 } 274 }); 275 // $( ".fadein-content" ).trigger( "click" ); 276 277 // console.log(x.top); 278 }); 279 280 281 282 /*----------------------------------- 283 Fixed header 284 ------------------------------------*/ 285 286 287 $(document).scroll(function(){ 288 289 290 var x = $(document).scrollTop(); 291 // console.log(x); 292 if(x >= 10) 293 { 294 // alert(); 295 $('header').addClass('headfixed'); 296 $('header .nav a').css({'color':'#000','font-size':'18px'}); 297 $('header .navbtn').css({'color':'#000'}); 298 // $('header .logo img').css({'filter':'brightness()','width':'80px'}); 299 300 } 301 else{ 302 $('header').removeClass('headfixed'); 303 // $('header .navbtn').css({'color':'#fff'}); 304 $('header .nav a').css({'color':'#000','font-size':'20px'}); 305 // $('header .logo img').css({'filter':'brightness()','width':'80px'}); 306 } 307 308 309 }); 310 311 312 $('#carouselExampleCaptions').carousel({ 313 interval: 3000 314 }); 315 316 317 318 319 320 321 /*----------------------------------- 322 Toggle Function 323 ------------------------------------*/ 324 325 (function($) { 326 $.fn.clickToggle = function(func1, func2) { 327 var funcs = [func1, func2]; 328 this.data('toggleclicked', 0); 329 this.click(function() { 330 var data = $(this).data(); 331 var tc = data.toggleclicked; 332 $.proxy(funcs[tc], this)(); 333 data.toggleclicked = (tc + 1) % 2; 334 }); 335 return this; 336 }; 337 }(jQuery)); 338 339 340 /*----------------------------------- 341 Enquire Now 342 ------------------------------------*/ 343 344 $(".enquire_now").clickToggle(function(){ 345 $(this).css("right","280px"); 346 $(".enquire_now_form").css("right","0"); 347 },function(){ 348 $(this).css("right","0px"); 349 $(".enquire_now_form").css("right","-280px"); 350 bro_flag = 0; 351 }); 352 353 354 355 /*----------------------------------- 356 Overlay logo 357 ------------------------------------*/ 358 setTimeout(() => { 359 360 $(".overlaylogo").fadeOut(700); 361 }, 2000); 362 363 364 365 /*----------------------------------- 366 blog btn 367 ------------------------------------*/ 368 $('.blog_buttons').click(function(){ 369 $('.blog_buttons').removeClass("activecatbtn"); 370 $(this).addClass("activecatbtn"); 371 var category = $(this).attr('data-type') 372 $(this).addClass("activecatbtn"); 373 374 if(category == 'all'){ 375 $("#blogsouter .col").fadeIn(); 376 } 377 else{ 378 $("#blogsouter .col").hide(); 379 $("#blogsouter ."+category).fadeIn(); 380 } 381 }); 382 383 384 $(function() { 385 if(winWidth <= 768) 386 { 387 var id2convert = "buttonsouter", 388 divs = $("div", "#" + id2convert), 389 select = $("<select class=\"dropbuttonouter\" id=\"" + id2convert + "\">"); 390 391 divs.each(function() { 392 var datacat = $(this).attr('data-type'); 393 394 var text = $(this).text(); 395 select.append("<option class=\"dropbutton\" data-type=\"" + datacat + "\">
395" + text + "</option>"); 396 }); 397 398 divs.parent().replaceWith(select); 399 } 400 401 $('.dropbuttonouter').change(function() { 402 // alert($('option:selected').text()); 403 var category = $('option:selected').attr('data-type'); 404 if(category == 'all'){ 405 $("#blogsouter .col").fadeIn(); 406 } 407 else{ 408 $("#blogsouter .col").hide(); 409 $("#blogsouter ."+category).fadeIn(); 410 } 411 412 413 }); 414 415 }) 416 417 418 419 420 /*----------------------------------- 421 blog admin 422 ------------------------------------*/ 423 $('.blog_buttons').click(function(){ 424 $('.blog_buttons').removeClass("activecatbtn"); 425 $(this).addClass("activecatbtn"); 426 var category = $(this).attr('data-type') 427 $(this).addClass("activecatbtn"); 428 429 if(category == 'all'){ 430 $("#sec-adminblog .outercol").fadeIn(); 431 } 432 else{ 433 $("#sec-adminblog .outercol").hide(); 434 $("#sec-adminblog ."+category).fadeIn(); 435 } 436 }); 437 438 439 $(function() { 440 if(winWidth <= 480) 441 { 442 var id2convert = "buttonsouter", 443 divs = $("div", "#" + id2convert), 444 select = $("<select class=\"dropbuttonouter\" id=\"" + id2convert + "\">"); 445 446 divs.each(function() { 447 var datacat = $(this).attr('data-type'); 448 449 var text = $(this).text(); 450 select.append("<option class=\"dropbutton\" data-type=\"" + datacat + "\">" + text + "</option>"); 451 }); 452 453 divs.parent().replaceWith(select); 454 } 455 456 $('.dropbuttonouter').change(function() { 457 // alert($('option:selected').text()); 458 var category = $('option:selected').attr('data-type'); 459 if(category == 'all'){ 460 $("#sec-adminblog .outercol").fadeIn(); 461 } 462 else{ 463 $("#sec-adminblog .outercol").hide(); 464 $("#sec-adminblog ."+category).fadeIn(); 465 } 466 467 468 }); 469 470 }) 471 472 473 /*----------------------------------- 474 EMI Cal 475 ------------------------------------*/ 476 477 function addCommas(x) { 478 var parts = x.toString().split("."); 479 parts[0] = parts[0].replace(/\B(?=(\d{3})+(?!\d))/g, ","); 480 return parts.join("."); 481 } 482 483 484 $("#principalamount").val(10000000); 485 $("#interestrate").val(10); 486 $("#tenure").val(180); 487 488 // $(".emirange").on('input',function(){ 489 490 // var cl = $(this).attr('data-cl'); 491 // var currentval = $(this).val(); 492 // $("#"+cl).val(currentval); 493 494 // }); 495 496 497 $(".emirange").on('input',function(){ 498 var cl = $(this).attr('data-cl'); 499 var currentval = $(this).val(); 500 $("#"+cl).val(currentval); 501 502 // var p = $("#principalamount").val(); 503 // var rtemp = $("#interestrate").val(); 504 // var r = rtemp/12/100; 505 506 // var n = $("#tenure").val(); 507 508 var p = $("#principalamount").val(); 509 var rtemp = $("#interestrate").val(); 510 var r = rtemp/12/100; 511 512 var n = $("#tenure").val(); 513 514 515 var e=ti=tp=0; 516 517 temp = Math.pow((1+r),n); 518 519 e = (p * r * temp)/(temp-1); 520 521 ti = (e * n) - p; 522 523 tp = parseInt(p) + parseInt(ti); 524 525 526 527 // monthlyEMI totalinterest totalpayment 528 529 $("#monthlyEMI").html(addCommas(Math.round(e))); 530 $("#princi").html(addCommas(Math.round(p))); 531 $("#totalinterest").html(addCommas(Math.round(ti))); 532 $("#totalpayment").html(addCommas(Math.round(tp))); 533 534 console.log("Emi: "+Math.round(e)+" Total Interest: "+Math.round(ti)+" Total Payable: "+Math.round(tp)); 535 }); 536 537 538 539 540 541 }); 542 543 544 545 546 547 /*----------------------------------- 548 Submit Form 549 ------------------------------------*/ 550 551 var bro_flag = 0; 552 553// function SubForm(){ 554// $(".sub_btn").attr("disabled","true"); 555// $.ajax({ 556// url:"https://api.apispreadsheets.com/data/17966/", 557// type:"post", 558// data:$("#myForm").serializeArray(), 559// success: function(){ 560 561 562// if(bro_flag == 1){ 563// $('.bro-link-a span').trigger("click"); 564// } 565// $('.thankyoupop').fadeIn(); 566// setTimeout(function(){ 567// $('.thankyoupop').fadeOut(); 568// },4000); 569// bro_flag = 0; 570// $('.sub_btn').removeAttr("disabled"); 571// $('#formresetnew').trigger('click'); 572// }, 573// error: function(){ 574// alert("There was an error :("); 575// $('.sub_btn').removeAttr("disabled"); 576// } 577// }); 578// } 579 580 581 582 583 document.addEventListener('readystatechange', event => { 584 585 // When HTML/DOM elements are ready: 586 // if (event.target.readyState === "interactive") { //does same as: ..addEventListener("DOMContentLoaded".. 587 // $(".overlaylogo").fadeOut(700); 588 // } 589 590 // When window loaded ( external resources are loaded too- `css`,`src`, etc...) 591 // if (event.target.readyState === "complete") { 592 593 // } 594 595 596 597 598 599}); 600 601 602// Download Brochure 603 604$('.dbroch').click(function(){ 605 // $('.bro-link-a span').trigger("click"); 606 607 bro_flag = 1; 608 $(".enquire_now").trigger("click"); 609 610 611}); 612 613 614 615 function handleFormSubmit(e,id) { 616 e.preventDefault() 617 e.stopPropagation() 618 let name = document.querySelector(`#${id} [name=name]`).value 619 let email = document.querySelector(`#${id} [name=email]`).value 620 let phone = document.querySelector(`#${id} [name=phone]`).value 621 let project = document.querySelector(`#${id} [name=project]`).value
622 let ccode = "in" 623 let agree = true;//document.querySelector(`#${id} [name=agree]`).value 624 625 // if(phone.length>0 && phone[0]=="0"){ 626 // phone = phone.slice(1) 627 // } 628 629 // let errordiv = document.querySelector(`#${id} #error`) 630 631 let error = '' 632 // errordiv.innerHTML = error 633 634 // if((ccode=='in' && phone.length!=10) || (ccode!='in' && phone.length < 5)){ 635 // error = 'Invalid Phone' 636 // } else if(!agree) { 637 // error = 'Please agree to terms' 638 // } 639 640 if(error!=''){ 641 errordiv.innerHTML = error 642 return 643 } 644 645 $(".sub_btn").attr("disabled","true"); 646 647 648 let source = window.location.href.split('utm_source=')[1] || '' 649 let sub_source = window.location.href.split('utm_medium=')[1] || '' 650 let gclid = window.location.href.split('gclid=')[1] || '' 651 let fbadid = window.location.href.split('fbadid=')[1] || '' 652 653 source = source.split('&')[0] 654 sub_source = sub_source.split('&')[0] 655 gclid = gclid.split('&')[0] 656 fbadid = fbadid.split('&')[0] 657 658 window.submitLeadToAnarock({ 659 name: name, 660 phone: phone, 661 country_code: ccode, 662 email: email, 663 remarks: project, 664 source: source, 665 subsource: sub_source, 666 campaign_id: 'website-nrose', 667 channel_name: 'corporatesite', 668 api_key: 'b7e52c5feb69571c', 669 onLeadSuccessCallback: function(){ 670 window.dataLayer = window.dataLayer || [] 671 window.dataLayer.push({event:'formsubmit'}) 672 673 if(bro_flag == 1){ 674 $('.bro-link-a span').trigger("click"); 675 } 676 // $('.thankyoupop').fadeIn(); 677 // setTimeout(function(){ 678 // $('.thankyoupop').fadeOut(); 679 // },4000); 680 window.location.href = 'thanks.php'; 681 bro_flag = 0; 682 $('.sub_btn').removeAttr("disabled"); 683 $('#formresetnew').trigger('click'); 684 $('.enquire_now').trigger('click'); 685 686 // document.querySelector("#thankyou-overlay").style['display'] = 'block' 687 // window.location.href = window.location.protocol+'//'+window.location.hostname+'/thankyou.html' 688 //alert("successfully submited") 689 }, 690 onLeadFailureCallback: function(){alert("error occured")}, 691 onInvalidPhone: function(){alert("please enter valid number")}, 692 env: 'production' 693 }) 694 } 695 $('.form :input[name=phone]').each(function (index) { 696 $(this).intlTelInput({ 697 geoIpLookup: function (callback) { 698 $.get("https://crm.netbizlabs.com/campaign/ip2nation").always(function (resp) { 699 callback(resp); 700 }); 701 }, 702 initialCountry: "in", 703 nationalMode: true, 704 autoHideDialCode: false, 705 separateDialCode: true, 706 utilsScript: "js/utils.js" 707 }); 708 }) 709 710 711 712
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.