This repository has been archived by the owner on Oct 8, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Init: add option to prevent hiding url bar
- Loading branch information
Showing
5 changed files
with
66 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<title>Q&A - jQuery Mobile Demos - How do I prevent jQuery Mobile from hiding the url bar?</title> | ||
<link rel="stylesheet" href="../../css/themes/default/jquery.mobile.css"> | ||
<link rel="stylesheet" href="../_assets/css/jqm-demos.css"> | ||
<link rel="shortcut icon" href="../favicon.ico"> | ||
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,700"> | ||
<script src="../../js/jquery.js"></script> | ||
<script src="../_assets/js/"></script> | ||
<script> | ||
$( document ).on( "mobileinit", function(){ | ||
$.mobile.hideUrlBar = false; | ||
}); | ||
</script> | ||
<script src="../../js/"></script> | ||
</head> | ||
<body> | ||
<div data-role="page" class="jqm-demos jqm-faq"> | ||
|
||
<div data-role="header" class="jqm-header"> | ||
<h1 class="jqm-logo"><a href="../"><img src="../_assets/img/jquery-logo.png" alt="jQuery Mobile Framework"></a></h1> | ||
<a href="#" class="jqm-navmenu-link" data-icon="bars" data-iconpos="notext">Navigation</a> | ||
<a href="#" class="jqm-search-link" data-icon="search" data-iconpos="notext">Search</a> | ||
<?php include( '../search.php' ); ?> | ||
</div><!-- /header --> | ||
|
||
<div data-role="content" class="jqm-content"> | ||
<h2>Question:</h2> | ||
|
||
<h1>How do I prevent jQuery Mobile from hiding the url bar?</h1> | ||
|
||
<h2>Answer:</h2> | ||
|
||
<p class="jqm-intro"><code>Set $.mobile.hideUrlBar = false; </code> on mobileinit</p> | ||
|
||
<a href="index.php" class="jqm-button" data-role="button" data-inline="true" data-mini="true" data-icon="arrow-l" data-iconpos="left">All Questions & Answers</a> | ||
|
||
</div><!-- /content --> | ||
|
||
<div data-role="footer" class="jqm-footer"> | ||
<p class="jqm-version"></p> | ||
<p>Copyright 2013 The jQuery Foundation</p> | ||
</div><!-- /footer --> | ||
|
||
<?php include( '../global-nav.php' ); ?> | ||
|
||
</div><!-- /page --> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ee50437
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ticket: #5855