');
else {
$('.divAmenityColumnL').before('
');
var mobileHtml = [];
if ($(window).width() $('#amenities-column-2 li').length) {
mobileHtml.push($('#amenities-column-1 li').last().html());
}
$('#amenities-column-1').html('');
var mobileHtmlStr = '';
$.each(mobileHtml, function() {
mobileHtmlStr += '
' + this + '';
});
$('#amenities-column-1').html(mobileHtmlStr);
$('#amenities-column-2').hide();
$('#amenities-column-1').css('width', '100%');
}
}
$('#divAmenityContainerTitle').html(title);
generateAmenities();
if (aptAmenitiesTitle)
$('#divAptAmenityContainerTitle').html(aptAmenitiesTitle);
if ($('.community-amenities').length > 0) {
$('#divAptAmenityContainerTitle').show();
$('.divAmenitiesList').addClass('multi-amenities');
}
if ($('.pet-policy-details').length 1.5 ) {
current.width = current.width / pixelRatio;
current.height = current.height / pixelRatio;
}
}
});
if(unitAmenityExists.toLowerCase() == 'true')
$('#communityAmenties').append('
' + inSelectUnitsText + '');
});
function generateAmenities() {
var showViewMoreButton = false;
var amenitiesPerColumn = Math.floor(maxCount / 2);
var addAdditionalAmenity = (Number(maxCount) / 2) % 1 != 0;
if ($(window).width() Number(maxCount)) {
$('#amenities-column-1 li:gt(' + Number(maxCount - 1) + ')').hide();
$('#showallcommunities').click(function () {
$('#amenities-column-1 li:gt(' + Number(maxCount - 1) + ')').toggle('slow', function () {
$(this).css('overflow', '');
});
if ($('#showallcommunities').attr("class") == "altText") {
$('#showallcommunities').html("View More +
");
$('#showallcommunities').removeClass("altText");
} else {
$('#showallcommunities').html("View Less -
");
$('#showallcommunities').addClass("altText");
}
});
showViewMoreButton = true;
} else if ($('#amenities-column-1 li').length + $('#amenities-column-2 li').length > Number(maxCount)) {
$('#amenities-column-1 li:gt(' + (amenitiesPerColumn - 1 + (addAdditionalAmenity ? +1 : '')) + ')').hide();
$('#amenities-column-2 li:gt(' + (amenitiesPerColumn - 1) + ')').hide();
$('#showallcommunities').click(function () {
$('#amenities-column-1 li:gt(' + (amenitiesPerColumn - 1 + (addAdditionalAmenity ? +1 : '')) + ')').toggle('slow', function () {
$(this).css('overflow', '');
});
$('#amenities-column-2 li:gt(' + (amenitiesPerColumn - 1) + ')').toggle('slow', function () {
$(this).css('overflow', '');
});
if ($('#showallcommunities').attr("class") == "altText") {
$('#showallcommunities').html("View More +
");
$('#showallcommunities').removeClass("altText");
} else {
$('#showallcommunities').html("View Less -
");
$('#showallcommunities').addClass("altText");
}
});
showViewMoreButton = true;
}
if ($('#aggregated-amenities-column-1 li').length + $('#aggregated-amenities-column-2 li').length > Number(maxCount)) {
$('#aggregated-amenities-column-1 li:gt(' + (amenitiesPerColumn - 1 + (addAdditionalAmenity ? +1 : '')) + ')').hide();
$('#aggregated-amenities-column-2 li:gt(' + (amenitiesPerColumn - 1) + ')').hide();
$('#showallcommunities').click(function () {
$('#aggregated-amenities-column-1 li:gt(' + (amenitiesPerColumn - 1 + (addAdditionalAmenity ? +1 : '')) + ')').toggle('slow', function () {
$(this).css('overflow', '');
});
$('#aggregated-amenities-column-2 li:gt(' + (amenitiesPerColumn - 1) + ')').toggle('slow', function () {
$(this).css('overflow', '');
});
});
if ($('#amenities-column-1 li').length + $('#amenities-column-2 li').length ");
$('#showallcommunities').removeClass("altText");
} else {
$('#showallcommunities').html("View Less -
");
$('#showallcommunities').addClass("altText");
}
});
}
showViewMoreButton = true;
}
if (!showViewMoreButton)
$('#divshowallcommunities').hide();
}
');
if (nivoDescription)
$(v).find('.nivo-caption').append('
' + nivoDescription + '
');
});
$('#p_lt_zoneContent_pageplaceholder_p_lt_zoneTopLeft_WebPartLoader_ctl00_GalleryV2_section_slider .GalleryV2 #mobileContainer').flexslider({
animation: p_lt_zoneContent_pageplaceholder_p_lt_zoneTopLeft_WebPartLoader_ctl00_GalleryV2_section_slider.animation,
slideshow: true,
directionNav: p_lt_zoneContent_pageplaceholder_p_lt_zoneTopLeft_WebPartLoader_ctl00_GalleryV2_section_slider.directionNav == 'true',
slideshowSpeed: p_lt_zoneContent_pageplaceholder_p_lt_zoneTopLeft_WebPartLoader_ctl00_GalleryV2_section_slider.slideshowSpeed,
animationSpeed: p_lt_zoneContent_pageplaceholder_p_lt_zoneTopLeft_WebPartLoader_ctl00_GalleryV2_section_slider.animationSpeed,
randomize: p_lt_zoneContent_pageplaceholder_p_lt_zoneTopLeft_WebPartLoader_ctl00_GalleryV2_section_slider.randomize.toLowerCase() == 'true',
touch: p_lt_zoneContent_pageplaceholder_p_lt_zoneTopLeft_WebPartLoader_ctl00_GalleryV2_section_slider.touch == 'true',
start: function(){ $(window).trigger('gallery_image_load_end', '0'); $('#spotlight').css('min-height', ''); }
});
$('#p_lt_zoneContent_pageplaceholder_p_lt_zoneTopLeft_WebPartLoader_ctl00_GalleryV2_section_slider .GalleryV2 #desktopContainer').remove();
} else {
$('#p_lt_zoneContent_pageplaceholder_p_lt_zoneTopLeft_WebPartLoader_ctl00_GalleryV2_section_slider .GalleryV2 #desktopContainer li').each(function (i, v) {
var url = $(v).find('meta[itemprop="contentUrl"]').attr('content');
var altText = $(v).find('meta[itemprop="name"]').attr('content');
var nivoCaption = $(v).find('div[class="nivo-caption"]').html();
var nivoDescription = $(v).find('div[class="nivo-description"]').html();
url = url.replace('1920x1080', imageWidth + 'x' + imageHeight);
if (altText)
$(v).append('
');
else
$(v).append('
');
if (nivoCaption || nivoDescription)
$(v).append('
' + nivoCaption + '
');
if (nivoDescription)
$(v).find('.nivo-caption').append('
' + nivoDescription + '
');
});
$('#p_lt_zoneContent_pageplaceholder_p_lt_zoneTopLeft_WebPartLoader_ctl00_GalleryV2_section_slider .GalleryV2 #desktopContainer').flexslider({
animation: p_lt_zoneContent_pageplaceholder_p_lt_zoneTopLeft_WebPartLoader_ctl00_GalleryV2_section_slider.animation,
slideshow: true,
directionNav: p_lt_zoneContent_pageplaceholder_p_lt_zoneTopLeft_WebPartLoader_ctl00_GalleryV2_section_slider.directionNav == 'true',
slideshowSpeed: p_lt_zoneContent_pageplaceholder_p_lt_zoneTopLeft_WebPartLoader_ctl00_GalleryV2_section_slider.slideshowSpeed,
animationSpeed: p_lt_zoneContent_pageplaceholder_p_lt_zoneTopLeft_WebPartLoader_ctl00_GalleryV2_section_slider.animationSpeed,
randomize: p_lt_zoneContent_pageplaceholder_p_lt_zoneTopLeft_WebPartLoader_ctl00_GalleryV2_section_slider.randomize.toLowerCase() == 'true',
touch: p_lt_zoneContent_pageplaceholder_p_lt_zoneTopLeft_WebPartLoader_ctl00_GalleryV2_section_slider.touch == 'true',
start: function() { $(window).trigger('gallery_image_load_end', '0'); $('#spotlight').css('min-height', ''); }
});
$('#p_lt_zoneContent_pageplaceholder_p_lt_zoneTopLeft_WebPartLoader_ctl00_GalleryV2_section_slider .GalleryV2 #mobileContainer').remove();
}
$('#p_lt_zoneContent_pageplaceholder_p_lt_zoneTopLeft_WebPartLoader_ctl00_GalleryV2_section_slider .meta.name').remove();
if (imageWidth != '0') {
$('#p_lt_zoneContent_pageplaceholder_p_lt_zoneTopLeft_WebPartLoader_ctl00_GalleryV2_section_slider .GalleryV2').css('min-width', '100%');
}
$('#p_lt_zoneContent_pageplaceholder_p_lt_zoneTopLeft_WebPartLoader_ctl00_GalleryV2_section_slider .GalleryV2').resize();
});
})(jQuery);