0

Trying to utilize the iPhoneAddressBar function but doesnt seem to be working. Was wondering if anyone has an example of how to use this?

jQuery Plugin - http://mmenu.frebsite.nl/

Edit going to link to my previous question as it relates.

mmenu hide address bar when expanded on mobile

Community
  • 1
  • 1
Anks
  • 485
  • 9
  • 27

1 Answers1

0

This variable:

$.fn.mmenu.support.iPhoneAddressBar

Is set to true if you are on an iPhone or iPod, are not using Chrome, are not in the standalone-mode (via the "web-app-capable" metatag) and the metatag "viewport" does not contain "height=device-height".

It is set to false otherwise.

Fred
  • 512
  • 3
  • 6
  • So on my iphone its returning true, but still not seeing it. I'm not using the standalone-mode meta tag. And here is my current viewport tag. – Anks Sep 06 '13 at 18:25
  • What are you "not seeing"? Try: alert( $.fn.mmenu.support.iPhoneAddressBar ) – Fred Sep 06 '13 at 19:45
  • I am not seeing the menu bar hide at all in safari on iphone. The alert returns true. – Anks Sep 09 '13 at 13:51
  • The address bar should not hide if it wasn't already hidden. It should only stay hidden if it already was hidden. – Fred Sep 10 '13 at 12:23