Learning by doing: Reading books and trying to understand the (code) examples
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

39 lines
1.6 KiB

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>My first jQuery Mobile code</title>
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.css">
<script src="http://code.jquery.com/jquery-1.8.2.min.js"></script>
<script type="text/javascript" src="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<div data-role="page" id="page1">
<div data-role="header" data-position="fixed">
<h1>Navigation bars</h1>
<div data-role="navbar">
<ul>
<li><a href="">Refresh</a></li>
<li><a href="">Filter</a></li>
<li><a href="">Search</a></li>
<li><a href="">New item</a></li>
</ul>
</div>
</div>
<div data-role="content">
</div>
<div data-role="footer" data-position="fixed">
<div data-role="navbar">
<ul>
<li><a href="" data-icon="home" class="ui-btn-active">Home</a></li>
<li><a href="" data-icon="search">Contacts</a></li>
<li><a href="" data-icon="info">Events</a></li>
<li><a href="" data-icon="grid">News</a></li>
</ul>
</div>
</div>
</div>
</body>
</html>