$.simpleWeather({
location: 'Florence, Italy',
woeid: '',
unit: 'c',
success: function(weather) {
html = '
'+weather.temp+'°'+weather.units.temp+'
';
html += '- '+weather.city+', '+weather.region+'
';
html += '- '+weather.currently+'
';
html += '- '+weather.wind.direction+' '+weather.wind.speed+' '+weather.units.speed+'
';
for(var i=0;i'+weather.forecast[i].day+': '+weather.forecast[i].high+'';
}
$("#weather").html(html);
},
error: function(error) {
$("#weather").html(''+error+'
');
}
});
$('#modal-contacts-open').on('click', function(e) {
var mod = $('#main'),
modal = $('#modal-contacts');
mod.animate({ opacity: 0 }, 400, function(){
$('html,body').scrollTop(0);
modal.addClass('modal-active').fadeIn(400);
//set up markers
var myMarkers = {"markers": [
{"latitude": "
Warning: Trying to access array offset on value of type null in /var/www/vhosts/casaruralaras.com/httpdocs/wp-content/themes/magnolia/js/add.php on line 43
", "longitude":"
Warning: Trying to access array offset on value of type null in /var/www/vhosts/casaruralaras.com/httpdocs/wp-content/themes/magnolia/js/add.php on line 43
", "icon": "
Warning: Trying to access array offset on value of type null in /var/www/vhosts/casaruralaras.com/httpdocs/wp-content/themes/magnolia/js/add.php on line 43
Warning: Trying to access array offset on value of type null in /var/www/vhosts/casaruralaras.com/httpdocs/wp-content/themes/magnolia/js/add.php on line 43
Deprecated: ltrim(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/vhosts/casaruralaras.com/httpdocs/wp-includes/formatting.php on line 4494
"}
]
};
//set up map options
$("#map").mapmarker({
zoom : 14,
center : '
Warning: Trying to access array offset on value of type null in /var/www/vhosts/casaruralaras.com/httpdocs/wp-content/themes/magnolia/js/add.php on line 50
',
markers : myMarkers
});
});
e.preventDefault();
$('.modal-close').on('click', function(e) {
modal.removeClass('modal-active').fadeOut(400, function(){
mod.animate({ opacity: 1 }, 400);
});
e.preventDefault();
});
});