40){
jQuery("#hotel-list , #availability-checker").addClass("twoLine");
}else{
jQuery("#hotel-list, #availability-checker").removeClass("twoLine");
}
}else{
if(a > 30){
jQuery("#hotel-list , #availability-checker").addClass("twoLine");
}else{
jQuery("#hotel-list, #availability-checker").removeClass("twoLine");
}
}
//Set Start/END dates fucntion
if(getText=="Capri by Fraser, China Square ,Singapore"){
newStart = '06/05/2019';
newEnd = '07/05/2019';
setDate(newStart,newEnd)
}else if(getText=="Fraser Residence Chengdu, China"){
newStart = '01/05/2020';
newEnd = '02/05/2020';
setDate(newStart,newEnd)
}else if(getText=="Capri by Fraser, Leipzig / Germany"){
newStart = '18/05/2020';
newEnd = '19/05/2020';
setDate(newStart,newEnd);
}else if(getText=="IIDL Suites Akasaka, Tokyo"){
newStart = '07/08/2020';
newEnd = '08/08/2020';
setDate(newStart,newEnd);
}else{
jQuery("#date-in").datepicker( 'option', 'minDate', 0 );
jQuery("#date-out").datepicker( 'option', 'minDate', 1 );
jQuery("#date-in").datepicker('setDate', new Date());
jQuery("#date-out").datepicker('setDate', new Date());
}
if(getText == 'Capri by Fraser, Johor Bahru, Malaysia'){
jQuery('#adults option').filter(function(){
return parseInt(this.value,10) > 3;
}).remove();
}else{
var adultLengh = jQuery('#adults option').length;
var i ='';
if (adultLengh == 3) {
for(i = 4; i 40){
jQuery("#hotel-list , #availability-checker, .iniText").addClass("twoLine");
}else{
jQuery("#hotel-list, #availability-checker, .iniText").removeClass("twoLine");
}
}else{
if(b > 30){
jQuery("#hotel-list , #availability-checker, .iniText").addClass("twoLine");
}else{
jQuery("#hotel-list, #availability-checker, .iniText").removeClass("twoLine");
}
}
});
/***END NEW BM SEARCH***/
if (browserWidth > 767) {
jQuery('input#promo-code').val('Optional');
}
jQuery('#booking-form').submit(function(e){
var setCodeVal = "promo";
if(jQuery('input#promo-code').val()=='' || jQuery('input#promo-code').val()=='Optional'){
jQuery('#promo-code').removeAttr('name');
}else{
jQuery('#promo-code').attr('name',setCodeVal);
return true;
}
if(_fraser.language == "ja"){
if(jQuery('#hotName').text() == 'Fraser Residence Nankai, Osaka Japan' || jQuery('.hotel .iniText').text() == 'Fraser Residence Nankai, Osaka'){
e.preventDefault();
var checkin = document.getElementById("us-date-in").value;
var checkout = document.getElementById("us-date-out").value;
var dateInNew = checkin.split("-");
var dateOutNew = checkout.split("-");
var formattedDateIn = dateInNew[0]+'/'+dateInNew[1]+'/'+dateInNew[2];
var formattedDateOut = dateOutNew[0]+'/'+dateOutNew[1]+'/'+dateOutNew[2];
var adults = parseInt(document.getElementById("adults").value);
var children = parseInt(document.getElementById("children").value);
window.TriplaBookingWidget ('search_multiple_room', {
checkIn: formattedDateIn,
checkOut: formattedDateOut,
rooms: [
{adults: adults, children: children}
]
},'3f5380d99d09a30ba31e2833e786b34c')
}
}
if(jQuery('#hotName').text() == 'The Park International Hotel, London'){
var dateI = document.getElementById("us-date-in").value;
var dateO = document.getElementById("us-date-out").value;
//return new Date( 2016,08,09);
var dateInNew = dateI.split("index.html");
var dateOutNew = dateO.split("index.html");
var dateInNewPass = new Date (dateInNew[2],dateInNew[0], dateInNew[1]),
dateInn = new Date( dateInNewPass.getTime() + (24 * 60 * 60 * 1000));
var dateOutNewPass = new Date (dateOutNew[2],dateOutNew[0], dateOutNew[1]),
dateOutn = new Date( dateOutNewPass.getTime() + (24 * 60 * 60 * 1000));
if('en' == 'en') {
jQuery('#us-date-in').val(dateInNew[0]+'/'+dateInNew[1]+'/'+dateInNew[2]);
jQuery('#us-date-out').val(dateOutNew[0]+'/'+dateOutNew[1]+'/'+dateOutNew[2]);
}else if('en' == 'ru'){
jQuery('#us-date-in').val(dateInNew[1]+'/'+dateInNew[0]+'/'+dateInNew[2]);
jQuery('#us-date-out').val(dateOutNew[1]+'/'+dateOutNew[0]+'/'+dateOutNew[2]);
}else{
jQuery('#us-date-in').val(dateInNew[1]+'/'+dateInNew[0]+'/'+dateInNew[2]);
jQuery('#us-date-out').val(dateOutNew[1]+'/'+dateOutNew[0]+'/'+dateOutNew[2]);
}
if('en' == 'es'){
jQuery('#langIDSyn').val('2');
}else if('en' == 'fr'){
jQuery('#langIDSyn').val('3');
}else{
jQuery('#langIDSyn').val('1');
}
jQuery("#brand").removeAttr('name');
}
if(jQuery('#hotName').text() == 'North Park Place, Bangkok Thailand'){
e.preventDefault();
window.open(
'http://northparkplace.iidlhospitality.com/en/accommodation/rfp-form.php',
'_blank'
);
}else{
//jQuery("#dest").attr('name', 'Dest');
}
return true;
if(jQuery('.hotel .iniText').is(':visible')){
//jQuery("#shell").removeAttr('name');
jQuery("#hotel-id").val(52618);
}
var brandVal = jQuery("#brand").val();
if(jQuery("#brand").val()==''){
jQuery("#brand").removeAttr('name');
}else{
jQuery("#brand").attr('name', 'brand');
jQuery("#brand").attr( 'value', brandVal );
}
});
jQuery('.gallery-book-now').click(function(){
jQuery(this).addClass('hide');
jQuery('#availability-checker').addClass('show');
});
jQuery('.gallery-book-now-close').click(function(){
jQuery('#availability-checker').removeClass('show');
jQuery('.gallery-book-now').removeClass('hide');
});
/** mobile booking mask **/
if (browserWidth < 768) {
jQuery('.promo-code .non-mobile').hide();
jQuery('button .non-mobile').hide();
jQuery('#adults').on("change",function (){
jQuery(this).parents('.adults').addClass('choosedVal');
jQuery(this).parents('.choose').find('label').hide();
});
jQuery('#children').on("change",function (){
jQuery(this).parents('.children').addClass('choosedVal');
jQuery(this).parents('.choose').find('label').hide();
});
jQuery("#promo-code").click(function(){
jQuery(this).siblings('label.mobile').hide();
});
jQuery("#promo-code").bind("focusout", function() {
var pro = jQuery(this);
if(pro.val()==""){
pro.siblings('label.mobile').show();
}else{
pro.siblings('label.mobile').hide();
}
});
}
/*_________________ [END BOOKING MASK] */
/* ]]> */
/* BEGIN: Create Cookie Notice */
if(cookieMonster.readCookie(cookieMonster.cookieName) == null){
var cookienoticeID = "cookie-notice",
cookieNoticeMoreClass = "find-more",
cookieNoticeMoreInfo = "more-info",
cookieNoticeClose = "close",
cookieNoticeHTML = 'We use cookies to understand your preferences, optimize site security and functionality and deliver personalized content tailored to your interests. By continuing to use our site, you agree to our use of cookies to enhance your user experience. Find out more.I Accept';
jQuery(document.body).prepend(cookieNoticeHTML);
jQuery("#"+cookienoticeID+" ."+cookieNoticeMoreClass+"[href='#']").bind("click", function(e){
e.preventDefault();
jQuery("#"+cookienoticeID+" ."+cookieNoticeMoreInfo).slideToggle();
});
jQuery("#"+cookienoticeID+" ."+cookieNoticeClose).bind("click", function(e){
e.preventDefault();
cookieMonster.createCookie(cookieMonster.cookieName,'1',365);
if(cookieMonster.readCookie(cookieMonster.cookieName) != null){
jQuery("#"+cookienoticeID).slideUp();
}
});
}
/* END: Create Cookie Notice */
// END: onLoadScript
//check if IE9
var isIE = document.all && document.addEventListener && !window.atob;
jQuery('.germanyContent > .blockCollection > .contentBlock').each(function(index){
if(index < 11){
jQuery(this).addClass('readmore');
}
});
jQuery('.germanyContent .blockCollection .contentBlock.readmore:nth-child(-n+2)').addClass('active');
jQuery('.germanyContent .blockCollection .contentBlock.readmore').last().after('');
jQuery('.germanyContent .readMore').click(function(){
jQuery('.germanyContent .blockCollection .contentBlock.readmore').addClass('active');
setTimeout(function(){
jQuery('.germanyContent .readMore').text('Read Less');
jQuery('.germanyContent .readMore').attr('class','readLess');
}, 100);
});
jQuery(document).on("click",".germanyContent .readLess",function() {
jQuery(".germanyContent .blockCollection .contentBlock.readmore").removeClass('active');
jQuery('.germanyContent .blockCollection .contentBlock.readmore:nth-child(-n+2)').addClass('active');
setTimeout(function(){
jQuery('.germanyContent .readLess').text('Read More');
jQuery('.germanyContent .readLess').attr('class','readMore');
}, 100);
});
var remove = jQuery(".newsletter.footer-upper-block > a[href]");
jQuery( ".participating-property:empty" ).css( "display", "none" );
if(jQuery(remove).length == 0){
jQuery(".participating-property.link-with-arrow").css('display','none');
}
// fancybox PNG file location fix - Please Do NOT remove the below line.
fancyboxIEPngLocationFix.fix("templates/main/libs/jquery/fancybox/index.html");
jQuery(".applywrapper .applynow").bind('click', function(){
jQuery('.formwrapper').fadeOut(500);
var currentform=jQuery(this).parents().children('.formwrapper');
if(currentform.hasClass('open')){
currentform.removeClass('open');
currentform.fadeOut(500);
}else{
jQuery('.formwrapper').removeClass('open');
currentform.addClass('open');
currentform.fadeIn(1500);
var title=jQuery(this).parents().siblings('.posi-wrapper').text();
}
});
jQuery('#ff_subject1').change(function (){
var label=jQuery('#ff_subject1 :selected').parent().attr('label');
var t = jQuery('#ff_subject1').val().split('reservationAssistance');
if(label=='Reservation Assistance'){
jQuery('#ff_propertyOffice1').attr('disabled',true);
jQuery('#ff_propertyOffice1').uniform('refresh');
jQuery('#ff_propertyOffice1').parent().parent().parent().removeClass('required');
jQuery('#ff_propertyOffice1').parent().parent().parent().removeClass('invalid');
jQuery('#ff_propertyOffice1 option[value='+t[1]+']').attr('selected',true);
jQuery('#ff_propertyOffice1').uniform('refresh');
}else{
jQuery('#ff_propertyOffice1').attr('disabled',false);
jQuery('#ff_propertyOffice1').uniform('refresh');
if(!jQuery('#ff_propertyOffice1').parent().parent().parent().hasClass('required')){
jQuery('#ff_propertyOffice1').parent().parent().parent().addClass('required');
}else if(!jQuery('#ff_propertyOffice1').parent().parent().parent().hasClass('invalid')){
jQuery('#ff_propertyOffice1').parent().parent().parent().addClass('required');
}
}
});
var currLang = 'en';
if(currLang == 'ar'){
jQuery('html').attr('dir','rtl');
jQuery("a[href*='tel:']").each(function(){
jQuery(this).attr('dir','ltr');
});
jQuery(".ltr").each(function(){
jQuery(this).attr('dir','ltr');
});
}
/* landing page form validation */
var errorMsg = jQuery('.errormsg');
errorMsg.hide();
if(jQuery('body').find('.type_customNewForm')){
jQuery(window).load(function(){
var actionUrl = jQuery('.type_customNewForm form').attr('action');
jQuery('.type_customNewForm form').removeAttr('action');
var regex = /^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/;
var regexCard = /[0-9]\/[0-9]/g;
var fieldProp = ['property','arrivaldate','departuredate','faxNo','salutation','firstName','lastName','emailAddress','tel','amexVoucherNumber','amexPlatinumCardNumber','cardExpiryDate'];
jQuery('.type_customNewForm .submit').click(function(e){
e.preventDefault();
var noErrors = 1;
var proplength = fieldProp.length;
for(var i = 0; i < proplength; i++){
jQuery('#ff_'+fieldProp[i]+'1').parent().parent().removeClass('invalid');
if(jQuery('#ff_'+fieldProp[i]+'1').val() == '' || jQuery('#ff_'+fieldProp[i]+'1').val() == ' '){
jQuery('.'+fieldProp[i]).addClass('invalid');
noErrors = 0;
}
if(fieldProp[i] == 'emailAddress'){
if(!(regex.test(jQuery('#ff_'+fieldProp[i]+'1').val()))){
jQuery('.'+fieldProp[i]).addClass('invalid');
noErrors = 0;
}
}
if(fieldProp[i] == 'cardExpiryDate'){
if(!(regexCard.test(jQuery('#ff_'+fieldProp[i]+'1').val()))){
jQuery('.'+fieldProp[i]).addClass('invalid');
noErrors = 0;
}
}
}
if(noErrors == 1){
jQuery('.type_customNewForm form').attr('action', actionUrl);
$('.type_customNewForm .submit').unbind('click');
$('.type_customNewForm form .submit').click();
}else{
jQuery('.type_customNewForm form .property').before(errorMsg);
jQuery('.type_customNewForm form .errormsg').show();
}
});
});
}
if('page_home' == 'page_dynamic_151'){
jQuery('#languages .zh').attr("href", "http://fraserchina.com/contact/international");
}
/*Add this Validation Issue fix */
var docURL = 'index.html',
docTitle ='Welcome to IIDL Suites New Delhi';
//jQuery('.addthis_button').attr('addthis:url',docURL);
//jQuery('.addthis_button').attr('addthis:title',docTitle);
//ADDTHIS ASYNC LOAD
/* Add FMS POPUP */
if(jQuery("#fms-popup").length ){
var wW = jQuery(window).width();
var hW = jQuery('#holder').width();
var bannerLeft = (wW - hW) / 2;
$.getJSON("https://jsonip.com/?callback=?", function (data) {
var clientIP = data.ip;
var blockedIPs = ["103.6.182.20","5.57.16.220","194.153.190.13","198.151.60.100","198.175.56.100","202.79.222.100","202.125.108.1","91.103.175.179","204.74.99.100","216.251.120.22","133.237.17.35","202.72.51.22","64.6.21.5","64.6.28.5","202.4.26.140","203.223.144.50","176.9.118.61","122.248.250.123","23.62.99.163","2.21.243.81","83.245.36.141","199.204.29.141","202.125.108.21","202.125.108.115","91.103.175.181","216.251.127.130","23.212.194.120"];
if(blockedIPs.indexOf(clientIP) < 0){ //display popup
if(jQuery(".fms-popup-loggedIn").has('.fms-image')){ //All devices except mobile -> Add Image
jQuery("#fms-popup").append('Flat 15% OFFGET AWAY WITH MORE15% Discount on Best Flexible RatesLast Minute DealLimited Time OfferUpgrade to Higher Category at very special discounted ratesBOOK NOWTerms and Conditions apply');
} else { //Mobile devices -> Do not add image
jQuery("#fms-popup").append('Flat 15% OFFGET AWAY WITH MORE15% Discount on Best Flexible RatesLast Minute DealLimited Time OfferUpgrade to Higher Category at very special discounted ratesBOOK NOWTerms and Conditions apply');
}
//init -> slide FMS popup
setTimeout(function(){ jQuery("#fms-popup.ini-popup").removeClass("ini-popup"); launchEvent(jQuery("#fms-popup")); }, 1100);
jQuery("#fms-popup .fms-close").on("click", function(event){
jQuery("#fms-popup").addClass("closed");
jQuery("#fms-popup").animate({left: bannerLeft}, "slow");
//var noOfChars = $('#fms-popup h3').html().length;
var noOfChars = $('#fms-popup h3').width();
var mH = jQuery('#main-visual').height();
if(noOfChars>20){
//jQuery('#fms-popup.closed h3').css('width','auto');
//jQuery('#fms-popup.closed h3').css('max-width',mH);
var fullWidth = (noOfChars + 30),
positionTop = (fullWidth / 2)-19,
outerWidthTitle = $('#fms-popup h3').outerWidth(),
outerWidthTitleforIE9 = $('#fms-popup h3').outerHeight(),
positionLeft = (outerWidthTitle/2)-19,
positionLeftforIE9 = (outerWidthTitleforIE9/2)-16;
jQuery('#fms-popup.closed').height(fullWidth);
//console.log(outerWidthTitle);
if(isIE){
//console.log(outerWidthTitle);
jQuery('#fms-popup.closed h3').css({
'top':(fullWidth / 2)+'px',
'line-height':'16px',
'left':'-'+positionLeftforIE9+'px'
});
}else{
jQuery('#fms-popup.closed h3').css({
'top':positionTop,
'line-height':'38px',
'left':'-'+positionLeft+'px'
});
}
}
launchEvent(jQuery(this));
event.preventDefault(); event.stopPropagation();
});
/* Popup functions */
if(jQuery('.youtubeVideoLink').length > 0){
if(jQuery("#fancybox-wrap").show()){
jQuery("#holder #fms-popup").addClass("hide-popup");
jQuery("#fancybox-overlay,#fancybox-close").click(function(){
jQuery("#fms-popup").removeClass("hide-popup");
});
}
}else{
jQuery("#holder #fms-popup").removeClass("hide-popup");
jQuery("body").removeClass("show-popup");
}
jQuery("#fms-popup").on("click", function(event){
if(jQuery("#fms-popup").hasClass("closed")){
jQuery("#fms-popup").removeClass("closed");
jQuery("#fms-popup").animate({left: bannerLeft}, "slow");
jQuery('#fms-popup').height('auto');
if(isIE){
jQuery('#fms-popup h3').css('line-height','38px');
}
launchEvent(jQuery(this));
}
});
/** EVENTS TRACKING **/
// -----
// Documentation : https://developers.google.com/analytics/devguides/collection/gajs/eventTrackerGuide
//----
function validateThis(str) { if (typeof str == "undefined") {str = ""}; return str.replace(/(\r\n|\n|\r)/gm,'').replace(/\s+/g," "); }
function pushFMSPopupEvent(category, action, opt_label, opt_value, opt_noninteraction) {
// Only if Google Analytics is present
if(typeof _gat != 'undefined') {
// Get all trackers
var trackerObjects = _gat._getTrackers();
// Loop through all trackers, send event to each
for(var i= trackerObjects.length; i >= 0; i--) {
if(typeof trackerObjects[i] == 'undefined' || trackerObjects[i] == 'function' )
continue;
trackerObjects[i]._trackEvent(category, action, opt_label);
console.log('Event ' + i + ': ' + category + ' | ' + action + ' | '+ opt_label);
};
// Booking URL cross domain tracking
if(action == "FSS-Book Now"){
var el = jQuery('#fms-popup a')[0];
var linker = trackerObjects[0]
el.href = linker._getLinkerUrl(el.href);
}
};
};
jQuery(document).on("click",".event-tracking", function(event) {
launchEvent(jQuery(this));
});
function launchEvent(element){
var category = validateThis(element.data("category"));
var action = validateThis(element.data("action"));
var title = validateThis(element.data("title"));
pushFMSPopupEvent(category, action, title);
console.log("Category: " + category); console.log("Action: " + action); console.log("Title: " + title);
console.log("------");
}
}
});
}
jQuery('p.readmore-link-wrapper').children().each(function(){
var tl =jQuery(this).find('.link-with-arrow').text().length;
if(tl==0){
jQuery(this).find('.link-with-arrow').css('background','none');
}
});
/***Gallery Sub Menu***/
if ( jQuery(".gallerySubMenu ul").children().length > 0 ) {
jQuery(".gallerySubMenu ul").appendTo("#main-menu ul .gallery.level1");
}
jQuery('.special-promo').on('click', '.hasPopup', function(e){
e.preventDefault();
var url = $(this).attr('href');
var calendarIframe = '';
$('body').append(calendarIframe).addClass('calendar-popup-open');
});
/* calendar popup on load */
/* =========== */
jQuery('body').on('click', '.calendar-popup-wrapper', function(e){
$('.calendar-popup-wrapper').remove();
$('body').removeClass('calendar-popup-open');
});
});
/* jQuery(window).orientationchange(function(){
jQuery("#fms-popup .fms-close").click();
}); */
jQuery(window).load(function(){
});
//]]>
(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'../www.googletagmanager.com/gtm5445.html?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-T4PP6L3');
(function() {
var encode = window.encodeURIComponent;
var ka = document.createElement('script');
ka.type = 'text/javascript';
ka.id = 'c74f69f8ebd75cb22c3d';
ka.async = true;
ka.src = ('https:' == document.location.protocol ? 'https:' : 'http:') + '//cdn.brand-display.com/tr/knx15612/c74f69f8ebd75cb22c3d3466ff4072c0fad74c8f.js?v1=52618&v2='+ escape('IIDL Suites New Delhi')+'&v3='+ escape('fsnewdelhi-Homepage')+'&v16=en&v10=' + encode('en.html') + '&_t=' + new Date().getTime();
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ka, s);
})();
!function(f,b,e,v,n,t,s)
{if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};
if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];
s.parentNode.insertBefore(t,s)}(window,document,'script',
'../connect.facebook.net/en_US/fbevents.js');
fbq('init', '2182780958646118');
fbq('track', 'PageView');
!function(f,b,e,v,n,t,s)
{if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};
if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];
s.parentNode.insertBefore(t,s)}(window, document,'script',
'https://protect-us.mimecast.com/s/NVq7BMTWADLIV?domain=connect.facebook.net');
fbq('init', '303208526701359');
fbq('track', 'PageView');
(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'../www.googletagmanager.com/gtm5445.html?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-5DZS3J');
(window.BOOMR_mq=window.BOOMR_mq||[]).push(["addVar",{"rua.upush":"false","rua.cpush":"false","rua.upre":"false","rua.cpre":"false","rua.uprl":"false","rua.cprl":"false","rua.cprf":"false","rua.trans":"","rua.cook":"false","rua.ims":"false","rua.ufprl":"false","rua.cfprl":"false","rua.isuxp":"","rua.texp":""}]);
!function(a){var e="https://s.go-mpulse.net/boomerang/",t="addEventListener";if("False"=="True")a.BOOMR_config=a.BOOMR_config||{},a.BOOMR_config.PageParams=a.BOOMR_config.PageParams||{},a.BOOMR_config.PageParams.pci=!0,e="https://s2.go-mpulse.net/boomerang/";if(window.BOOMR_API_key="CZCNZ-98ENK-PR9LM-ZYZZ8-VAJC9",function(){function n(e){a.BOOMR_onload=e&&e.timeStamp||(new Date).getTime()}if(!a.BOOMR||!a.BOOMR.version&&!a.BOOMR.snippetExecuted){a.BOOMR=a.BOOMR||{},a.BOOMR.snippetExecuted=!0;var i,_,o,r=document.createElement("iframe");if(a[t])a[t]("load",n,!1);else if(a.attachEvent)a.attachEvent("onload",n);r.src="javascript:void(0)",r.title="",r.role="presentation",(r.frameElement||r).style.cssText="width:0;height:0;border:0;display:none;",o=document.getElementsByTagName("script")[0],o.parentNode.insertBefore(r,o);try{_=r.contentWindow.document}catch(O){i=document.domain,r.src="javascript:var d=document.open();d.domain='"+i+"';void(0);",_=r.contentWindow.document}_.open()._l=function(){var a=this.createElement("script");if(i)this.domain=i;a.id="boomr-if-as",a.src=e+"CZCNZ-98ENK-PR9LM-ZYZZ8-VAJC9",BOOMR_lstart=(new Date).getTime(),this.body.appendChild(a)},_.write("">
Iidlhospitality.com
Best Hotel in Delhi Near Mayur Vihar 1, Luxury Hotel in Mayur Vihar Phase
if(window.top.location!=document.location)window.top.location.href=document.location.href;
//
//
//
// minValue){
jQuery("#date-in").datepicker( 'option', 'minDate', newStart );
jQuery("#date-out").datepicker( 'option', 'minDate', newEnd );
}else{
jQuery("#date-in").datepicker( 'option', 'minDate', 0 );
jQuery("#date-out").datepicker( 'option', 'minDate', 1 );
jQuery("#date-in").datepicker('setDate', new Date());
jQuery("#date-out").datepicker('setDate', new Date());
}
}
}
var tempArrLoad = [];
var listGenerateArr = [];
function buildHandler(entry) {
var getCountry = entry.country;
var getCity = entry.city;
var getHotelName = entry.name;
var getHotelBrand = entry.brand;
if(jQuery.inArray(getCountry, tempArrLoad) == -1){
listGenerateArr[getCountry] = new Array();
tempArrLoad.push(getCountry);
}
tempObj=
{
'name': entry.name,
'country': entry.country,
'hotelID': entry.hotelID,
'city': entry.city,
'brand': entry.brand
}
listGenerateArr[getCountry].push(tempObj);
}
function addScriptHotelList(items) {
jQuery("ul#searchResults li a").click(function(){
var getDataVal = jQuery(this).data("id");
var getDataType = jQuery(this).data("type");
var getDataBrand = jQuery(this).data("brand");
var getDataCountry = jQuery(this).data("country");
var getText = jQuery(this).text();
//Re add para names after submit fucntion changes
jQuery("#brand").attr( "name", "brand" );
jQuery("#chainSyn").attr( "name", "Chain" );
jQuery("#dest").attr( "name", "Dest" );
jQuery("#configcode").attr( "name", "configcode" );
jQuery("#level").attr( "name", "level" );
jQuery("#themecode").attr( "name", "themecode" );
jQuery("#hotel-id").attr( "name", "hotel" );
jQuery("#langIDSyn").attr( "name", "locale" );
jQuery('#availability-checker .booking-link').hide();
jQuery('#availability-checker button.booking-link').show();
if(getDataType=="country"){
//Override Special cases
if(getDataVal=="United Kingdom"){
getDataVal="UK";
}else if(getDataVal=="Kingdom of Bahrain"){
getDataVal="Kingdom of B";
}else if(getDataVal=="United Arab Emirates"){
getDataVal="UAE";
}
if(getDataVal=="UK"){
jQuery("#configcode").attr( "value", 'UK' );
jQuery("#bmcurrency").attr( "name", 'currency' );
jQuery("#bmcurrency").val("GBP");
}else{
jQuery("#configcode").attr( "value", 'Frasers' );
jQuery("#bmcurrency").removeAttr('name');
}
jQuery("#hotel-list").val(getText);
jQuery("#hotName").text(getText);
jQuery("#dest").attr("name","Dest");
jQuery("#dest").val(getDataVal);
jQuery("#hotel-id").removeAttr('name');
jQuery("#brand").removeAttr('name');
jQuery("#themecode").removeAttr('name');
}else if(getDataType=="city"){
jQuery("#hotel-list").val(getDataVal);
jQuery("#hotName").text(getDataVal);
jQuery("#dest").attr("name","Dest");
jQuery("#dest").val(getDataVal);
jQuery("#hotel-id").removeAttr('name');
jQuery("#brand").removeAttr('name');
jQuery("#themecode").removeAttr('name');
//Override Special cases, keep conditon here
if(getDataVal=="Ho Chi Min city"){
jQuery("#dest").val("Ho Chi Minh City");
}else if(getDataVal=="Bahrain"){
jQuery("#dest").val("Kingdom of B");
}
if(getDataCountry=="United Kingdom"){
jQuery("#configcode").attr( "value", 'UK' );
jQuery("#bmcurrency").attr("name","currency");
jQuery("#bmcurrency").val("GBP");
}else{
jQuery("#configcode").attr( "value", 'Frasers' );
jQuery("#bmcurrency").removeAttr('name');
}
}else{
if(getDataBrand=="Fraser"){
jQuery("#brand").val('FP,FR,FS');
jQuery("#themecode").attr( "value", 'frasers' );
}else if(getDataBrand=="Capri"){
jQuery("#brand").val( 'CP' );
jQuery("#themecode").attr( "value", 'capri' );
}else if(getDataBrand=="Modena"){
jQuery("#brand").val( 'MO' );
jQuery("#themecode").attr( "value", 'modena' );
}
if(getDataCountry=="United Kingdom"){
jQuery("#configcode").attr( "value", 'UK' );
jQuery("#bmcurrency").attr("name","currency");
jQuery("#bmcurrency").val("GBP");
}else{
jQuery("#configcode").attr( "value", 'Frasers' );
jQuery("#bmcurrency").removeAttr('name');
}
jQuery("#dest").val("");
jQuery("#dest").attr("name","");
//jQuery("#dest").removeAttr("name");
jQuery("#hotel-list").val(getText);
jQuery("#hotName").text(getText);
jQuery("#hotel-id").attr("name","hotel");
jQuery("#hotel-id").val(getDataVal);
}
jQuery("#searchResults").hide();
var a = jQuery("#hotel-list").val().length;
if (browserWidth < 768) {
if(a > 40){
jQuery("#hotel-list , #availability-checker").addClass("twoLine");
}else{
jQuery("#hotel-list, #availability-checker").removeClass("twoLine");
}
}else{
if(a > 30){
jQuery("#hotel-list , #availability-checker").addClass("twoLine");
}else{
jQuery("#hotel-list, #availability-checker").removeClass("twoLine");
}
}
//Set Start/END dates fucntion
if(getText=="Capri by Fraser, China Square ,Singapore"){
newStart = '06/05/2019';
newEnd = '07/05/2019';
setDate(newStart,newEnd)
}else if(getText=="Fraser Residence Chengdu, China"){
newStart = '01/05/2020';
newEnd = '02/05/2020';
setDate(newStart,newEnd)
}else if(getText=="Capri by Fraser, Leipzig / Germany"){
newStart = '18/05/2020';
newEnd = '19/05/2020';
setDate(newStart,newEnd);
}else if(getText=="IIDL Suites Akasaka, Tokyo"){
newStart = '07/08/2020';
newEnd = '08/08/2020';
setDate(newStart,newEnd);
}else{
jQuery("#date-in").datepicker( 'option', 'minDate', 0 );
jQuery("#date-out").datepicker( 'option', 'minDate', 1 );
jQuery("#date-in").datepicker('setDate', new Date());
jQuery("#date-out").datepicker('setDate', new Date());
}
if(getText == 'Capri by Fraser, Johor Bahru, Malaysia'){
jQuery('#adults option').filter(function(){
return parseInt(this.value,10) > 3;
}).remove();
}else{
var adultLengh = jQuery('#adults option').length;
var i ='';
if (adultLengh == 3) {
for(i = 4; i 40){
jQuery("#hotel-list , #availability-checker, .iniText").addClass("twoLine");
}else{
jQuery("#hotel-list, #availability-checker, .iniText").removeClass("twoLine");
}
}else{
if(b > 30){
jQuery("#hotel-list , #availability-checker, .iniText").addClass("twoLine");
}else{
jQuery("#hotel-list, #availability-checker, .iniText").removeClass("twoLine");
}
}
});
/***END NEW BM SEARCH***/
if (browserWidth > 767) {
jQuery('input#promo-code').val('Optional');
}
jQuery('#booking-form').submit(function(e){
var setCodeVal = "promo";
if(jQuery('input#promo-code').val()=='' || jQuery('input#promo-code').val()=='Optional'){
jQuery('#promo-code').removeAttr('name');
}else{
jQuery('#promo-code').attr('name',setCodeVal);
return true;
}
if(_fraser.language == "ja"){
if(jQuery('#hotName').text() == 'Fraser Residence Nankai, Osaka Japan' || jQuery('.hotel .iniText').text() == 'Fraser Residence Nankai, Osaka'){
e.preventDefault();
var checkin = document.getElementById("us-date-in").value;
var checkout = document.getElementById("us-date-out").value;
var dateInNew = checkin.split("-");
var dateOutNew = checkout.split("-");
var formattedDateIn = dateInNew[0]+'/'+dateInNew[1]+'/'+dateInNew[2];
var formattedDateOut = dateOutNew[0]+'/'+dateOutNew[1]+'/'+dateOutNew[2];
var adults = parseInt(document.getElementById("adults").value);
var children = parseInt(document.getElementById("children").value);
window.TriplaBookingWidget ('search_multiple_room', {
checkIn: formattedDateIn,
checkOut: formattedDateOut,
rooms: [
{adults: adults, children: children}
]
},'3f5380d99d09a30ba31e2833e786b34c')
}
}
if(jQuery('#hotName').text() == 'The Park International Hotel, London'){
var dateI = document.getElementById("us-date-in").value;
var dateO = document.getElementById("us-date-out").value;
//return new Date( 2016,08,09);
var dateInNew = dateI.split("index.html");
var dateOutNew = dateO.split("index.html");
var dateInNewPass = new Date (dateInNew[2],dateInNew[0], dateInNew[1]),
dateInn = new Date( dateInNewPass.getTime() + (24 * 60 * 60 * 1000));
var dateOutNewPass = new Date (dateOutNew[2],dateOutNew[0], dateOutNew[1]),
dateOutn = new Date( dateOutNewPass.getTime() + (24 * 60 * 60 * 1000));
if('en' == 'en') {
jQuery('#us-date-in').val(dateInNew[0]+'/'+dateInNew[1]+'/'+dateInNew[2]);
jQuery('#us-date-out').val(dateOutNew[0]+'/'+dateOutNew[1]+'/'+dateOutNew[2]);
}else if('en' == 'ru'){
jQuery('#us-date-in').val(dateInNew[1]+'/'+dateInNew[0]+'/'+dateInNew[2]);
jQuery('#us-date-out').val(dateOutNew[1]+'/'+dateOutNew[0]+'/'+dateOutNew[2]);
}else{
jQuery('#us-date-in').val(dateInNew[1]+'/'+dateInNew[0]+'/'+dateInNew[2]);
jQuery('#us-date-out').val(dateOutNew[1]+'/'+dateOutNew[0]+'/'+dateOutNew[2]);
}
if('en' == 'es'){
jQuery('#langIDSyn').val('2');
}else if('en' == 'fr'){
jQuery('#langIDSyn').val('3');
}else{
jQuery('#langIDSyn').val('1');
}
jQuery("#brand").removeAttr('name');
}
if(jQuery('#hotName').text() == 'North Park Place, Bangkok Thailand'){
e.preventDefault();
window.open(
'http://northparkplace.iidlhospitality.com/en/accommodation/rfp-form.php',
'_blank'
);
}else{
//jQuery("#dest").attr('name', 'Dest');
}
return true;
if(jQuery('.hotel .iniText').is(':visible')){
//jQuery("#shell").removeAttr('name');
jQuery("#hotel-id").val(52618);
}
var brandVal = jQuery("#brand").val();
if(jQuery("#brand").val()==''){
jQuery("#brand").removeAttr('name');
}else{
jQuery("#brand").attr('name', 'brand');
jQuery("#brand").attr( 'value', brandVal );
}
});
jQuery('.gallery-book-now').click(function(){
jQuery(this).addClass('hide');
jQuery('#availability-checker').addClass('show');
});
jQuery('.gallery-book-now-close').click(function(){
jQuery('#availability-checker').removeClass('show');
jQuery('.gallery-book-now').removeClass('hide');
});
/** mobile booking mask **/
if (browserWidth < 768) {
jQuery('.promo-code .non-mobile').hide();
jQuery('button .non-mobile').hide();
jQuery('#adults').on("change",function (){
jQuery(this).parents('.adults').addClass('choosedVal');
jQuery(this).parents('.choose').find('label').hide();
});
jQuery('#children').on("change",function (){
jQuery(this).parents('.children').addClass('choosedVal');
jQuery(this).parents('.choose').find('label').hide();
});
jQuery("#promo-code").click(function(){
jQuery(this).siblings('label.mobile').hide();
});
jQuery("#promo-code").bind("focusout", function() {
var pro = jQuery(this);
if(pro.val()==""){
pro.siblings('label.mobile').show();
}else{
pro.siblings('label.mobile').hide();
}
});
}
/*_________________ [END BOOKING MASK] */
/* ]]> */
/* BEGIN: Create Cookie Notice */
if(cookieMonster.readCookie(cookieMonster.cookieName) == null){
var cookienoticeID = "cookie-notice",
cookieNoticeMoreClass = "find-more",
cookieNoticeMoreInfo = "more-info",
cookieNoticeClose = "close",
cookieNoticeHTML = 'We use cookies to understand your preferences, optimize site security and functionality and deliver personalized content tailored to your interests. By continuing to use our site, you agree to our use of cookies to enhance your user experience. Find out more.I Accept';
jQuery(document.body).prepend(cookieNoticeHTML);
jQuery("#"+cookienoticeID+" ."+cookieNoticeMoreClass+"[href='#']").bind("click", function(e){
e.preventDefault();
jQuery("#"+cookienoticeID+" ."+cookieNoticeMoreInfo).slideToggle();
});
jQuery("#"+cookienoticeID+" ."+cookieNoticeClose).bind("click", function(e){
e.preventDefault();
cookieMonster.createCookie(cookieMonster.cookieName,'1',365);
if(cookieMonster.readCookie(cookieMonster.cookieName) != null){
jQuery("#"+cookienoticeID).slideUp();
}
});
}
/* END: Create Cookie Notice */
// END: onLoadScript
//check if IE9
var isIE = document.all && document.addEventListener && !window.atob;
jQuery('.germanyContent > .blockCollection > .contentBlock').each(function(index){
if(index < 11){
jQuery(this).addClass('readmore');
}
});
jQuery('.germanyContent .blockCollection .contentBlock.readmore:nth-child(-n+2)').addClass('active');
jQuery('.germanyContent .blockCollection .contentBlock.readmore').last().after('');
jQuery('.germanyContent .readMore').click(function(){
jQuery('.germanyContent .blockCollection .contentBlock.readmore').addClass('active');
setTimeout(function(){
jQuery('.germanyContent .readMore').text('Read Less');
jQuery('.germanyContent .readMore').attr('class','readLess');
}, 100);
});
jQuery(document).on("click",".germanyContent .readLess",function() {
jQuery(".germanyContent .blockCollection .contentBlock.readmore").removeClass('active');
jQuery('.germanyContent .blockCollection .contentBlock.readmore:nth-child(-n+2)').addClass('active');
setTimeout(function(){
jQuery('.germanyContent .readLess').text('Read More');
jQuery('.germanyContent .readLess').attr('class','readMore');
}, 100);
});
var remove = jQuery(".newsletter.footer-upper-block > a[href]");
jQuery( ".participating-property:empty" ).css( "display", "none" );
if(jQuery(remove).length == 0){
jQuery(".participating-property.link-with-arrow").css('display','none');
}
// fancybox PNG file location fix - Please Do NOT remove the below line.
fancyboxIEPngLocationFix.fix("templates/main/libs/jquery/fancybox/index.html");
jQuery(".applywrapper .applynow").bind('click', function(){
jQuery('.formwrapper').fadeOut(500);
var currentform=jQuery(this).parents().children('.formwrapper');
if(currentform.hasClass('open')){
currentform.removeClass('open');
currentform.fadeOut(500);
}else{
jQuery('.formwrapper').removeClass('open');
currentform.addClass('open');
currentform.fadeIn(1500);
var title=jQuery(this).parents().siblings('.posi-wrapper').text();
}
});
jQuery('#ff_subject1').change(function (){
var label=jQuery('#ff_subject1 :selected').parent().attr('label');
var t = jQuery('#ff_subject1').val().split('reservationAssistance');
if(label=='Reservation Assistance'){
jQuery('#ff_propertyOffice1').attr('disabled',true);
jQuery('#ff_propertyOffice1').uniform('refresh');
jQuery('#ff_propertyOffice1').parent().parent().parent().removeClass('required');
jQuery('#ff_propertyOffice1').parent().parent().parent().removeClass('invalid');
jQuery('#ff_propertyOffice1 option[value='+t[1]+']').attr('selected',true);
jQuery('#ff_propertyOffice1').uniform('refresh');
}else{
jQuery('#ff_propertyOffice1').attr('disabled',false);
jQuery('#ff_propertyOffice1').uniform('refresh');
if(!jQuery('#ff_propertyOffice1').parent().parent().parent().hasClass('required')){
jQuery('#ff_propertyOffice1').parent().parent().parent().addClass('required');
}else if(!jQuery('#ff_propertyOffice1').parent().parent().parent().hasClass('invalid')){
jQuery('#ff_propertyOffice1').parent().parent().parent().addClass('required');
}
}
});
var currLang = 'en';
if(currLang == 'ar'){
jQuery('html').attr('dir','rtl');
jQuery("a[href*='tel:']").each(function(){
jQuery(this).attr('dir','ltr');
});
jQuery(".ltr").each(function(){
jQuery(this).attr('dir','ltr');
});
}
/* landing page form validation */
var errorMsg = jQuery('.errormsg');
errorMsg.hide();
if(jQuery('body').find('.type_customNewForm')){
jQuery(window).load(function(){
var actionUrl = jQuery('.type_customNewForm form').attr('action');
jQuery('.type_customNewForm form').removeAttr('action');
var regex = /^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/;
var regexCard = /[0-9]\/[0-9]/g;
var fieldProp = ['property','arrivaldate','departuredate','faxNo','salutation','firstName','lastName','emailAddress','tel','amexVoucherNumber','amexPlatinumCardNumber','cardExpiryDate'];
jQuery('.type_customNewForm .submit').click(function(e){
e.preventDefault();
var noErrors = 1;
var proplength = fieldProp.length;
for(var i = 0; i < proplength; i++){
jQuery('#ff_'+fieldProp[i]+'1').parent().parent().removeClass('invalid');
if(jQuery('#ff_'+fieldProp[i]+'1').val() == '' || jQuery('#ff_'+fieldProp[i]+'1').val() == ' '){
jQuery('.'+fieldProp[i]).addClass('invalid');
noErrors = 0;
}
if(fieldProp[i] == 'emailAddress'){
if(!(regex.test(jQuery('#ff_'+fieldProp[i]+'1').val()))){
jQuery('.'+fieldProp[i]).addClass('invalid');
noErrors = 0;
}
}
if(fieldProp[i] == 'cardExpiryDate'){
if(!(regexCard.test(jQuery('#ff_'+fieldProp[i]+'1').val()))){
jQuery('.'+fieldProp[i]).addClass('invalid');
noErrors = 0;
}
}
}
if(noErrors == 1){
jQuery('.type_customNewForm form').attr('action', actionUrl);
$('.type_customNewForm .submit').unbind('click');
$('.type_customNewForm form .submit').click();
}else{
jQuery('.type_customNewForm form .property').before(errorMsg);
jQuery('.type_customNewForm form .errormsg').show();
}
});
});
}
if('page_home' == 'page_dynamic_151'){
jQuery('#languages .zh').attr("href", "http://fraserchina.com/contact/international");
}
/*Add this Validation Issue fix */
var docURL = 'index.html',
docTitle ='Welcome to IIDL Suites New Delhi';
//jQuery('.addthis_button').attr('addthis:url',docURL);
//jQuery('.addthis_button').attr('addthis:title',docTitle);
//ADDTHIS ASYNC LOAD
/* Add FMS POPUP */
if(jQuery("#fms-popup").length ){
var wW = jQuery(window).width();
var hW = jQuery('#holder').width();
var bannerLeft = (wW - hW) / 2;
$.getJSON("https://jsonip.com/?callback=?", function (data) {
var clientIP = data.ip;
var blockedIPs = ["103.6.182.20","5.57.16.220","194.153.190.13","198.151.60.100","198.175.56.100","202.79.222.100","202.125.108.1","91.103.175.179","204.74.99.100","216.251.120.22","133.237.17.35","202.72.51.22","64.6.21.5","64.6.28.5","202.4.26.140","203.223.144.50","176.9.118.61","122.248.250.123","23.62.99.163","2.21.243.81","83.245.36.141","199.204.29.141","202.125.108.21","202.125.108.115","91.103.175.181","216.251.127.130","23.212.194.120"];
if(blockedIPs.indexOf(clientIP) < 0){ //display popup
if(jQuery(".fms-popup-loggedIn").has('.fms-image')){ //All devices except mobile -> Add Image
jQuery("#fms-popup").append('Flat 15% OFFGET AWAY WITH MORE15% Discount on Best Flexible RatesLast Minute DealLimited Time OfferUpgrade to Higher Category at very special discounted ratesBOOK NOWTerms and Conditions apply');
} else { //Mobile devices -> Do not add image
jQuery("#fms-popup").append('Flat 15% OFFGET AWAY WITH MORE15% Discount on Best Flexible RatesLast Minute DealLimited Time OfferUpgrade to Higher Category at very special discounted ratesBOOK NOWTerms and Conditions apply');
}
//init -> slide FMS popup
setTimeout(function(){ jQuery("#fms-popup.ini-popup").removeClass("ini-popup"); launchEvent(jQuery("#fms-popup")); }, 1100);
jQuery("#fms-popup .fms-close").on("click", function(event){
jQuery("#fms-popup").addClass("closed");
jQuery("#fms-popup").animate({left: bannerLeft}, "slow");
//var noOfChars = $('#fms-popup h3').html().length;
var noOfChars = $('#fms-popup h3').width();
var mH = jQuery('#main-visual').height();
if(noOfChars>20){
//jQuery('#fms-popup.closed h3').css('width','auto');
//jQuery('#fms-popup.closed h3').css('max-width',mH);
var fullWidth = (noOfChars + 30),
positionTop = (fullWidth / 2)-19,
outerWidthTitle = $('#fms-popup h3').outerWidth(),
outerWidthTitleforIE9 = $('#fms-popup h3').outerHeight(),
positionLeft = (outerWidthTitle/2)-19,
positionLeftforIE9 = (outerWidthTitleforIE9/2)-16;
jQuery('#fms-popup.closed').height(fullWidth);
//console.log(outerWidthTitle);
if(isIE){
//console.log(outerWidthTitle);
jQuery('#fms-popup.closed h3').css({
'top':(fullWidth / 2)+'px',
'line-height':'16px',
'left':'-'+positionLeftforIE9+'px'
});
}else{
jQuery('#fms-popup.closed h3').css({
'top':positionTop,
'line-height':'38px',
'left':'-'+positionLeft+'px'
});
}
}
launchEvent(jQuery(this));
event.preventDefault(); event.stopPropagation();
});
/* Popup functions */
if(jQuery('.youtubeVideoLink').length > 0){
if(jQuery("#fancybox-wrap").show()){
jQuery("#holder #fms-popup").addClass("hide-popup");
jQuery("#fancybox-overlay,#fancybox-close").click(function(){
jQuery("#fms-popup").removeClass("hide-popup");
});
}
}else{
jQuery("#holder #fms-popup").removeClass("hide-popup");
jQuery("body").removeClass("show-popup");
}
jQuery("#fms-popup").on("click", function(event){
if(jQuery("#fms-popup").hasClass("closed")){
jQuery("#fms-popup").removeClass("closed");
jQuery("#fms-popup").animate({left: bannerLeft}, "slow");
jQuery('#fms-popup').height('auto');
if(isIE){
jQuery('#fms-popup h3').css('line-height','38px');
}
launchEvent(jQuery(this));
}
});
/** EVENTS TRACKING **/
// -----
// Documentation : https://developers.google.com/analytics/devguides/collection/gajs/eventTrackerGuide
//----
function validateThis(str) { if (typeof str == "undefined") {str = ""}; return str.replace(/(\r\n|\n|\r)/gm,'').replace(/\s+/g," "); }
function pushFMSPopupEvent(category, action, opt_label, opt_value, opt_noninteraction) {
// Only if Google Analytics is present
if(typeof _gat != 'undefined') {
// Get all trackers
var trackerObjects = _gat._getTrackers();
// Loop through all trackers, send event to each
for(var i= trackerObjects.length; i >= 0; i--) {
if(typeof trackerObjects[i] == 'undefined' || trackerObjects[i] == 'function' )
continue;
trackerObjects[i]._trackEvent(category, action, opt_label);
console.log('Event ' + i + ': ' + category + ' | ' + action + ' | '+ opt_label);
};
// Booking URL cross domain tracking
if(action == "FSS-Book Now"){
var el = jQuery('#fms-popup a')[0];
var linker = trackerObjects[0]
el.href = linker._getLinkerUrl(el.href);
}
};
};
jQuery(document).on("click",".event-tracking", function(event) {
launchEvent(jQuery(this));
});
function launchEvent(element){
var category = validateThis(element.data("category"));
var action = validateThis(element.data("action"));
var title = validateThis(element.data("title"));
pushFMSPopupEvent(category, action, title);
console.log("Category: " + category); console.log("Action: " + action); console.log("Title: " + title);
console.log("------");
}
}
});
}
jQuery('p.readmore-link-wrapper').children().each(function(){
var tl =jQuery(this).find('.link-with-arrow').text().length;
if(tl==0){
jQuery(this).find('.link-with-arrow').css('background','none');
}
});
/***Gallery Sub Menu***/
if ( jQuery(".gallerySubMenu ul").children().length > 0 ) {
jQuery(".gallerySubMenu ul").appendTo("#main-menu ul .gallery.level1");
}
jQuery('.special-promo').on('click', '.hasPopup', function(e){
e.preventDefault();
var url = $(this).attr('href');
var calendarIframe = '';
$('body').append(calendarIframe).addClass('calendar-popup-open');
});
/* calendar popup on load */
/* =========== */
jQuery('body').on('click', '.calendar-popup-wrapper', function(e){
$('.calendar-popup-wrapper').remove();
$('body').removeClass('calendar-popup-open');
});
});
/* jQuery(window).orientationchange(function(){
jQuery("#fms-popup .fms-close").click();
}); */
jQuery(window).load(function(){
});
//]]>
(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'../www.googletagmanager.com/gtm5445.html?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-T4PP6L3');
(function() {
var encode = window.encodeURIComponent;
var ka = document.createElement('script');
ka.type = 'text/javascript';
ka.id = 'c74f69f8ebd75cb22c3d';
ka.async = true;
ka.src = ('https:' == document.location.protocol ? 'https:' : 'http:') + '//cdn.brand-display.com/tr/knx15612/c74f69f8ebd75cb22c3d3466ff4072c0fad74c8f.js?v1=52618&v2='+ escape('IIDL Suites New Delhi')+'&v3='+ escape('fsnewdelhi-Homepage')+'&v16=en&v10=' + encode('en.html') + '&_t=' + new Date().getTime();
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ka, s);
})();
!function(f,b,e,v,n,t,s)
{if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};
if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];
s.parentNode.insertBefore(t,s)}(window,document,'script',
'../connect.facebook.net/en_US/fbevents.js');
fbq('init', '2182780958646118');
fbq('track', 'PageView');
!function(f,b,e,v,n,t,s)
{if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};
if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];
s.parentNode.insertBefore(t,s)}(window, document,'script',
'https://protect-us.mimecast.com/s/NVq7BMTWADLIV?domain=connect.facebook.net');
fbq('init', '303208526701359');
fbq('track', 'PageView');
(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'../www.googletagmanager.com/gtm5445.html?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-5DZS3J');
(window.BOOMR_mq=window.BOOMR_mq||[]).push(["addVar",{"rua.upush":"false","rua.cpush":"false","rua.upre":"false","rua.cpre":"false","rua.uprl":"false","rua.cprl":"false","rua.cprf":"false","rua.trans":"","rua.cook":"false","rua.ims":"false","rua.ufprl":"false","rua.cfprl":"false","rua.isuxp":"","rua.texp":""}]);
!function(a){var e="https://s.go-mpulse.net/boomerang/",t="addEventListener";if("False"=="True")a.BOOMR_config=a.BOOMR_config||{},a.BOOMR_config.PageParams=a.BOOMR_config.PageParams||{},a.BOOMR_config.PageParams.pci=!0,e="https://s2.go-mpulse.net/boomerang/";if(window.BOOMR_API_key="CZCNZ-98ENK-PR9LM-ZYZZ8-VAJC9",function(){function n(e){a.BOOMR_onload=e&&e.timeStamp||(new Date).getTime()}if(!a.BOOMR||!a.BOOMR.version&&!a.BOOMR.snippetExecuted){a.BOOMR=a.BOOMR||{},a.BOOMR.snippetExecuted=!0;var i,_,o,r=document.createElement("iframe");if(a[t])a[t]("load",n,!1);else if(a.attachEvent)a.attachEvent("onload",n);r.src="javascript:void(0)",r.title="",r.role="presentation",(r.frameElement||r).style.cssText="width:0;height:0;border:0;display:none;",o=document.getElementsByTagName("script")[0],o.parentNode.insertBefore(r,o);try{_=r.contentWindow.document}catch(O){i=document.domain,r.src="javascript:var d=document.open();d.domain='"+i+"';void(0);",_=r.contentWindow.document}_.open()._l=function(){var a=this.createElement("script");if(i)this.domain=i;a.id="boomr-if-as",a.src=e+"CZCNZ-98ENK-PR9LM-ZYZZ8-VAJC9",BOOMR_lstart=(new Date).getTime(),this.body.appendChild(a)},_.write("
Domain Summary
What is the traffic rank for Iidlhospitality.com?
• Iidlhospitality.com ranks #2,508,885 globally on HypeStat.
What percent of global Internet users visit Iidlhospitality.com?
• 2.0E-5% of global Internet users visit Iidlhospitality.com
How many people visit Iidlhospitality.com each day?
• Iidlhospitality.com receives approximately 1K visitors and 2,958 page impressions per day.
How much Iidlhospitality.com can earn?
• Iidlhospitality.com should earn about $12.07 /day from advertising revenue.
What is Iidlhospitality.com estimated value?
• Estimated value of Iidlhospitality.com is $9,177.06 .
What IP addresses does Iidlhospitality.com resolve to?
Where are Iidlhospitality.com servers located in?
• Iidlhospitality.com has servers located in Germany .
iidlhospitality.com Profile
Title: Best Hotel in Delhi Near Mayur Vihar 1, Luxury Hotel in Mayur Vihar Phase
if(window.top.location!=document.location)window.top.location.href=document.location.href;
//
//
//
// minValue){
jQuery("#date-in").datepicker( 'option', 'minDate', newStart );
jQuery("#date-out").datepicker( 'option', 'minDate', newEnd );
}else{
jQuery("#date-in").datepicker( 'option', 'minDate', 0 );
jQuery("#date-out").datepicker( 'option', 'minDate', 1 );
jQuery("#date-in").datepicker('setDate', new Date());
jQuery("#date-out").datepicker('setDate', new Date());
}
}
}
var tempArrLoad = [];
var listGenerateArr = [];
function buildHandler(entry) {
var getCountry = entry.country;
var getCity = entry.city;
var getHotelName = entry.name;
var getHotelBrand = entry.brand;
if(jQuery.inArray(getCountry, tempArrLoad) == -1){
listGenerateArr[getCountry] = new Array();
tempArrLoad.push(getCountry);
}
tempObj=
{
'name': entry.name,
'country': entry.country,
'hotelID': entry.hotelID,
'city': entry.city,
'brand': entry.brand
}
listGenerateArr[getCountry].push(tempObj);
}
function addScriptHotelList(items) {
jQuery("ul#searchResults li a").click(function(){
var getDataVal = jQuery(this).data("id");
var getDataType = jQuery(this).data("type");
var getDataBrand = jQuery(this).data("brand");
var getDataCountry = jQuery(this).data("country");
var getText = jQuery(this).text();
//Re add para names after submit fucntion changes
jQuery("#brand").attr( "name", "brand" );
jQuery("#chainSyn").attr( "name", "Chain" );
jQuery("#dest").attr( "name", "Dest" );
jQuery("#configcode").attr( "name", "configcode" );
jQuery("#level").attr( "name", "level" );
jQuery("#themecode").attr( "name", "themecode" );
jQuery("#hotel-id").attr( "name", "hotel" );
jQuery("#langIDSyn").attr( "name", "locale" );
jQuery('#availability-checker .booking-link').hide();
jQuery('#availability-checker button.booking-link').show();
if(getDataType=="country"){
//Override Special cases
if(getDataVal=="United Kingdom"){
getDataVal="UK";
}else if(getDataVal=="Kingdom of Bahrain"){
getDataVal="Kingdom of B";
}else if(getDataVal=="United Arab Emirates"){
getDataVal="UAE";
}
if(getDataVal=="UK"){
jQuery("#configcode").attr( "value", 'UK' );
jQuery("#bmcurrency").attr( "name", 'currency' );
jQuery("#bmcurrency").val("GBP");
}else{
jQuery("#configcode").attr( "value", 'Frasers' );
jQuery("#bmcurrency").removeAttr('name');
}
jQuery("#hotel-list").val(getText);
jQuery("#hotName").text(getText);
jQuery("#dest").attr("name","Dest");
jQuery("#dest").val(getDataVal);
jQuery("#hotel-id").removeAttr('name');
jQuery("#brand").removeAttr('name');
jQuery("#themecode").removeAttr('name');
}else if(getDataType=="city"){
jQuery("#hotel-list").val(getDataVal);
jQuery("#hotName").text(getDataVal);
jQuery("#dest").attr("name","Dest");
jQuery("#dest").val(getDataVal);
jQuery("#hotel-id").removeAttr('name');
jQuery("#brand").removeAttr('name');
jQuery("#themecode").removeAttr('name');
//Override Special cases, keep conditon here
if(getDataVal=="Ho Chi Min city"){
jQuery("#dest").val("Ho Chi Minh City");
}else if(getDataVal=="Bahrain"){
jQuery("#dest").val("Kingdom of B");
}
if(getDataCountry=="United Kingdom"){
jQuery("#configcode").attr( "value", 'UK' );
jQuery("#bmcurrency").attr("name","currency");
jQuery("#bmcurrency").val("GBP");
}else{
jQuery("#configcode").attr( "value", 'Frasers' );
jQuery("#bmcurrency").removeAttr('name');
}
}else{
if(getDataBrand=="Fraser"){
jQuery("#brand").val('FP,FR,FS');
jQuery("#themecode").attr( "value", 'frasers' );
}else if(getDataBrand=="Capri"){
jQuery("#brand").val( 'CP' );
jQuery("#themecode").attr( "value", 'capri' );
}else if(getDataBrand=="Modena"){
jQuery("#brand").val( 'MO' );
jQuery("#themecode").attr( "value", 'modena' );
}
if(getDataCountry=="United Kingdom"){
jQuery("#configcode").attr( "value", 'UK' );
jQuery("#bmcurrency").attr("name","currency");
jQuery("#bmcurrency").val("GBP");
}else{
jQuery("#configcode").attr( "value", 'Frasers' );
jQuery("#bmcurrency").removeAttr('name');
}
jQuery("#dest").val("");
jQuery("#dest").attr("name","");
//jQuery("#dest").removeAttr("name");
jQuery("#hotel-list").val(getText);
jQuery("#hotName").text(getText);
jQuery("#hotel-id").attr("name","hotel");
jQuery("#hotel-id").val(getDataVal);
}
jQuery("#searchResults").hide();
var a = jQuery("#hotel-list").val().length;
if (browserWidth < 768) {
if(a > 40){
jQuery("#hotel-list , #availability-checker").addClass("twoLine");
}else{
jQuery("#hotel-list, #availability-checker").removeClass("twoLine");
}
}else{
if(a > 30){
jQuery("#hotel-list , #availability-checker").addClass("twoLine");
}else{
jQuery("#hotel-list, #availability-checker").removeClass("twoLine");
}
}
//Set Start/END dates fucntion
if(getText=="Capri by Fraser, China Square ,Singapore"){
newStart = '06/05/2019';
newEnd = '07/05/2019';
setDate(newStart,newEnd)
}else if(getText=="Fraser Residence Chengdu, China"){
newStart = '01/05/2020';
newEnd = '02/05/2020';
setDate(newStart,newEnd)
}else if(getText=="Capri by Fraser, Leipzig / Germany"){
newStart = '18/05/2020';
newEnd = '19/05/2020';
setDate(newStart,newEnd);
}else if(getText=="IIDL Suites Akasaka, Tokyo"){
newStart = '07/08/2020';
newEnd = '08/08/2020';
setDate(newStart,newEnd);
}else{
jQuery("#date-in").datepicker( 'option', 'minDate', 0 );
jQuery("#date-out").datepicker( 'option', 'minDate', 1 );
jQuery("#date-in").datepicker('setDate', new Date());
jQuery("#date-out").datepicker('setDate', new Date());
}
if(getText == 'Capri by Fraser, Johor Bahru, Malaysia'){
jQuery('#adults option').filter(function(){
return parseInt(this.value,10) > 3;
}).remove();
}else{
var adultLengh = jQuery('#adults option').length;
var i ='';
if (adultLengh == 3) {
for(i = 4; i 40){
jQuery("#hotel-list , #availability-checker, .iniText").addClass("twoLine");
}else{
jQuery("#hotel-list, #availability-checker, .iniText").removeClass("twoLine");
}
}else{
if(b > 30){
jQuery("#hotel-list , #availability-checker, .iniText").addClass("twoLine");
}else{
jQuery("#hotel-list, #availability-checker, .iniText").removeClass("twoLine");
}
}
});
/***END NEW BM SEARCH***/
if (browserWidth > 767) {
jQuery('input#promo-code').val('Optional');
}
jQuery('#booking-form').submit(function(e){
var setCodeVal = "promo";
if(jQuery('input#promo-code').val()=='' || jQuery('input#promo-code').val()=='Optional'){
jQuery('#promo-code').removeAttr('name');
}else{
jQuery('#promo-code').attr('name',setCodeVal);
return true;
}
if(_fraser.language == "ja"){
if(jQuery('#hotName').text() == 'Fraser Residence Nankai, Osaka Japan' || jQuery('.hotel .iniText').text() == 'Fraser Residence Nankai, Osaka'){
e.preventDefault();
var checkin = document.getElementById("us-date-in").value;
var checkout = document.getElementById("us-date-out").value;
var dateInNew = checkin.split("-");
var dateOutNew = checkout.split("-");
var formattedDateIn = dateInNew[0]+'/'+dateInNew[1]+'/'+dateInNew[2];
var formattedDateOut = dateOutNew[0]+'/'+dateOutNew[1]+'/'+dateOutNew[2];
var adults = parseInt(document.getElementById("adults").value);
var children = parseInt(document.getElementById("children").value);
window.TriplaBookingWidget ('search_multiple_room', {
checkIn: formattedDateIn,
checkOut: formattedDateOut,
rooms: [
{adults: adults, children: children}
]
},'3f5380d99d09a30ba31e2833e786b34c')
}
}
if(jQuery('#hotName').text() == 'The Park International Hotel, London'){
var dateI = document.getElementById("us-date-in").value;
var dateO = document.getElementById("us-date-out").value;
//return new Date( 2016,08,09);
var dateInNew = dateI.split("index.html");
var dateOutNew = dateO.split("index.html");
var dateInNewPass = new Date (dateInNew[2],dateInNew[0], dateInNew[1]),
dateInn = new Date( dateInNewPass.getTime() + (24 * 60 * 60 * 1000));
var dateOutNewPass = new Date (dateOutNew[2],dateOutNew[0], dateOutNew[1]),
dateOutn = new Date( dateOutNewPass.getTime() + (24 * 60 * 60 * 1000));
if('en' == 'en') {
jQuery('#us-date-in').val(dateInNew[0]+'/'+dateInNew[1]+'/'+dateInNew[2]);
jQuery('#us-date-out').val(dateOutNew[0]+'/'+dateOutNew[1]+'/'+dateOutNew[2]);
}else if('en' == 'ru'){
jQuery('#us-date-in').val(dateInNew[1]+'/'+dateInNew[0]+'/'+dateInNew[2]);
jQuery('#us-date-out').val(dateOutNew[1]+'/'+dateOutNew[0]+'/'+dateOutNew[2]);
}else{
jQuery('#us-date-in').val(dateInNew[1]+'/'+dateInNew[0]+'/'+dateInNew[2]);
jQuery('#us-date-out').val(dateOutNew[1]+'/'+dateOutNew[0]+'/'+dateOutNew[2]);
}
if('en' == 'es'){
jQuery('#langIDSyn').val('2');
}else if('en' == 'fr'){
jQuery('#langIDSyn').val('3');
}else{
jQuery('#langIDSyn').val('1');
}
jQuery("#brand").removeAttr('name');
}
if(jQuery('#hotName').text() == 'North Park Place, Bangkok Thailand'){
e.preventDefault();
window.open(
'http://northparkplace.iidlhospitality.com/en/accommodation/rfp-form.php',
'_blank'
);
}else{
//jQuery("#dest").attr('name', 'Dest');
}
return true;
if(jQuery('.hotel .iniText').is(':visible')){
//jQuery("#shell").removeAttr('name');
jQuery("#hotel-id").val(52618);
}
var brandVal = jQuery("#brand").val();
if(jQuery("#brand").val()==''){
jQuery("#brand").removeAttr('name');
}else{
jQuery("#brand").attr('name', 'brand');
jQuery("#brand").attr( 'value', brandVal );
}
});
jQuery('.gallery-book-now').click(function(){
jQuery(this).addClass('hide');
jQuery('#availability-checker').addClass('show');
});
jQuery('.gallery-book-now-close').click(function(){
jQuery('#availability-checker').removeClass('show');
jQuery('.gallery-book-now').removeClass('hide');
});
/** mobile booking mask **/
if (browserWidth < 768) {
jQuery('.promo-code .non-mobile').hide();
jQuery('button .non-mobile').hide();
jQuery('#adults').on("change",function (){
jQuery(this).parents('.adults').addClass('choosedVal');
jQuery(this).parents('.choose').find('label').hide();
});
jQuery('#children').on("change",function (){
jQuery(this).parents('.children').addClass('choosedVal');
jQuery(this).parents('.choose').find('label').hide();
});
jQuery("#promo-code").click(function(){
jQuery(this).siblings('label.mobile').hide();
});
jQuery("#promo-code").bind("focusout", function() {
var pro = jQuery(this);
if(pro.val()==""){
pro.siblings('label.mobile').show();
}else{
pro.siblings('label.mobile').hide();
}
});
}
/*_________________ [END BOOKING MASK] */
/* ]]> */
/* BEGIN: Create Cookie Notice */
if(cookieMonster.readCookie(cookieMonster.cookieName) == null){
var cookienoticeID = "cookie-notice",
cookieNoticeMoreClass = "find-more",
cookieNoticeMoreInfo = "more-info",
cookieNoticeClose = "close",
cookieNoticeHTML = 'We use cookies to understand your preferences, optimize site security and functionality and deliver personalized content tailored to your interests. By continuing to use our site, you agree to our use of cookies to enhance your user experience. Find out more.I Accept';
jQuery(document.body).prepend(cookieNoticeHTML);
jQuery("#"+cookienoticeID+" ."+cookieNoticeMoreClass+"[href='#']").bind("click", function(e){
e.preventDefault();
jQuery("#"+cookienoticeID+" ."+cookieNoticeMoreInfo).slideToggle();
});
jQuery("#"+cookienoticeID+" ."+cookieNoticeClose).bind("click", function(e){
e.preventDefault();
cookieMonster.createCookie(cookieMonster.cookieName,'1',365);
if(cookieMonster.readCookie(cookieMonster.cookieName) != null){
jQuery("#"+cookienoticeID).slideUp();
}
});
}
/* END: Create Cookie Notice */
// END: onLoadScript
//check if IE9
var isIE = document.all && document.addEventListener && !window.atob;
jQuery('.germanyContent > .blockCollection > .contentBlock').each(function(index){
if(index < 11){
jQuery(this).addClass('readmore');
}
});
jQuery('.germanyContent .blockCollection .contentBlock.readmore:nth-child(-n+2)').addClass('active');
jQuery('.germanyContent .blockCollection .contentBlock.readmore').last().after('');
jQuery('.germanyContent .readMore').click(function(){
jQuery('.germanyContent .blockCollection .contentBlock.readmore').addClass('active');
setTimeout(function(){
jQuery('.germanyContent .readMore').text('Read Less');
jQuery('.germanyContent .readMore').attr('class','readLess');
}, 100);
});
jQuery(document).on("click",".germanyContent .readLess",function() {
jQuery(".germanyContent .blockCollection .contentBlock.readmore").removeClass('active');
jQuery('.germanyContent .blockCollection .contentBlock.readmore:nth-child(-n+2)').addClass('active');
setTimeout(function(){
jQuery('.germanyContent .readLess').text('Read More');
jQuery('.germanyContent .readLess').attr('class','readMore');
}, 100);
});
var remove = jQuery(".newsletter.footer-upper-block > a[href]");
jQuery( ".participating-property:empty" ).css( "display", "none" );
if(jQuery(remove).length == 0){
jQuery(".participating-property.link-with-arrow").css('display','none');
}
// fancybox PNG file location fix - Please Do NOT remove the below line.
fancyboxIEPngLocationFix.fix("templates/main/libs/jquery/fancybox/index.html");
jQuery(".applywrapper .applynow").bind('click', function(){
jQuery('.formwrapper').fadeOut(500);
var currentform=jQuery(this).parents().children('.formwrapper');
if(currentform.hasClass('open')){
currentform.removeClass('open');
currentform.fadeOut(500);
}else{
jQuery('.formwrapper').removeClass('open');
currentform.addClass('open');
currentform.fadeIn(1500);
var title=jQuery(this).parents().siblings('.posi-wrapper').text();
}
});
jQuery('#ff_subject1').change(function (){
var label=jQuery('#ff_subject1 :selected').parent().attr('label');
var t = jQuery('#ff_subject1').val().split('reservationAssistance');
if(label=='Reservation Assistance'){
jQuery('#ff_propertyOffice1').attr('disabled',true);
jQuery('#ff_propertyOffice1').uniform('refresh');
jQuery('#ff_propertyOffice1').parent().parent().parent().removeClass('required');
jQuery('#ff_propertyOffice1').parent().parent().parent().removeClass('invalid');
jQuery('#ff_propertyOffice1 option[value='+t[1]+']').attr('selected',true);
jQuery('#ff_propertyOffice1').uniform('refresh');
}else{
jQuery('#ff_propertyOffice1').attr('disabled',false);
jQuery('#ff_propertyOffice1').uniform('refresh');
if(!jQuery('#ff_propertyOffice1').parent().parent().parent().hasClass('required')){
jQuery('#ff_propertyOffice1').parent().parent().parent().addClass('required');
}else if(!jQuery('#ff_propertyOffice1').parent().parent().parent().hasClass('invalid')){
jQuery('#ff_propertyOffice1').parent().parent().parent().addClass('required');
}
}
});
var currLang = 'en';
if(currLang == 'ar'){
jQuery('html').attr('dir','rtl');
jQuery("a[href*='tel:']").each(function(){
jQuery(this).attr('dir','ltr');
});
jQuery(".ltr").each(function(){
jQuery(this).attr('dir','ltr');
});
}
/* landing page form validation */
var errorMsg = jQuery('.errormsg');
errorMsg.hide();
if(jQuery('body').find('.type_customNewForm')){
jQuery(window).load(function(){
var actionUrl = jQuery('.type_customNewForm form').attr('action');
jQuery('.type_customNewForm form').removeAttr('action');
var regex = /^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/;
var regexCard = /[0-9]\/[0-9]/g;
var fieldProp = ['property','arrivaldate','departuredate','faxNo','salutation','firstName','lastName','emailAddress','tel','amexVoucherNumber','amexPlatinumCardNumber','cardExpiryDate'];
jQuery('.type_customNewForm .submit').click(function(e){
e.preventDefault();
var noErrors = 1;
var proplength = fieldProp.length;
for(var i = 0; i < proplength; i++){
jQuery('#ff_'+fieldProp[i]+'1').parent().parent().removeClass('invalid');
if(jQuery('#ff_'+fieldProp[i]+'1').val() == '' || jQuery('#ff_'+fieldProp[i]+'1').val() == ' '){
jQuery('.'+fieldProp[i]).addClass('invalid');
noErrors = 0;
}
if(fieldProp[i] == 'emailAddress'){
if(!(regex.test(jQuery('#ff_'+fieldProp[i]+'1').val()))){
jQuery('.'+fieldProp[i]).addClass('invalid');
noErrors = 0;
}
}
if(fieldProp[i] == 'cardExpiryDate'){
if(!(regexCard.test(jQuery('#ff_'+fieldProp[i]+'1').val()))){
jQuery('.'+fieldProp[i]).addClass('invalid');
noErrors = 0;
}
}
}
if(noErrors == 1){
jQuery('.type_customNewForm form').attr('action', actionUrl);
$('.type_customNewForm .submit').unbind('click');
$('.type_customNewForm form .submit').click();
}else{
jQuery('.type_customNewForm form .property').before(errorMsg);
jQuery('.type_customNewForm form .errormsg').show();
}
});
});
}
if('page_home' == 'page_dynamic_151'){
jQuery('#languages .zh').attr("href", "http://fraserchina.com/contact/international");
}
/*Add this Validation Issue fix */
var docURL = 'index.html',
docTitle ='Welcome to IIDL Suites New Delhi';
//jQuery('.addthis_button').attr('addthis:url',docURL);
//jQuery('.addthis_button').attr('addthis:title',docTitle);
//ADDTHIS ASYNC LOAD
/* Add FMS POPUP */
if(jQuery("#fms-popup").length ){
var wW = jQuery(window).width();
var hW = jQuery('#holder').width();
var bannerLeft = (wW - hW) / 2;
$.getJSON("https://jsonip.com/?callback=?", function (data) {
var clientIP = data.ip;
var blockedIPs = ["103.6.182.20","5.57.16.220","194.153.190.13","198.151.60.100","198.175.56.100","202.79.222.100","202.125.108.1","91.103.175.179","204.74.99.100","216.251.120.22","133.237.17.35","202.72.51.22","64.6.21.5","64.6.28.5","202.4.26.140","203.223.144.50","176.9.118.61","122.248.250.123","23.62.99.163","2.21.243.81","83.245.36.141","199.204.29.141","202.125.108.21","202.125.108.115","91.103.175.181","216.251.127.130","23.212.194.120"];
if(blockedIPs.indexOf(clientIP) < 0){ //display popup
if(jQuery(".fms-popup-loggedIn").has('.fms-image')){ //All devices except mobile -> Add Image
jQuery("#fms-popup").append('Flat 15% OFFGET AWAY WITH MORE15% Discount on Best Flexible RatesLast Minute DealLimited Time OfferUpgrade to Higher Category at very special discounted ratesBOOK NOWTerms and Conditions apply');
} else { //Mobile devices -> Do not add image
jQuery("#fms-popup").append('Flat 15% OFFGET AWAY WITH MORE15% Discount on Best Flexible RatesLast Minute DealLimited Time OfferUpgrade to Higher Category at very special discounted ratesBOOK NOWTerms and Conditions apply');
}
//init -> slide FMS popup
setTimeout(function(){ jQuery("#fms-popup.ini-popup").removeClass("ini-popup"); launchEvent(jQuery("#fms-popup")); }, 1100);
jQuery("#fms-popup .fms-close").on("click", function(event){
jQuery("#fms-popup").addClass("closed");
jQuery("#fms-popup").animate({left: bannerLeft}, "slow");
//var noOfChars = $('#fms-popup h3').html().length;
var noOfChars = $('#fms-popup h3').width();
var mH = jQuery('#main-visual').height();
if(noOfChars>20){
//jQuery('#fms-popup.closed h3').css('width','auto');
//jQuery('#fms-popup.closed h3').css('max-width',mH);
var fullWidth = (noOfChars + 30),
positionTop = (fullWidth / 2)-19,
outerWidthTitle = $('#fms-popup h3').outerWidth(),
outerWidthTitleforIE9 = $('#fms-popup h3').outerHeight(),
positionLeft = (outerWidthTitle/2)-19,
positionLeftforIE9 = (outerWidthTitleforIE9/2)-16;
jQuery('#fms-popup.closed').height(fullWidth);
//console.log(outerWidthTitle);
if(isIE){
//console.log(outerWidthTitle);
jQuery('#fms-popup.closed h3').css({
'top':(fullWidth / 2)+'px',
'line-height':'16px',
'left':'-'+positionLeftforIE9+'px'
});
}else{
jQuery('#fms-popup.closed h3').css({
'top':positionTop,
'line-height':'38px',
'left':'-'+positionLeft+'px'
});
}
}
launchEvent(jQuery(this));
event.preventDefault(); event.stopPropagation();
});
/* Popup functions */
if(jQuery('.youtubeVideoLink').length > 0){
if(jQuery("#fancybox-wrap").show()){
jQuery("#holder #fms-popup").addClass("hide-popup");
jQuery("#fancybox-overlay,#fancybox-close").click(function(){
jQuery("#fms-popup").removeClass("hide-popup");
});
}
}else{
jQuery("#holder #fms-popup").removeClass("hide-popup");
jQuery("body").removeClass("show-popup");
}
jQuery("#fms-popup").on("click", function(event){
if(jQuery("#fms-popup").hasClass("closed")){
jQuery("#fms-popup").removeClass("closed");
jQuery("#fms-popup").animate({left: bannerLeft}, "slow");
jQuery('#fms-popup').height('auto');
if(isIE){
jQuery('#fms-popup h3').css('line-height','38px');
}
launchEvent(jQuery(this));
}
});
/** EVENTS TRACKING **/
// -----
// Documentation : https://developers.google.com/analytics/devguides/collection/gajs/eventTrackerGuide
//----
function validateThis(str) { if (typeof str == "undefined") {str = ""}; return str.replace(/(\r\n|\n|\r)/gm,'').replace(/\s+/g," "); }
function pushFMSPopupEvent(category, action, opt_label, opt_value, opt_noninteraction) {
// Only if Google Analytics is present
if(typeof _gat != 'undefined') {
// Get all trackers
var trackerObjects = _gat._getTrackers();
// Loop through all trackers, send event to each
for(var i= trackerObjects.length; i >= 0; i--) {
if(typeof trackerObjects[i] == 'undefined' || trackerObjects[i] == 'function' )
continue;
trackerObjects[i]._trackEvent(category, action, opt_label);
console.log('Event ' + i + ': ' + category + ' | ' + action + ' | '+ opt_label);
};
// Booking URL cross domain tracking
if(action == "FSS-Book Now"){
var el = jQuery('#fms-popup a')[0];
var linker = trackerObjects[0]
el.href = linker._getLinkerUrl(el.href);
}
};
};
jQuery(document).on("click",".event-tracking", function(event) {
launchEvent(jQuery(this));
});
function launchEvent(element){
var category = validateThis(element.data("category"));
var action = validateThis(element.data("action"));
var title = validateThis(element.data("title"));
pushFMSPopupEvent(category, action, title);
console.log("Category: " + category); console.log("Action: " + action); console.log("Title: " + title);
console.log("------");
}
}
});
}
jQuery('p.readmore-link-wrapper').children().each(function(){
var tl =jQuery(this).find('.link-with-arrow').text().length;
if(tl==0){
jQuery(this).find('.link-with-arrow').css('background','none');
}
});
/***Gallery Sub Menu***/
if ( jQuery(".gallerySubMenu ul").children().length > 0 ) {
jQuery(".gallerySubMenu ul").appendTo("#main-menu ul .gallery.level1");
}
jQuery('.special-promo').on('click', '.hasPopup', function(e){
e.preventDefault();
var url = $(this).attr('href');
var calendarIframe = '';
$('body').append(calendarIframe).addClass('calendar-popup-open');
});
/* calendar popup on load */
/* =========== */
jQuery('body').on('click', '.calendar-popup-wrapper', function(e){
$('.calendar-popup-wrapper').remove();
$('body').removeClass('calendar-popup-open');
});
});
/* jQuery(window).orientationchange(function(){
jQuery("#fms-popup .fms-close").click();
}); */
jQuery(window).load(function(){
});
//]]>
(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'../www.googletagmanager.com/gtm5445.html?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-T4PP6L3');
(function() {
var encode = window.encodeURIComponent;
var ka = document.createElement('script');
ka.type = 'text/javascript';
ka.id = 'c74f69f8ebd75cb22c3d';
ka.async = true;
ka.src = ('https:' == document.location.protocol ? 'https:' : 'http:') + '//cdn.brand-display.com/tr/knx15612/c74f69f8ebd75cb22c3d3466ff4072c0fad74c8f.js?v1=52618&v2='+ escape('IIDL Suites New Delhi')+'&v3='+ escape('fsnewdelhi-Homepage')+'&v16=en&v10=' + encode('en.html') + '&_t=' + new Date().getTime();
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ka, s);
})();
!function(f,b,e,v,n,t,s)
{if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};
if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];
s.parentNode.insertBefore(t,s)}(window,document,'script',
'../connect.facebook.net/en_US/fbevents.js');
fbq('init', '2182780958646118');
fbq('track', 'PageView');
!function(f,b,e,v,n,t,s)
{if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};
if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];
s.parentNode.insertBefore(t,s)}(window, document,'script',
'https://protect-us.mimecast.com/s/NVq7BMTWADLIV?domain=connect.facebook.net');
fbq('init', '303208526701359');
fbq('track', 'PageView');
(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'../www.googletagmanager.com/gtm5445.html?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-5DZS3J');
(window.BOOMR_mq=window.BOOMR_mq||[]).push(["addVar",{"rua.upush":"false","rua.cpush":"false","rua.upre":"false","rua.cpre":"false","rua.uprl":"false","rua.cprl":"false","rua.cprf":"false","rua.trans":"","rua.cook":"false","rua.ims":"false","rua.ufprl":"false","rua.cfprl":"false","rua.isuxp":"","rua.texp":""}]);
!function(a){var e="https://s.go-mpulse.net/boomerang/",t="addEventListener";if("False"=="True")a.BOOMR_config=a.BOOMR_config||{},a.BOOMR_config.PageParams=a.BOOMR_config.PageParams||{},a.BOOMR_config.PageParams.pci=!0,e="https://s2.go-mpulse.net/boomerang/";if(window.BOOMR_API_key="CZCNZ-98ENK-PR9LM-ZYZZ8-VAJC9",function(){function n(e){a.BOOMR_onload=e&&e.timeStamp||(new Date).getTime()}if(!a.BOOMR||!a.BOOMR.version&&!a.BOOMR.snippetExecuted){a.BOOMR=a.BOOMR||{},a.BOOMR.snippetExecuted=!0;var i,_,o,r=document.createElement("iframe");if(a[t])a[t]("load",n,!1);else if(a.attachEvent)a.attachEvent("onload",n);r.src="javascript:void(0)",r.title="",r.role="presentation",(r.frameElement||r).style.cssText="width:0;height:0;border:0;display:none;",o=document.getElementsByTagName("script")[0],o.parentNode.insertBefore(r,o);try{_=r.contentWindow.document}catch(O){i=document.domain,r.src="javascript:var d=document.open();d.domain='"+i+"';void(0);",_=r.contentWindow.document}_.open()._l=function(){var a=this.createElement("script");if(i)this.domain=i;a.id="boomr-if-as",a.src=e+"CZCNZ-98ENK-PR9LM-ZYZZ8-VAJC9",BOOMR_lstart=(new Date).getTime(),this.body.appendChild(a)},_.write("
Description: Are you looking for place to stay in Mayur Vihar then IIDL Suites. Book luxury hotel in Mayur Vihar Phase 1 with best amenities.
What technologies does iidlhospitality.com use?
These are the technologies used at iidlhospitality.com. iidlhospitality.com has a total of 7 technologies installed in 6 different categories.
iidlhospitality.com Traffic Analysis
Iidlhospitality.com is ranked #2,508,885 in the world. This website is viewed by an estimated 1K visitors daily, generating a total of 3K pageviews. This equates to about 29.9K monthly visitors.
Daily Visitors1K
Monthly Visits29.9K
Pages per Visit3.00
Visit duration n/a
Bounce Rate n/a
Daily Unique Visitors: 986
Monthly Visits: 29,876
Pages per Visit: 3.00
Daily Pageviews: 2,958
Avg. visit duration: n/a
Bounce rate: n/a
Global Reach: 2.0E-5%
HypeRank: 2,508,885
SEMrush Rank: 42,983,996
*All traffic values are estimates only.
Backlinks Report ▼
Iidlhospitality.com has a total of 815 backlinks from 21 referring domains and most of them comes from United States.
Total Backlinks: 815
Follow Links: n/a
Nofollow Links: n/a
Referring Domains: 21
Referring IPs: 15
Authority Domain Score: 0
Backlinks by country
Country Domains
United States 10
India 4
Singapore 1
Italy 1
Germany 1
Backlinks by TLDs
TLD Distribution Domains
.com
7
.xyz
6
.org
2
.edu
0
.gov
0
Last update was 1047 days ago
UPDATE NOW This can take up to 60 seconds. Please wait...
*HypeStat.com is not promoting or affiliated with iidlhospitality.com in any way. Only publicly available statistics data are displayed.
Search Engine Indexes ▼
Search engine indexes are huge databases or collections of net pages that search engines like google like google and yahoo use to retrieve applicable facts while customers carry out searches. These indexes are created through search engines like google and yahoo through crawling and indexing net pages from throughout the internet.
Google Index: 105 Bing Index: 65
▼
SEMrush is a complete on line advertising and marketing platform that gives a extensive variety of gear and functions to help companies and entrepreneurs in enhancing their on line visibility and optimizing their virtual advertising and marketing strategies.
Domain: iidlhospitality.com
Rank:(Rank based on keywords, cost and organic traffic) 42,983,996
Organic Keywords:(Number of keywords in top 20 Google SERP) 11
Organic Traffic:(Number of visitors coming from top 20 search results) 0
Organic Cost:((How much need to spend if get same number of visitors from Google Adwords) $0.00
Revenue report ▼
Google.com would generate approximately $12.1 per day if the source of income were advertisements, which equates to an estimated monthly revenue of $362.1 and annual gross revenue of approximately $4.4K. Based on these figures, the site's net worth is estimated at around $9.2K.
How much would iidlhospitality.com make?
Daily Revenue: $12.07
Monthly Revenue: $362.10
Yearly Revenue: $4,405.55
*All earnings values are estimates only.
How much is iidlhospitality.com worth?
Website Value: $9.2K
Ad Experience Report ▼
Summary of the ad experience rating of a website for a specific platform.
Mobile summary
Root domain: iidlhospitality.com
Ad filtering:(Chrome is not filtering ads on your site.) Off
Status:(The status of the site that is reviewed for the Better Ads Standards.) Not reviewed
Desktop summary
Root domain: iidlhospitality.com
Ad filtering:(Chrome is not filtering ads on your site.) Off
Status:(The status of the site that is reviewed for the Better Ads Standards.) Not reviewed
Abusive Experience Report ▼
Summary of the abusive experience rating of a website.
Root domain: iidlhospitality.com
Enforcement:(Chrome is not preventing your site from opening new windows or tabs.) Off
Status:(The status of the site reviewed for the abusive experiences.) Not reviewed
Where is iidlhospitality.com hosted? ▼
Iidlhospitality.com may be hosted in multiple data centers distributed in different locations around the world. This is probably just one of them.
Other sites hosted on 46.17.172.97
Does iidlhospitality.com use compression? ▼
Website compression is the process of reducing the size of website files, such as HTML, CSS, JavaScript, and image files, to improve website performance and load times. Compressing website files can significantly reduce the amount of data that needs to be transferred from the server to the user's browser, resulting in faster page load times and improved user experience. Files on iidlhospitality.com are reduced by 67%.
iidlhospitality.com use br compression.
Original size: 104.81 KB
Compressed size: 34.09 KB
File reduced by: 70.72 KB (67%)
Google Safe Browsing ▼
Google Safe Browsing is a service provided by Google that helps protect users from visiting websites that may contain malicious or harmful content, such as malware, phishing attempts, or deceptive software.
This site is not currently listed as suspicious
SSL Checker - SSL Certificate Verify ▼
An SSL (Secure Sockets Layer) certificate is a digital certificate that establishes a secure encrypted connection between a web server and a user's web browser. It provides authentication and encryption, ensuring that data transmitted between the server and the browser remains private and protected. iidlhospitality.com supports HTTPS.
iidlhospitality.com supports HTTPS
iidlhospitality.com does not support HTTPS
Verifying SSL Support. Please wait...
Check SSL
Common Name: iidlhospitality.com
Organization:
Location:
Issuer: R3
Valid from: Mar 21 04:43:44 2022 GMT
Valid until: Jun 19 04:43:43 2022 GMT
Authority: CA:FALSE
Keysize: 4096 Bits
Common Name: R3
Organization: Let's Encrypt
Location: US
Issuer: ISRG Root X1
Valid from: Sep 4 00:00:00 2020 GMT
Valid until: Sep 15 16:00:00 2025 GMT
Authority: CA:TRUE
Keysize: 2048 Bits
Common Name: ISRG Root X1
Organization: Internet Security Research Group
Location: US
Issuer: DST Root CA X3
Valid from: Jan 20 19:14:03 2021 GMT
Valid until: Sep 30 18:14:03 2024 GMT
Authority: CA:TRUE
Keysize: 4096 Bits
Verify HTTP/2 Support ▼
HTTP/2 (Hypertext Transfer Protocol version 2) is a major revision of the HTTP protocol, which is the foundation of data communication on the World Wide Web. It was developed as an improvement over the previous HTTP/1.1 version to enhance web performance and efficiency.
iidlhospitality.com supports HTTP/2
iidlhospitality.com does not support HTTP/2
Verifying HTTP/2.0 Support. Please wait...
Test
DNS Lookup ▼
DNS entries (Domain Name System) are a critical component of the Internet infrastructure. They act as directories that translate human-readable domain names (such as example.com) to machine-readable IP addresses. DNS records are stored on DNS servers and help forward internet traffic efficiently.
Type
Ip
Target/Txt
TTL
HINFO
3600
AAAA
2a02:4780:3:448::2d8e:6f58:9
3547
A
46.17.172.97
3538
NS
ns2.dns-parking.com
3538
NS
ns1.dns-parking.com
3538
Whois Lookup ▼
Domain WHOIS is a public database that provides information about domain names, including registered owners, contact information, domain registrars, registration and expiration dates, name servers, and other relevant information.
Domain registration for this website began on May 5, 2021 and will expire on May 5, 2023 if not renewed. This website is now assigned through the registrar GoDaddy.com, LLC. The WHOIS data for this website's domain was last updated on April 28, 2022.
Domain Created: 2021-05-05 Domain Expires: 2023-05-05 Domain Updated: 2022-04-28 Domain Age: 3 years 10 months 18 days Domain Registrar: GoDaddy.com, LLC Domain Owner: IFCI Infrastructure Development Limited WhoIs:
Domain Name: iidlhospitality.com
Registry Domain ID: 2610074333_DOMAIN_COM-VRSN
Registrar WHOIS Server: whois.godaddy.com
Registrar URL: https://www.godaddy.com
Updated Date: 2022-04-29T00:05:17Z
Creation Date: 2021-05-06T03:15:38Z
Registrar Registration Expiration Date: 2023-05-06T03:15:38Z
Registrar: GoDaddy.com, LLC
Registrar IANA ID: 146
Registrar Abuse Contact Email:
Registrar Abuse Contact Phone: +1.4806242505
Domain Status: clientTransferProhibited https://icann.org/epp#clientTransferProhibited
Domain Status: clientUpdateProhibited https://icann.org/epp#clientUpdateProhibited
Domain Status: clientRenewProhibited https://icann.org/epp#clientRenewProhibited
Domain Status: clientDeleteProhibited https://icann.org/epp#clientDeleteProhibited
Registrant Organization: IFCI Infrastructure Development Limited
Registrant State/Province: Delhi
Registrant Country: IN
Registrant Email: Select Contact Domain Holder link at https://www.godaddy.com/whois/results.aspx?domain=iidlhospitality.com
Tech Email: Select Contact Domain Holder link at https://www.godaddy.com/whois/results.aspx?domain=iidlhospitality.com
Admin Email: Select Contact Domain Holder link at https://www.godaddy.com/whois/results.aspx?domain=iidlhospitality.com
Name Server: NS1.DNS-PARKING.COM
Name Server: NS2.DNS-PARKING.COM
DNSSEC: unsigned
URL of the ICANN WHOIS Data Problem Reporting System: http://wdprs.internic.net/
>>> Last update of WHOIS database: 2022-05-11T01:03:03Z