View Single Post
Old 11-07-2012, 06:39 AM   PM User | #1
danielzd
New to the CF scene

 
Join Date: Nov 2012
Posts: 1
Thanks: 1
Thanked 0 Times in 0 Posts
danielzd is an unknown quantity at this point
Showing a hidden content page

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!

Last edited by danielzd; 11-07-2012 at 07:15 AM..
danielzd is offline   Reply With Quote