aboutsummaryrefslogtreecommitdiffstats
path: root/demos/menu/navigationmenu.html
diff options
context:
space:
mode:
Diffstat (limited to 'demos/menu/navigationmenu.html')
-rw-r--r--demos/menu/navigationmenu.html19
1 files changed, 8 insertions, 11 deletions
diff --git a/demos/menu/navigationmenu.html b/demos/menu/navigationmenu.html
index 8c7b2b993..94dc1b8fa 100644
--- a/demos/menu/navigationmenu.html
+++ b/demos/menu/navigationmenu.html
@@ -1,18 +1,18 @@
-<!DOCTYPE html>
+<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
- <title>jQuery UI Menu - Navigation Menu demo</title>
- <link type="text/css" href="../../themes/base/jquery.ui.all.css" rel="stylesheet" />
+ <title>jQuery UI Menu - Navigation Menu</title>
+ <link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
<script src="../../jquery-1.7.2.js"></script>
<script src="../../ui/jquery.ui.core.js"></script>
<script src="../../ui/jquery.ui.widget.js"></script>
<script src="../../ui/jquery.ui.position.js"></script>
<script src="../../ui/jquery.ui.menu.js"></script>
- <link href="../demos.css" rel="stylesheet" />
+ <link rel="stylesheet" href="../demos.css">
<script>
$(function() {
- $("#navMenu").menu({
+ $( "#menu" ).menu({
select: function( event, ui ) {
var link = ui.item.children( "a:first" );
if ( link.attr( "target" ) || event.metaKey || event.shiftKey || event.ctrlKey ) {
@@ -24,15 +24,14 @@
});
</script>
<style>
- body { font-size:62.5%; }
- .ui-menu { width: 200px; margin-bottom: 2em; }
+ .ui-menu { width: 200px; margin-bottom: 2em; }
</style>
</head>
<body>
<div class="demo">
- <ul id="navMenu">
+ <ul id="menu">
<li><a href="?Aberdeen">Aberdeen</a></li>
<li><a href="?Ada">Ada</a></li>
<li><a href="?Adamsville">Adamsville</a></li>
@@ -74,11 +73,9 @@
<div class="demo-description">
-<p>A navigation menu. A list is transformed, adding themeing, mouse and keyboard navigation support. Try to tab to the menu and use the cursor keys to navigate.</p>
+<p>A navigation menu. A list is transformed, adding theming, mouse and keyboard navigation support. Try to tab to the menu then use the cursor keys to navigate.</p>
</div><!-- End demo-description -->
-
-
</body>
</html>