Jump to content


Photo
- - - - -

iPhone safari address bar automatic disappearance on page load


This topic has been archived. This means that you cannot reply to this topic.
4 replies to this topic

#1 julesmoretti

julesmoretti

    Advanced Member

  • Members
  • PipPipPip
  • 75 posts

Posted 10 January 2011 - 05:45 AM

So I noticed that when I load the theme on my iphone using the platform base template the page loads fine with the top address bar and then when done the address bar remains there. Is there a way to integrate some code so that on page load the address bar disappear and all you see is the highlight page? Thank you

#2 Kate

Kate

    Advocate

  • Members
  • 3039 posts

Posted 10 January 2011 - 03:12 PM

@Jules The Safari address bar? I've never needed to do it personally, so can't speak from experience. However, a quick Google search yielded some results for you, including: http://www.blog.high...-iphone-safari/ http://mark.koli.ch/...addressbar.html

#3 julesmoretti

julesmoretti

    Advanced Member

  • Members
  • PipPipPip
  • 75 posts

Posted 16 January 2011 - 02:37 AM

@Kate yes I understand that anything is possible I am just suggesting that if you guys could add and alter the following to your template it would be a nice little upgrade

 #morefoot { padding: 2em 0px 6em 0px ;
	}

and in the header script:

 <script type="application/x-javascript">
	addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false);
	
	function hideURLbar(){
	window.scrollTo(0,1);
	}
	</script>


#4 bryan-hadaway

bryan-hadaway

    Advocate

  • Members
  • PipPipPipPipPip
  • 3697 posts

Posted 16 January 2011 - 05:45 AM

Thanks, added to: Ideas and Feedback

I've also given you your first karma point, we appreciate community help.

Thanks, Bryan

#5 julesmoretti

julesmoretti

    Advanced Member

  • Members
  • PipPipPip
  • 75 posts

Posted 16 January 2011 - 07:44 AM

Very Cool!! Thank you.