var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; };
if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } }
{
let window = _____WB$wombat$assign$function_____("window");
let self = _____WB$wombat$assign$function_____("self");
let document = _____WB$wombat$assign$function_____("document");
let location = _____WB$wombat$assign$function_____("location");
let top = _____WB$wombat$assign$function_____("top");
let parent = _____WB$wombat$assign$function_____("parent");
let frames = _____WB$wombat$assign$function_____("frames");
let opener = _____WB$wombat$assign$function_____("opener");
(function() {
window.SQUARES = {
normal: {
1: 65.7,
2: 80.9,
3: 57,
4: 40.6,
5: 38.5,
6: 87.2,
7: 84.9,
8: 84.9,
9: 87.2,
10: 38.5,
11: 40.6,
12: 57,
13: 80.9,
14: 65.7,
}
}
$('.play-btn').magnificPopup({
disableOn: 700,
type: 'iframe',
mainClass: 'mfp-fade',
removalDelay: 160,
preloader: false,
fixedContentPos: false
});
$('.menu .links, .logo').clone().appendTo('.mobile-menu');
window.slider_interval = false;
function reset_slider_interval() {
if (window.slider_interval) {
clearInterval(window.slider_interval);
}
window.slider_interval = setInterval(function() {
var idx = (current_img + 1) % $('.main .image img').length;
$('.slider-controls .slider-el').eq(idx).trigger('click');
}, 6000);
}
$(document).ready(function() {
if ($('.main .image').length) {
$('.main .image img:first').animate({opacity: 1});
reset_slider_interval();
// load slider images in background
setTimeout(function() {
var i = 0;
$('.main .image img').each(function() {
var src = $(this).attr('src');
setTimeout(function() {
new Image().src = src;
}, 1800 * i);
i++;
})
}, 500);
setTimeout(function() {
new Image().src = window.crop_url;
}, 1000);
}
if ($('img[usemap]:first').length) {
var mh_options = {
fillColor: 'FFA500',
fillOpacity: 0.6
}
$('img[usemap]:first').maphilight(mh_options);
$('img[usemap]:first').rwdImageMaps();
var resize_event;
$(window).on('resize.usemaps', function() {
clearTimeout(resize_event);
resize_event = setTimeout(function() {
$('img[usemap]:first').maphilight(mh_options);
}, 200);
});
$(window).resize(function () {
if ($('.floor-img').is(':visible')) {
var width = $('.popup center').width();
if (width > 1300) width = 1300;
//$('.floor-img').mapster('resize', width, 0, 0);
}
});
}
});
var current_img = 0
$(document).on('click', '.slider-controls .slider-el', function(e) {
e.stopPropagation();
$('.slider-controls .slider-el.active').removeClass('active');
$(this).addClass('active');
var idx = $(this).index();
current_img = idx;
$('.main .image img:visible').animate({opacity: 0}).hide();
$('.main .image img').eq(idx).show().animate({opacity: 1});
reset_slider_interval();
});
$(document).on('click', '.mobile-icon', function(e) {
e.stopPropagation();
$('.mobile-menu').show().animate({left: 0}, 'fast');
});
$(document).on('click', '.mobile-menu', function(e) {
e.stopPropagation();
});
$(document).on('click', 'body', function() {
if ($('.mobile-menu:visible').length) {
$('.mobile-menu').animate({left: '-55%'}, 'fast', function() {
$('.mobile-menu').hide();
});
}
});
// Floor selector
function openFunction(floor) {
current_floor = floor || this.currItem.el.index() + 9;
$('.popup h3 .current-floor').html('' + current_floor + '
' + window.sold_lang + '
');
/*if ($('.mapster_el').length > 0) {
return;
}
$('.floor-img').mapster({
scaleMap: false,
fillColor: 'ffa902',
fillOpacity: 0.7,
strokeColor: 'ffa902',
strokeOpacity: 0,
isSelectable: false,
mapKey: 'data-key',
render_select: {
fillOpacity: 0.9,
fillColor: 'ffa902',
altImage: '/static/img/sold.png'
},
areas: [
{
scaleMap: false,
key: 'sold',
render_select: {
fillOpacity: 0.7,
fillColor: 'ff1111',
altImage: window.devicePixelRatio > 1 ? '/static/img/sold_x2.png' : '/static/img/sold.png'
}
},
{
key: 'free',
fillColor: 'ffa902',
fillOpacity: 0.7,
strokeColor: 'ffa902',
strokeOpacity: 0,
isSelectable: false,
scaleMap: false,
},
{
scaleMap: false,
key: 'booked',
render_select: {
fillOpacity: 0.7,
fillColor: '1111ff',
altImage: window.devicePixelRatio > 1 ? '/static/img/booked_x2.png' : '/static/img/booked.png'
}
}
]
});
var width = $('.popup center').width();
if (width > 1300) width = 1300;
$('.floor-img').mapster('resize', width, 0, 0);*/
$('[name=floor-map] area').removeAttr('rel').removeData('maphilight');
$('[name=floor-map] area').each(function() {
var apt = $(this).attr('href').replace('#', '');
if (parseInt(apt) < 10) apt = '0' + apt;
apt = current_floor + apt;
if (typeof prices[apt] === 'undefined') {
$(this).attr('rel', 'sold');
}
});
var width = $('.popup center').width();
if (width > 1300) width = 1300;
$('.floor-img').css('width', width + 'px');
$('.floor-img').rwdImageMaps();
setTimeout(function() {
$('.floor-img').maphilight({
groupBy: 'rel',
fillColor: 'FFA500',
fillOpacity: 0.6
});
$('[name=floor-map] area[rel=sold]').each(function() {
var data = {
alwaysOn: true,
fillColor: 'FF3333',
fillOpacity: 0.55
};
$(this).data('maphilight', data).trigger('alwaysOn.maphilight');
});
}, 100)
}
$('[name=image-map] area').magnificPopup({
callbacks: {
open: openFunction,
close: function() {},
afterClose: function() {
//if (!window.isMobile()) return;
//$('.floor-choose').trigger('click');
}
}
});
$(document).on('mouseover', '[name=image-map] area', function(e) {
var text = $(this).index() + 9 + ' ' + floor_lang;
var top = e.pageY - 250;
$('' + text + '
').appendTo('.floor-image > div');
});
$(document).on('mouseout', '[name=image-map] area', function() {
$('.chosen-floor').hide();
});
var apt_slider;
$(document).on('click', '[name^=floor-map] area', function() {
if ($(this).data('sold') || $(this).attr('rel') == 'sold') return;
var el = $('.apartment-popup');
$('.popup .legend').hide();
$.magnificPopup.open({
items: {
src: el
},
type: 'inline',
});
var apt = $(this).attr('href').replace('#', '');
var square = window.SQUARES['normal'][parseInt(apt)];
if (parseInt(apt) < 10) apt = '0' + apt;
apt = current_floor + apt;
$('.apartment-popup .apartment').text(apt);
$('.apartment-popup .square').text(square);
$('.apartment-popup .floor').text(current_floor);
var price = prices[apt]
$('.apartment-popup .price').data('usd', price[0]).data('gel', price[1]);
if ($('#button-currency input').is(':checked')) {
$('.apartment-popup .price').text(price[1] + '₾');
}
else {
$('.apartment-popup .price').text(price[0] + '$');
}
window.current_apartment = apt;
apt_slider = $('.slider').bxSlider({
adaptiveHeight: true,
speed: 200
});
$.magnificPopup.instance.st.callbacks = {
afterClose: function() {
el = $('#fl');
$.magnificPopup.open({
items: {
src: el
},
type: 'inline',
});
$('.popup .legend').show();
apt_slider.destroySlider();
}
}
});
window.next_floor = function(dir) {
if (current_floor == 42 && dir == 'up') {
return;
}
if (current_floor == 9 && dir == 'down') {
return;
}
if (dir == 'up') {
var activate = current_floor + 1;
current_floor = activate;
}
else {
var activate = current_floor - 1;
current_floor = activate;
}
$('.popup h3 .current-floor').html('' + current_floor + ' ' + window.sold_lang + '
');
setTimeout(function() {
$.magnificPopup.open({
items: {
src: '#fl'
},
type: 'inline'
});
openFunction(current_floor);
$.magnificPopup.instance.st.callbacks = {
open: openFunction,
//change: openFunction
}
}, 10);
}
$(document).on('change', '#button-currency input', function() {
var price_el = $(this).parents().eq(1).find('.price');
if ($(this).prop('checked')) {
price_el.text(price_el.data('gel') + '₾');
}
else {
price_el.text(price_el.data('usd') + '$');
}
});
})();
}
/*
FILE ARCHIVED ON 18:52:15 Dec 06, 2021 AND RETRIEVED FROM THE
INTERNET ARCHIVE ON 10:00:14 Jul 21, 2023.
JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE.
ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C.
SECTION 108(a)(3)).
*/
/*
playback timings (ms):
captures_list: 152.278
exclusion.robots: 0.074
exclusion.robots.policy: 0.063
RedisCDXSource: 27.57
esindex: 0.008
LoadShardBlock: 105.445 (3)
PetaboxLoader3.datanode: 86.353 (4)
load_resource: 76.172
PetaboxLoader3.resolve: 45.175
*/