'; pQContents += ' '; pQContents += '
'; pQContents += '
'; pQContents += '
/5'; pQContents += '
'; pQContents += '
'; pQContents += '
'; pQContents += '
'; function getRatingSuccess(data) { if(!bvc.languageLabelsData || !bvc.selectedBrandData || bvc.layoutType === "") { $("#IWSfrContainer").empty(); $("#generatedCodeBVFRWWidget").val(""); return false; } $("#"+bvc.bvContainerId).empty(); var brandNamePath = (bvc.selectedBrandData.alternativeBrandName) ? bvc.selectedBrandData.alternativeBrandName : bvc.brandSelector; var logoPath = 'https://digital.ihg.com/is/image/ihg/'+brandNamePath.toUpperCase()+'_logo?fmt=png-alpha'; $("#"+bvc.bvContainerId).prepend(pQContents).css('width',bvc.layoutWidth); /* add container divs to dom */ $('head').append(''); /* add css to page */ $("#"+bvc.bvContainerId+' .'+'IWSfrLogo img').attr('src', logoPath); /* add logo src */ $("#"+bvc.bvContainerId+' .'+'IWSfrHeader').html(bvc.languageLabelsData.header).attr('style',bvc.fontFace); /* set header language */ /* var hotelUrl = "//www." + bvc.domain + "/hotels/" + bvc.countryCode + "/" + bvc.languageCode + "/" + bvc.productId.toLowerCase() + "/hoteldetail/hotel-reviews?cm_mmc=iws_widget_" + bvc.productId.toUpperCase() + "&icdv=99502222"; */ var brandSel = bvc.brandSelector; if(brandSel=='ihg'){ brandSel='6c'; } var regionSel = $("#languageCode option:selected").attr("data-country"); var envVal=""; if(location.host.indexOf("qap.")!=-1){ envVal="qap." }else if(location.host.indexOf("staging.")!=-1){ envVal="staging." } var hotelUrl = "//"+envVal+"www." + bvc.domain + "/redirect?path=hd-hotel-reviews"+ "&brandCode="+brandSel+ "&hotelCode="+bvc.productId.toLowerCase()+ "®ionCode="+bvc.countryCode+ "&localeCode="+bvc.languageCode+ "&cm_mmc=iws_widget_"+ bvc.productId.toUpperCase() + "&icdv=99502222&dp=true"; console.log("Hotel Review URL : " + hotelUrl); $("#IWSfrContainer").append('