Avis Clients | St-Alban Hotel & Spa | La Clusaz

  • 0
    Booking
    Booking
  • 0
    TripAdvisor
    TripAdvisor
  • 0
    Expedia
    Expedia

Sur la base des 1000 derniers avis

jQuery(document).ready(function () { var lang = 'fr'; moment.locale(lang); jQuery.get( "https://ws2.altelis.com/SentinelOauth/?hotelId=21139&accessToken=8UK749JUQ9NJHN2GQWH3RJH15&tokenSecret=kVQ*eb7RLnNDM*NwgtUOYQ", function (data) { createReview(data); }, "json"); jQuery('.reviews-filter ul li').click(function () { jQuery('.reviews-filter ul li').removeClass('filter-active'); jQuery(this).addClass('filter-active'); var category = jQuery(this).attr('data-category'); jQuery('.reviews-category').removeClass('active'); jQuery('#' + category).addClass('active'); }); jQuery.get( "https://ws2.altelis.com/SentinelOauth/filter.php?hotelId=21139&accessToken=8UK749JUQ9NJHN2GQWH3RJH15&tokenSecret=kVQ*eb7RLnNDM*NwgtUOYQ&filter=TripAdvisor", function (data) { calculAverage(data, "Couple"); calculAverage(data, "Family"); calculAverage(data, "Enterprise"); calculAverage(data, "Friends"); calculAverage(data, "TripAdvisor"); }, "json"); jQuery.get( "https://ws2.altelis.com/SentinelOauth/filter.php?hotelId=21139&accessToken=8UK749JUQ9NJHN2GQWH3RJH15&tokenSecret=kVQ*eb7RLnNDM*NwgtUOYQ&filter=Booking", function (data) { calculAverage(data, "Booking"); }, "json"); jQuery.get( "https://ws2.altelis.com/SentinelOauth/filter.php?hotelId=21139&accessToken=8UK749JUQ9NJHN2GQWH3RJH15&tokenSecret=kVQ*eb7RLnNDM*NwgtUOYQ&filter=Expedia", function (data) { calculAverage(data, "Expedia"); }, "json"); var createReview = function (data, categoryLang= 'all') { var categoryLang = categoryLang.toUpperCase(); for (i = 0; i < data.length; i++) { if (data[i].Rating >= 7) { var lang = data[i].CountryCode; if (categoryLang == 'ALL') { var id = data[i].ReviewId; var output = '
'; output += createReviewHeader(data); output += createReviewContent(data); output += '
'; jQuery(".list-reviews .spinner").hide(); jQuery("#reviews .list-reviews").append(output); } else if (lang == categoryLang && lang) { var id = data[i].ReviewId; var output = '
'; output += createReviewHeader(data); output += createReviewContent(data); output += '
'; jQuery(".list-reviews .spinner").hide(); jQuery("#reviews .list-reviews").append(output); } } } } var createReviewHeader = function (data) { var author = data[i].Author; var channel = data[i].ChannelName var date = moment(data[i].Date).format("LL"); output = '
'; output += createReviewRating(data); output += ' Avis publié par ' + author + ' '; output += ' via ' + channel + ' '; output += ' : ' + date + ' '; output += '
'; return output; } var createReviewRating = function (data) { var rate = (data[i].Rating) / 2; var maxRate = 5; var rateOutput = rate.toFixed(1); rateOutput = rateOutput.replace(".", ","); var output = ''; for (u = 0; u < maxRate; u++) { if (u < Math.round(rate)) { output += '
'; } else { output += '
'; } } output += ' ' + rateOutput + ' '; output += '
'; return output; } var createReviewContent = function (data) { var title = ''; var entry = ''; if (data[i].Title != null) { title = data[i].Title; } if (data[i].Entry != null) { entry = data[i].Entry; } var limitText = 500; var hideEntry; var originalEntry=entry; var s="" if (entry.length > limitText) { entry = entry.substr(0, limitText); hideEntry=originalEntry.substr(limitText) s=""+hideEntry+"" s += 'En savoir plus'; } var output = '
'; if (title) { output += '
' + title + '
'; } if (entry) { output += '
' + entry +" "+ s + '
'; } output += '
'; return output; } var calculAverage = function (data, category) { var total = 0; var validNotes = 0; var average; for (i = 0; i < data.length; i++) { console.log("data[i]",data[i]); var channelName = data[i].ChannelName; var categoryProfile = data[i].ReviewProfile; if (category == categoryProfile || category == channelName) { var val = parseFloat(data[i].Rating) / 2; total += val; validNotes += 1; } } console.log("total",total); console.log("validNotes",validNotes); average = total / validNotes; average = average.toFixed(1) average = average.replace(".", ","); if(average=='NaN'){ console.log('average',average); jQuery('.reviews-category-rating[name="' + category + '"]').parent().show(); jQuery('.reviews-category-rating[name="' + category + '"]').html(average +" / 5"); }else{ jQuery('.reviews-category-rating[name="' + category + '"]').parent().show(); jQuery('.reviews-category-rating[name="' + category + '"]').html(average +" / 5"); } } jQuery(document).on ("click",".showContent" , function(){ jQuery(this).parent().find('.hideContent').show(); jQuery(this) .hide(); }); }); jQuery.ajax({ url:'https://ws2.altelis.com/SentinelOauth/average.php', type:'get', data : { hotelId : 15016, accessToken : 'XZ8325MEE9H384ZM1AEV535HU', tokenSecret : '2nc0jRDvIzFOY5lPM*2dHw' } , beforeSend : function(){ }, success:function(response){ jQuery('.average-div').find('.rate').html(response.toFixed(1) +'/5'); } }); #reviews { margin: 20px; padding: 40px; font-family: 'WalbaumBucT Italic',Helvetica,Arial,Lucida,sans-serif; } .reviews-filter { border-bottom: 1px solid #c49946; } @media (min-width: 1120px) { #reviews { margin: 25px auto 20px auto; } } #reviews .reviews-filterlang ul { margin: 0; padding: 0; list-style: none; text-align: right; } #reviews .reviews-filterlang ul li { display: inline-block; padding: 6px 10px; font-size: 1.2em; cursor: pointer; border-bottom: 1px solid transparent; transition: border-bottom .4s; } #reviews .reviews-filter ul { margin: 0; padding: 0; list-style: none; text-align: center; } #reviews .reviews-filter ul li { position: relative; display: inline-block; padding: 10px; font-size: 1.2em; font-weight: bold; cursor: pointer; border-top-left-radius: 2px; border-top-right-radius: 2px; transition: background-color .4s; } #reviews .reviews-filter ul li::after { content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 5px solid transparent; transition: border-bottom-color .4s; } #reviews .reviews-filter ul li+li { margin-left: 10px; } #reviews .reviews-category { display: none; } #reviews .reviews-category.active { margin: 40px 0; display: block; } #reviews .reviews-category ul { padding: 0; list-style: none; text-align: center; } #reviews .reviews-category ul li { display: inline-block; text-align: center; width: 135px; margin: 0 10px; padding: 10px; border-radius: 2px; box-shadow: 0 0 0 0px transparent; transition: box-shadow .4s; } #reviews .reviews-category .reviews-category-rating { font-size: 1.8em; font-weight: bold; transition: color .4s } #reviews .reviews-category-image { height: 50px; margin: 8px auto 4px; } #reviews .reviews-category-image img { width: auto; height: 100%; opacity: 0.75; } #reviews .reviews { padding: 20px 0 0; } #reviews .reviews::after { content: ""; display: block; margin-top: 20px; height: 1px; width: 100%; background: linear-gradient(to right, rgba(57, 66, 90, 0.5), rgba(0, 0, 0, 0)); } #reviews .reviews+.reviews { margin-top: 20px; } #reviews .reviews-header { font-size: 15px; font-family:Noto Serif; } #reviews .reviews-header .reviews-rating .icon { width: 14px; height: 14px; display: inline-block; /* border-radius: 20px; */ background: #c49946; border: 1px solid #c49946; padding: 4px; background: white; transform: rotate(45deg); position: relative; } /*#reviews .reviews-header .reviews-rating .icon.active::after { content: " "; width: 7px; height: 7px; background: #c49946; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); }*/ #reviews .reviews-header .reviews-rating .rating-text { font-size: 1.2em; font-weight: bold; } #reviews .reviews-title { font-weight: bold; font-family:Noto Serif; font-size:15px; } #reviews .reviews-content { margin-top: 8px; font-family:Noto Serif; font-size:14px; } #reviews .reviews-profil-badge { display: inline-block; padding: 4px 6px; font-size: 0.8em; border-radius: 2px; margin-top: 4px; } .spinner { margin: 40px auto 0; width: 60px; height: 60px; text-align: center; font-size: 10px; } .spinner>div { height: 100%; width: 1px; display: inline-block; -webkit-animation: sk-stretchdelay 1.2s infinite ease-in-out; animation: sk-stretchdelay 1.2s infinite ease-in-out; } .spinner>div+div { margin-left: 4px; } .spinner .rect2 { -webkit-animation-delay: -1.1s; animation-delay: -1.1s; } .spinner .rect3 { -webkit-animation-delay: -1.0s; animation-delay: -1.0s; } .spinner .rect4 { -webkit-animation-delay: -0.9s; animation-delay: -0.9s; } .spinner .rect5 { -webkit-animation-delay: -0.8s; animation-delay: -0.8s; } @-webkit-keyframes sk-stretchdelay { 0%, 40%, 100% { -webkit-transform: scaleY(0.4) } 20% { -webkit-transform: scaleY(1.0) } } @keyframes sk-stretchdelay { 0%, 40%, 100% { transform: scaleY(0.4); -webkit-transform: scaleY(0.4); } 20% { transform: scaleY(1.0); -webkit-transform: scaleY(1.0); } } @media(max-width:980px){ #reviews .reviews-category ul li { margin: 0 -14px; padding: 0px; } } .customers-reviews-section{ padding : 0 !important; } .customers-reviews-row{ padding : 0 !important; } #reviews{ padding-top : 0 !important; margin-top:0 !important; } .reviews-filter{ display : none !important; }

Inscrivez-vous à notre Newsletter

Ce champ est obligatoire
Ce champ est obligatoire
Ce champ est obligatoire

* Champ obligatoire

Veuillez remplir le champ requis.
Vous pouvez vous désabonner à tout moment grâce aux liens de désinscription.