Генплан ЖК Новоград Павлино

'+'
'+'
1 в продаже
'+'
0 забронировано
'+'
'+''+'
'+''+'
'+'
'+''+'
'+'
Завершен на 10%
'+'
'+'
'+'
'+''},{id:'h-'+1,rooms:[1,2,3],path:'M1237,271,1257,282,1258,293,1268,294,1272,260,1250,239,1239,244Z',pathAttributes:{'stroke-width':0,'cursor':'pointer','fill':'#9c9c9c','fill-opacity':0.5,'href':'/selection/house263/'},pathAttributesActive:{'fill':'#fb9500','fill-opacity':.5},tip:'
'+'
'+'
Корпус 24A
'+'
'+'
102 в продаже
'+'
4 забронированы
'+'
'+'
'+'
'+''+'
'+'
'+''+'
'+'
Завершен на %
'+'
Дом сдан
'+'
'+'
'+'
'},{id:'h-'+2,rooms:[1,5,2],path:'M1068,435,1066,432,1064,379,1086,372,1086,369,1093,367,1097,363,1101,364,1108,365,1120,370,1121,392,1137,399,1138,435,1129,438,1116,435,1110,432,1110,429,1105,426,1100,427,1093,424,1093,422,1090,420,1082,419,1070,422Z',pathAttributes:{'stroke-width':0,'cursor':'pointer','fill':'#9c9c9c','fill-opacity':0.5,'href':'/selection/house260/'},pathAttributesActive:{'fill':'#fb9500','fill-opacity':.5},tip:'
'+'
'+'
Корпус 18
'+'
'+'
103 в продаже
'+'
0 забронировано
'+'
'+'
'+'
'+''+'
'+'
'+''+'
'+'
Завершен на %
'+'
Сдача в II кв 2022
'+'
'+'
'+'
'},{id:'h-'+3,rooms:[2,1,3,5],path:'M1193,422,1180,426,1180,461,1208,473,1209,507,1243,516,1268,514,1277,507,1281,442,1267,440,1238,441Z',pathAttributes:{'stroke-width':0,'cursor':'pointer','fill':'#9c9c9c','fill-opacity':0.5,'href':'/selection/house261/'},pathAttributesActive:{'fill':'#fb9500','fill-opacity':.5},tip:'
'+'
'+'
Корпус 20
'+'
'+'
94 в продаже
'+'
0 забронировано
'+'
'+'
'+'
'+''+'
'+'
'+''+'
'+'
Завершен на %
'+'
Сдача в II кв 2022
'+'
'+'
'+'
'},{id:'h-'+4,rooms:[1,2,3,5],path:'M1279,496,1294,505,1311,496,1314,490,1317,425,1304,414,1294,412,1287,407,1277,404,1267,407,1262,408,1263,437,1276,440,1273,490,1274,494Z',pathAttributes:{'stroke-width':0,'cursor':'pointer','fill':'#9c9c9c','fill-opacity':0.5,'href':'/selection/house289/'},pathAttributesActive:{'fill':'#fb9500','fill-opacity':.5},tip:'
'+'
'+'
Корпус 21
'+'
'+'
46 в продаже
'+'
4 забронированы
'+'
'+'
'+'
'+''+'
'+'
'+''+'
'+'
Завершен на %
'+'
Сдача в III кв 2022
'+'
'+'
'+'
'},];var arPointsID=[];var arSectionsID=[];function setPoints(){$.each(points,function(key,value){var point=paper.circle(value.x,value.y,value.radius).attr(value.pointAttributes);arPointsID[value.id]={point:point.id};if(value.text!=''){var text=paper.text(value.x,value.y,value.text).attr(value.textAttributes);arPointsID[value.id].text=text.id;}if(value.icon!=''){paper.image(value.icon,value.x-value.radius,value.y-value.radius,27,27);}});}function setSections(){$.each(sections,function(key,value){var section=paper.path(value.path).attr(value.pathAttributes);arSectionsID[value.id]=section.id;$(paperWrapper).append($('
',{'id':'tip-'+key}).hide().html(value.tip));section.hover(function(event){this.animate(value.pathAttributesActive,300);$('#tip-'+key).css({'top':event.pageY+paperTipOffsetY,'left':event.pageX-paperOffsetX+paperTipOffsetX}).show();},function(){this.animate(value.pathAttributes,300);$('#tip-'+key).hide();});section.mousemove(function(event){if($('#tip-'+key).length){var css={'top':event.pageY+paperTipOffsetY} if(event.pageX+$('#tip-'+key).outerWidth()+paperTipOffsetX>$(window).width()){$('#tip-'+key).find('.tip').removeClass('tip-corner-left').addClass('tip-corner-right');css['left']=event.pageX-paperOffsetX-paperTipOffsetX-$('#tip-'+key).outerWidth();}else{$('#tip-'+key).find('.tip').removeClass('tip-corner-right').addClass('tip-corner-left');css['left']=event.pageX-paperOffsetX+paperTipOffsetX;}$('#tip-'+key).css(css).show();}})});}function paperFit(){var outerWidth=$(paperOuter).width();var outerHeight=$(paperOuter).height();var outerRatio=outerWidth/outerHeight;var width=0;var height=0;if(outerRatio>paperRatio){width=outerWidth;height=width/paperRatio;}else{height=outerHeight;width=height*paperRatio;}paper.setSize(width,height);}var paper=Raphael('paper');var paperWrapper='.paper-wrapper';var paperOuter='.paper-outer';var paperImage='/local/templates/novogradpavlino/img/town.jpg';var paperWidth=1920;var paperHeight=1079;var paperRatio=paperWidth/paperHeight;var paperOffsetX=$('.aside_desktop').outerWidth();var paperTipOffsetX=30;var paperTipOffsetY=-100;paper.setViewBox(0,0,paperWidth,paperHeight,false);paperFit();paper.image(paperImage,0,0,'100%','100%');paper.setStart();setSections();setPoints();paper.setFinish();$(window).on('resize',paperFit);function array_intersect(arr1,arr2){var arr3=[];for(i=0;i .tip').data('all-count'));var saleCount=parseInt(jQuery('#tip-'+key+' > .tip').data('sale-count'));var allReserved=parseInt(jQuery('#tip-'+key+' > .tip').data('all-reserved'));jQuery('#tip-'+key+' .tip-label-item.-all > span').html(saleCount);jQuery('#tip-'+key+' .tip-label-item.-reserved > span.value').html(allReserved);jQuery('#tip-'+key+' .tip-label-item.-reserved > span.title').html(declOfNum(allReserved,['забронирована','забронированы','забронировано']));});jQuery('.tip .list-item').removeClass('-disabled');}else{$.each(sections,function(key,value){var arIntersect=array_intersect(types,value.rooms);if(arIntersect.length==0){paper.getById(arSectionsID[value.id]).hide();paper.getById(arPointsID[value.id].point).hide();paper.getById(arPointsID[value.id].text).hide();}else{paper.getById(arSectionsID[value.id]).show();paper.getById(arPointsID[value.id].point).show();paper.getById(arPointsID[value.id].text).show();}var arDiff=array_diff(value.rooms,types);jQuery('#tip-'+key+' .list-item').removeClass('-disabled');var disabledCount=0;var disabledReserved=0;$.each(arDiff,function(i,el){jQuery('#tip-'+key+' .list-item[data-type="'+el+'"]').addClass('-disabled');disabledCount+=parseInt(jQuery('#tip-'+key+' .list-item[data-type="'+el+'"]').data('count'));disabledReserved+=parseInt(jQuery('#tip-'+key+' .list-item[data-type="'+el+'"]').data('reserved'));});var allCount=parseInt(jQuery('#tip-'+key+' > .tip').data('all-count'));var saleCount=parseInt(jQuery('#tip-'+key+' > .tip').data('sale-count'));var allReserved=parseInt(jQuery('#tip-'+key+' > .tip').data('all-reserved'));jQuery('#tip-'+key+' .tip-label-item.-all > span').html(saleCount-disabledCount);jQuery('#tip-'+key+' .tip-label-item.-reserved > span.value').html(allReserved-disabledReserved);jQuery('#tip-'+key+' .tip-label-item.-reserved > span.title').html(declOfNum(allReserved-disabledReserved,['забронирована','забронированы','забронировано']));});}});});