I have the following code that hides a content page on click of the menu to show a google maps in the background. I would like to modify it so that on click, the content page is shown along with the google maps background.
Code:
$bf_menu_items.bind('click', function(e) {
var $item = $(this);
hidePageContent();
var item = $(this).data('content');
if(item === 'visit') {
BGMap.showMap();
} else{
$.when( BGImageController.fadeBG(true) ).done(function(){
BGMap.hideMap();
});
$('#' + $item.data('content')).show();
}
return false;
});
Thanks in advance!