Выберите этаж
Роза ветров
'+ '
'+ '
'+ '
свободна
'+ '
'+ '
'+ '
без отделки
'+ '
'+ '
'+ '
'+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ '
Общая58.5 м²
Этаж21/22
Ценаот 3 903 675 р
'+ '
'+ ''+ ''+ '' }, { id: 'h-'+1, rooms: [1], path: 'M1759,720,1759,1330,1491,1330,1491,1406,1192,1406,1189,723Z', // координаты pathAttributes: { 'stroke-width': 0, 'cursor': 'pointer', 'fill': '#9c9c9c', 'fill-opacity': .5, 'href': '/selection/house154/section6/floor21/flat35007/' // ссылка }, pathAttributesActive: { 'fill': '#fb9500', // цвет при наведении 'fill-opacity': .5 }, tip: '
'+ '
'+ '
'+ '
Однокомнатная, 620
'+ '
'+ '
'+ '
свободна
'+ '
'+ '
'+ '
без отделки
'+ '
'+ '
'+ '
'+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ '
Общая43.1 м²
Этаж21/22
Ценаот 2 944 370 р
'+ '
'+ '
'+ '
'+ '
' }, { id: 'h-'+2, rooms: [1], path: 'M1196,721,1196,1406,895,1406,895,1332,630,1330,629,939,784,937,782,721Z', // координаты pathAttributes: { 'stroke-width': 0, 'cursor': 'pointer', 'fill': '#9c9c9c', 'fill-opacity': .5, 'href': '/selection/house154/section6/floor21/flat35008/' // ссылка }, pathAttributesActive: { 'fill': '#fb9500', // цвет при наведении 'fill-opacity': .5 }, tip: '
'+ '
'+ '
'+ '
Однокомнатная, 621
'+ '
'+ '
'+ '
свободна
'+ '
'+ '
'+ '
без отделки
'+ '
'+ '
'+ '
'+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ '
Общая39.2 м²
Этаж21/22
Ценаот 2 821 500 р
'+ '
'+ '
'+ '
'+ '
' }, { id: 'h-'+3, rooms: [1], path: 'M800,721,802,955,646,955,646,1406,364,1406,364,1330,79,1331,79,918,468,918,468,721Z', // координаты pathAttributes: { 'stroke-width': 0, 'cursor': 'pointer', 'fill': '#9c9c9c', 'fill-opacity': .5, 'href': '/selection/house154/section6/floor21/flat35009/' // ссылка }, pathAttributesActive: { 'fill': '#fb9500', // цвет при наведении 'fill-opacity': .5 }, tip: '
'+ '
'+ '
'+ '
Однокомнатная, 622
'+ '
'+ '
'+ '
свободна
'+ '
'+ '
'+ '
без отделки
'+ '
'+ '
'+ '
'+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ '
Общая36.6 м²
Этаж21/22
Ценаот 2 584 650 р
'+ '
'+ '
'+ '
'+ '
' }, { id: 'h-'+4, rooms: [1], path: 'M509,736,487,736,486,934,1,930,-2,649,79,649,79,260,510,258Z', // координаты pathAttributes: { 'stroke-width': 0, 'cursor': 'pointer', 'fill': '#9c9c9c', 'fill-opacity': .5, 'href': '/selection/house154/section6/floor21/flat35010/' // ссылка }, pathAttributesActive: { 'fill': '#fb9500', // цвет при наведении 'fill-opacity': .5 }, tip: '
'+ '
'+ '
'+ '
Однокомнатная, 623
'+ '
'+ '
'+ '
свободна
'+ '
'+ '
'+ '
без отделки
'+ '
'+ '
'+ '
'+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ '
Общая34.1 м²
Этаж21/22
Ценаот 2 446 650 р
'+ '
'+ '
'+ '
'+ '
' }, { id: 'h-'+5, rooms: [2], path: 'M864,545,715,545,713,586,493,586,493,276,79,276,79,-1,864,2Z', // координаты pathAttributes: { 'stroke-width': 0, 'cursor': 'pointer', 'fill': '#9c9c9c', 'fill-opacity': .5, 'href': '/selection/house154/section6/floor21/flat35011/' // ссылка }, pathAttributesActive: { 'fill': '#fb9500', // цвет при наведении 'fill-opacity': .5 }, tip: '
'+ '
'+ '
'+ '
Двухкомнатная, 624
'+ '
'+ '
'+ '
свободна
'+ '
'+ '
'+ '
без отделки
'+ '
'+ '
'+ '
'+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ ''+ '
Общая39.1 м²
Этаж21/22
Ценаот 2 915 810 р
'+ '
'+ '
'+ '
'+ '
' }, ]; // Props var paper = Raphael('paper-floor'); var paperImage = '/upload/iblock/042/1sec.png'; var paperWrapper = '.paper-wrapper'; var paperOuter = '.paper-floor-holder'; var paperWidth = 2000; var paperHeight = 1406; var paperOffsetX = $('.aside').outerWidth(); var paperTipOffsetX = 0; var paperTipOffsetY = -30; function paperFit() { width = $(paperOuter).width(); height = width / (paperWidth / paperHeight); paper.setSize(width, height); } var maxWidth = (paperWidth - paperHeight) * 2; if(maxWidth = 850) maxWidth = 850; $('#paper-floor').parent().css({ 'max-width': maxWidth }); // Init paper.setViewBox(0, 0, paperWidth, paperHeight, true); //paper.setSize('100%', '100%'); paperFit(); paper.image(paperImage, 0, 0, '100%', '100%'); // Draw paper.setStart(); var arSectionsID = []; // Set sections $.each(flats, function(key, value) { var flat = paper.path(value.path).attr(value.pathAttributes); arSectionsID[value.id] = flat.id; flat.hover( function(event) { this.animate(value.pathAttributesActive, 300); if ($('#tip-' + key).length) { $('#tip-' + key).css({ 'top' : event.pageY + paperTipOffsetY, 'left': event.pageX - paperOffsetX + paperTipOffsetX }).show(); } else { $(paperWrapper).append( $('
', { 'id' : 'tip-' + key }) .hide() .css({ 'top' : event.pageY + paperTipOffsetY, 'left': event.pageX - paperOffsetX + paperTipOffsetX }) .html(value.tip) .show() ); } }, function() { this.animate(value.pathAttributes, 300); $('#tip-' + key).hide(); } ); flat.mousemove(function(event) { if ($('#tip-' + key).length) { $('#tip-' + key).css({ 'top' : event.pageY + paperTipOffsetY, 'left': event.pageX - paperOffsetX + paperTipOffsetX }).show(); } }) }); paper.setFinish(); $(window).on('resize', paperFit); function array_intersect(arr1, arr2) { var arr3 = []; for(i = 0; i