mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Menu demos: Cleanup.
This commit is contained in:
parent
378dacfda1
commit
35f7a67c09
@ -1,28 +1,25 @@
|
|||||||
<!DOCTYPE html>
|
<!doctype html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>jQuery UI Menu - Default demo</title>
|
<title>jQuery UI Menu - Default functionality</title>
|
||||||
<link type="text/css" href="../../themes/base/jquery.ui.all.css" rel="stylesheet" />
|
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||||
<script src="../../jquery-1.7.2.js"></script>
|
<script src="../../jquery-1.7.2.js"></script>
|
||||||
<script src="../../ui/jquery.ui.core.js"></script>
|
<script src="../../ui/jquery.ui.core.js"></script>
|
||||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||||
<script src="../../ui/jquery.ui.menu.js"></script>
|
<script src="../../ui/jquery.ui.menu.js"></script>
|
||||||
<link href="../demos.css" rel="stylesheet" />
|
<link rel="stylesheet" href="../demos.css">
|
||||||
<script>
|
<script>
|
||||||
$(function() {
|
$(function() {
|
||||||
$(".demo ul").menu();
|
$( "#menu" ).menu();
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
<style>
|
|
||||||
|
|
||||||
</style>
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
<div class="demo">
|
<div class="demo">
|
||||||
|
|
||||||
<ul>
|
<ul id="menu">
|
||||||
<li><a href="#Aberdeen">Aberdeen</a></li>
|
<li><a href="#Aberdeen">Aberdeen</a></li>
|
||||||
<li><a href="#Ada">Ada</a></li>
|
<li><a href="#Ada">Ada</a></li>
|
||||||
<li><a href="#Adamsville">Adamsville</a></li>
|
<li><a href="#Adamsville">Adamsville</a></li>
|
||||||
@ -44,11 +41,9 @@
|
|||||||
|
|
||||||
<div class="demo-description">
|
<div class="demo-description">
|
||||||
|
|
||||||
<p>A menu with the default configuration. 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 menu with the default configuration. 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 -->
|
</div><!-- End demo-description -->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
<!DOCTYPE html>
|
<!doctype html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="utf-8">
|
||||||
<title>jQuery UI Menu Demos</title>
|
<title>jQuery UI Menu Demos</title>
|
||||||
<link href="../demos.css" rel="stylesheet" />
|
<link rel="stylesheet" href="../demos.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="demos-nav">
|
<div class="demos-nav">
|
||||||
|
@ -1,18 +1,18 @@
|
|||||||
<!DOCTYPE html>
|
<!doctype html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>jQuery UI Menu - Navigation Menu demo</title>
|
<title>jQuery UI Menu - Navigation Menu</title>
|
||||||
<link type="text/css" href="../../themes/base/jquery.ui.all.css" rel="stylesheet" />
|
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||||
<script src="../../jquery-1.7.2.js"></script>
|
<script src="../../jquery-1.7.2.js"></script>
|
||||||
<script src="../../ui/jquery.ui.core.js"></script>
|
<script src="../../ui/jquery.ui.core.js"></script>
|
||||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||||
<script src="../../ui/jquery.ui.position.js"></script>
|
<script src="../../ui/jquery.ui.position.js"></script>
|
||||||
<script src="../../ui/jquery.ui.menu.js"></script>
|
<script src="../../ui/jquery.ui.menu.js"></script>
|
||||||
<link href="../demos.css" rel="stylesheet" />
|
<link rel="stylesheet" href="../demos.css">
|
||||||
<script>
|
<script>
|
||||||
$(function() {
|
$(function() {
|
||||||
$("#navMenu").menu({
|
$( "#menu" ).menu({
|
||||||
select: function( event, ui ) {
|
select: function( event, ui ) {
|
||||||
var link = ui.item.children( "a:first" );
|
var link = ui.item.children( "a:first" );
|
||||||
if ( link.attr( "target" ) || event.metaKey || event.shiftKey || event.ctrlKey ) {
|
if ( link.attr( "target" ) || event.metaKey || event.shiftKey || event.ctrlKey ) {
|
||||||
@ -24,7 +24,6 @@
|
|||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
<style>
|
<style>
|
||||||
body { font-size:62.5%; }
|
|
||||||
.ui-menu { width: 200px; margin-bottom: 2em; }
|
.ui-menu { width: 200px; margin-bottom: 2em; }
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
@ -32,7 +31,7 @@
|
|||||||
|
|
||||||
<div class="demo">
|
<div class="demo">
|
||||||
|
|
||||||
<ul id="navMenu">
|
<ul id="menu">
|
||||||
<li><a href="?Aberdeen">Aberdeen</a></li>
|
<li><a href="?Aberdeen">Aberdeen</a></li>
|
||||||
<li><a href="?Ada">Ada</a></li>
|
<li><a href="?Ada">Ada</a></li>
|
||||||
<li><a href="?Adamsville">Adamsville</a></li>
|
<li><a href="?Adamsville">Adamsville</a></li>
|
||||||
@ -74,11 +73,9 @@
|
|||||||
|
|
||||||
<div class="demo-description">
|
<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 -->
|
</div><!-- End demo-description -->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@ -3,8 +3,8 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>Menu Demo: Top-aligned Menu</title>
|
<title>Menu Demo: Top-aligned Menu</title>
|
||||||
<link type="text/css" href="../demos.css" rel="stylesheet" />
|
<link rel="stylesheet" href="../demos.css">
|
||||||
<link type="text/css" href="../../themes/base/jquery.ui.all.css" rel="stylesheet" />
|
<link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
|
||||||
<script src="../../jquery-1.7.2.js"></script>
|
<script src="../../jquery-1.7.2.js"></script>
|
||||||
<script src="../../ui/jquery.ui.core.js"></script>
|
<script src="../../ui/jquery.ui.core.js"></script>
|
||||||
<script src="../../ui/jquery.ui.widget.js"></script>
|
<script src="../../ui/jquery.ui.widget.js"></script>
|
||||||
@ -12,7 +12,7 @@
|
|||||||
<script src="../../ui/jquery.ui.menu.js"></script>
|
<script src="../../ui/jquery.ui.menu.js"></script>
|
||||||
<script>
|
<script>
|
||||||
$(function() {
|
$(function() {
|
||||||
$("#topMenu").menu({
|
$( "#menu" ).menu({
|
||||||
position: { of: "ul:has(a.ui-state-focus):last" }
|
position: { of: "ul:has(a.ui-state-focus):last" }
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@ -23,7 +23,7 @@
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
<ul id="topMenu">
|
<ul id="menu">
|
||||||
<li><a href="#">Aberdeen</a></li>
|
<li><a href="#">Aberdeen</a></li>
|
||||||
<li><a href="#">Ada</a></li>
|
<li><a href="#">Ada</a></li>
|
||||||
<li><a href="#">Adamsville</a></li>
|
<li><a href="#">Adamsville</a></li>
|
||||||
|
Loading…
Reference in New Issue
Block a user