Skip to content

Instantly share code, notes, and snippets.

@hmiorroi
Created December 1, 2013 09:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hmiorroi/7730715 to your computer and use it in GitHub Desktop.
Save hmiorroi/7730715 to your computer and use it in GitHub Desktop.
Get a white-translucent status bar on a "Add to Home Screen" web application. Works on iOS 7.0.3.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta content="width=device-width, initial-scale=1.0, user-scalable=no" name="viewport" />
<meta content="yes" name="apple-mobile-web-app-capable" />
<meta content="white-translucent" id="status_bar" name="apple-mobile-web-app-status-bar-style" />
<script type="text/javascript">
if(!navigator.standalone && (/iphone|ipod|ipad/gi).test(navigator.platform) && (/Safari/i).test(navigator.appVersion)){
document.getElementById("status_bar").content = "black-translucent";
}
</script>
</head>
<body>
</body>
</html>
@denzo
Copy link

denzo commented May 20, 2021

It appears that "white-translucent" is not supported 🤯

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment