mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Fix various issues in our html files, fourth batch
This commit is contained in:
parent
d40993dcf6
commit
0a6b126413
@ -1,55 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>Button Visual Test : Button ticket #5254</title>
|
||||
<link rel="stylesheet" href="../visual.css" type="text/css" />
|
||||
<link rel="stylesheet" href="../../../themes/base/jquery.ui.all.css" type="text/css">
|
||||
<script type="text/javascript" src="../../../jquery-1.7.2.js"></script>
|
||||
<script type="text/javascript" src="../../../ui/jquery.ui.core.js"></script>
|
||||
<script type="text/javascript" src="../../../ui/jquery.ui.widget.js"></script>
|
||||
<script type="text/javascript" src="../../../ui/jquery.ui.button.js"></script>
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
|
||||
$('#b1').button();
|
||||
|
||||
$('#b2').button();
|
||||
|
||||
$('#b3').button().click(function() {
|
||||
return false;
|
||||
});
|
||||
|
||||
$('#ua').text(navigator.userAgent);
|
||||
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<h1 class="ui-widget-header"><a href="http://dev.jqueryui.com/ticket/5254">#5254 - Input, button and anchor buttons aren't consistent in IE7</a></h1>
|
||||
|
||||
<dl>
|
||||
<dt><h2>Screenshot from ticket:</h2></dt>
|
||||
<dd><img src="http://dev.jqueryui.com/raw-attachment/ticket/5254/button.png"></dd>
|
||||
</dl>
|
||||
|
||||
<hr>
|
||||
|
||||
<dl>
|
||||
<dt><h2>Visual test:</h2></dt>
|
||||
<dd>
|
||||
<div id="vt">
|
||||
<input id="b1" type="button" value="Input" style="" />
|
||||
<button id="b2">Button</button>
|
||||
<a id="b3" href="#">Anchor</a>
|
||||
</div>
|
||||
</dd>
|
||||
<dt><h2>User agent:</h2></dt>
|
||||
<dd>
|
||||
<h3 id="ua"></h3>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
</body>
|
||||
</html>
|
@ -134,7 +134,8 @@ Fusce erat sem, dictum in bibendum ac, feugiat ut odio. Duis aliquam felis sit a
|
||||
</p>
|
||||
<p>
|
||||
Cras a augue dui, vitae tincidunt enim. In hac habitasse platea dictumst. Proin nec magna sed nulla mollis tempus id ut lectus. Morbi volutpat ultricies ipsum, quis imperdiet libero tempor nec. Donec bibendum ornare blandit. Aliquam rutrum risus non turpis commodo non commodo erat molestie. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut fermentum, magna vel euismod convallis, mi magna vehicula velit, aliquet rhoncus ipsum massa et nunc. Nullam blandit purus non neque ullamcorper a aliquet nisl tristique. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Sed sit amet velit magna, sit amet rutrum dui. Donec elementum mi sed velit consectetur vulputate. Sed interdum adipiscing mattis.
|
||||
</p>
|
||||
</p>
|
||||
<p>
|
||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam vitae urna quam. Fusce adipiscing erat eget magna malesuada vel mollis ligula ullamcorper. Donec pulvinar, libero et vehicula facilisis, odio orci fringilla magna, non ultricies ipsum justo a tellus. Proin facilisis magna vitae quam vestibulum tempor. Aenean semper placerat posuere. In nisi diam, ullamcorper sit amet viverra sed, pretium sed neque. Sed posuere vulputate mauris vitae placerat. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nam in odio elit, non tempor felis. Integer non iaculis ante. Sed erat mauris, aliquam nec consequat id, congue id libero. Maecenas elementum gravida tincidunt. Suspendisse lacinia enim sit amet nulla cursus pulvinar.
|
||||
</p>
|
||||
<p>
|
||||
|
@ -89,7 +89,8 @@ Fusce erat sem, dictum in bibendum ac, feugiat ut odio. Duis aliquam felis sit a
|
||||
</p>
|
||||
<p>
|
||||
Cras a augue dui, vitae tincidunt enim. In hac habitasse platea dictumst. Proin nec magna sed nulla mollis tempus id ut lectus. Morbi volutpat ultricies ipsum, quis imperdiet libero tempor nec. Donec bibendum ornare blandit. Aliquam rutrum risus non turpis commodo non commodo erat molestie. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut fermentum, magna vel euismod convallis, mi magna vehicula velit, aliquet rhoncus ipsum massa et nunc. Nullam blandit purus non neque ullamcorper a aliquet nisl tristique. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Sed sit amet velit magna, sit amet rutrum dui. Donec elementum mi sed velit consectetur vulputate. Sed interdum adipiscing mattis.
|
||||
</p>
|
||||
</p>
|
||||
<p>
|
||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam vitae urna quam. Fusce adipiscing erat eget magna malesuada vel mollis ligula ullamcorper. Donec pulvinar, libero et vehicula facilisis, odio orci fringilla magna, non ultricies ipsum justo a tellus. Proin facilisis magna vitae quam vestibulum tempor. Aenean semper placerat posuere. In nisi diam, ullamcorper sit amet viverra sed, pretium sed neque. Sed posuere vulputate mauris vitae placerat. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nam in odio elit, non tempor felis. Integer non iaculis ante. Sed erat mauris, aliquam nec consequat id, congue id libero. Maecenas elementum gravida tincidunt. Suspendisse lacinia enim sit amet nulla cursus pulvinar.
|
||||
</p>
|
||||
<p>
|
||||
|
@ -69,7 +69,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div id="tabs-2">
|
||||
<div id="accordion-1">
|
||||
<div id="accordion-2">
|
||||
<div>
|
||||
<h3><a href="#">Accordion Header 1</a></h3>
|
||||
<div>
|
||||
|
@ -1,31 +1,31 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta charset="utf-8">
|
||||
<title>Compound Visual Test : All Widgets in Dialog</title>
|
||||
<link rel="stylesheet" href="../visual.css" type="text/css" />
|
||||
<link rel="stylesheet" href="../../../themes/base/jquery.ui.all.css" type="text/css">
|
||||
<script type="text/javascript" src="../../../jquery-1.7.2.js"></script>
|
||||
<script type="text/javascript" src="../../../ui/jquery.ui.core.js"></script>
|
||||
<script type="text/javascript" src="../../../ui/jquery.ui.widget.js"></script>
|
||||
<script type="text/javascript" src="../../../ui/jquery.ui.mouse.js"></script>
|
||||
<script type="text/javascript" src="../../../ui/jquery.ui.position.js"></script>
|
||||
<script type="text/javascript" src="../../../ui/jquery.ui.menu.js"></script>
|
||||
<script type="text/javascript" src="../../../ui/jquery.ui.resizable.js"></script>
|
||||
<script type="text/javascript" src="../../../ui/jquery.ui.draggable.js"></script>
|
||||
<script type="text/javascript" src="../../../ui/jquery.ui.accordion.js"></script>
|
||||
<script type="text/javascript" src="../../../ui/jquery.ui.autocomplete.js"></script>
|
||||
<script type="text/javascript" src="../../../ui/jquery.ui.button.js"></script>
|
||||
<script type="text/javascript" src="../../../ui/jquery.ui.datepicker.js"></script>
|
||||
<script type="text/javascript" src="../../../ui/jquery.ui.dialog.js"></script>
|
||||
<script type="text/javascript" src="../../../ui/jquery.ui.progressbar.js"></script>
|
||||
<script type="text/javascript" src="../../../ui/jquery.ui.slider.js"></script>
|
||||
<script type="text/javascript" src="../../../ui/jquery.ui.tabs.js"></script>
|
||||
<script type="text/javascript" src="../../../ui/jquery.ui.tooltip.js"></script>
|
||||
<script type="text/javascript">
|
||||
<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.mouse.js"></script>
|
||||
<script src="../../../ui/jquery.ui.position.js"></script>
|
||||
<script src="../../../ui/jquery.ui.menu.js"></script>
|
||||
<script src="../../../ui/jquery.ui.resizable.js"></script>
|
||||
<script src="../../../ui/jquery.ui.draggable.js"></script>
|
||||
<script src="../../../ui/jquery.ui.accordion.js"></script>
|
||||
<script src="../../../ui/jquery.ui.autocomplete.js"></script>
|
||||
<script src="../../../ui/jquery.ui.button.js"></script>
|
||||
<script src="../../../ui/jquery.ui.datepicker.js"></script>
|
||||
<script src="../../../ui/jquery.ui.dialog.js"></script>
|
||||
<script src="../../../ui/jquery.ui.progressbar.js"></script>
|
||||
<script src="../../../ui/jquery.ui.slider.js"></script>
|
||||
<script src="../../../ui/jquery.ui.tabs.js"></script>
|
||||
<script src="../../../ui/jquery.ui.tooltip.js"></script>
|
||||
<script>
|
||||
$(function() {
|
||||
$("[title]").tooltip();
|
||||
|
||||
|
||||
$("#accordion").accordion();
|
||||
$("#autocomplete").autocomplete({
|
||||
source: ["c++", "java", "php", "coldfusion", "javascript", "asp", "ruby", "python", "c", "scala", "groovy", "haskell", "perl"]
|
||||
@ -47,7 +47,7 @@
|
||||
}
|
||||
});
|
||||
$("#tabs").tabs();
|
||||
|
||||
|
||||
$("#dialog").dialog();
|
||||
$("#dialog2").dialog({
|
||||
autoOpen: false,
|
||||
@ -100,6 +100,7 @@
|
||||
Yay, another dialog.
|
||||
</div>
|
||||
|
||||
<p>
|
||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam vitae urna quam. Fusce adipiscing erat eget magna malesuada vel mollis ligula ullamcorper. Donec pulvinar, libero et vehicula facilisis, odio orci fringilla magna, non ultricies ipsum justo a tellus. Proin facilisis magna vitae quam vestibulum tempor. Aenean semper placerat posuere. In nisi diam, ullamcorper sit amet viverra sed, pretium sed neque. Sed posuere vulputate mauris vitae placerat. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nam in odio elit, non tempor felis. Integer non iaculis ante. Sed erat mauris, aliquam nec consequat id, congue id libero. Maecenas elementum gravida tincidunt. Suspendisse lacinia enim sit amet nulla cursus pulvinar.
|
||||
</p>
|
||||
<p>
|
||||
@ -162,6 +163,7 @@ Fusce erat sem, dictum in bibendum ac, feugiat ut odio. Duis aliquam felis sit a
|
||||
<p>
|
||||
Cras a augue dui, vitae tincidunt enim. In hac habitasse platea dictumst. Proin nec magna sed nulla mollis tempus id ut lectus. Morbi volutpat ultricies ipsum, quis imperdiet libero tempor nec. Donec bibendum ornare blandit. Aliquam rutrum risus non turpis commodo non commodo erat molestie. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut fermentum, magna vel euismod convallis, mi magna vehicula velit, aliquet rhoncus ipsum massa et nunc. Nullam blandit purus non neque ullamcorper a aliquet nisl tristique. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Sed sit amet velit magna, sit amet rutrum dui. Donec elementum mi sed velit consectetur vulputate. Sed interdum adipiscing mattis.
|
||||
</p>
|
||||
<p>
|
||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam vitae urna quam. Fusce adipiscing erat eget magna malesuada vel mollis ligula ullamcorper. Donec pulvinar, libero et vehicula facilisis, odio orci fringilla magna, non ultricies ipsum justo a tellus. Proin facilisis magna vitae quam vestibulum tempor. Aenean semper placerat posuere. In nisi diam, ullamcorper sit amet viverra sed, pretium sed neque. Sed posuere vulputate mauris vitae placerat. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nam in odio elit, non tempor felis. Integer non iaculis ante. Sed erat mauris, aliquam nec consequat id, congue id libero. Maecenas elementum gravida tincidunt. Suspendisse lacinia enim sit amet nulla cursus pulvinar.
|
||||
</p>
|
||||
<p>
|
||||
|
@ -8,7 +8,7 @@
|
||||
<script src="../../../ui/jquery.effects.core.js"></script>
|
||||
<script src="../../../ui/jquery.effects.scale.js"></script>
|
||||
<script src="effects.all.js"></script>
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
<script>
|
||||
jQuery(function( $ ) {
|
||||
var test = $( "#testBox" ),
|
||||
opts = $( ".arg" ),
|
||||
@ -36,9 +36,9 @@
|
||||
var cur = this.selectedIndex,
|
||||
next = cur + direction,
|
||||
len = this.options.length;
|
||||
|
||||
|
||||
this.selectedIndex = ( next + len ) % len;
|
||||
|
||||
|
||||
if ( ( next+len ) % len === next ) return false;
|
||||
});
|
||||
doAnim();
|
||||
|
@ -1,6 +1,7 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Menu Visual Test: Default</title>
|
||||
<link rel="stylesheet" href="../visual.css" type="text/css" />
|
||||
<link rel="stylesheet" href="../../../themes/base/jquery.ui.all.css" type="text/css" title="ui-theme" />
|
||||
@ -18,15 +19,15 @@
|
||||
right: 10,
|
||||
top: 10
|
||||
}).appendTo(document.body).themeswitcher();
|
||||
|
||||
|
||||
$.widget("ui.drilldown", {
|
||||
_init: function() {
|
||||
var that = this;
|
||||
this.active = this.element.find(">ul").attr("tabindex", 0);
|
||||
|
||||
|
||||
// hide submenus and create indicator icons
|
||||
this.element.find("ul").hide().prev("a").prepend('<span class="ui-icon ui-icon-carat-1-e"></span>').end().filter(":first").show();
|
||||
|
||||
this.element.find("ul").hide().prev("a").prepend('<span class="ui-icon ui-icon-carat-1-e"></span>').end().filter(":first").show();
|
||||
|
||||
this.element.find("ul").menu({
|
||||
// disable built-in key handling
|
||||
input: $(),
|
||||
@ -46,7 +47,7 @@
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
this.back = this.element.children(":last").button({
|
||||
icons: {
|
||||
primary: "ui-icon-carat-1-w"
|
||||
@ -56,7 +57,7 @@
|
||||
return false;
|
||||
}).hide();
|
||||
},
|
||||
|
||||
|
||||
_open: function(submenu) {
|
||||
this.active = submenu.show().css({
|
||||
opacity: 0
|
||||
@ -78,7 +79,7 @@
|
||||
});
|
||||
this.back.show();
|
||||
},
|
||||
|
||||
|
||||
up: function() {
|
||||
if (this.active.parent()[0] == this.element[0]) {
|
||||
return;
|
||||
@ -101,7 +102,7 @@
|
||||
this.back.hide();
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
down: function(event) {
|
||||
var nested = this.activeItem.find(">ul");
|
||||
if (nested.length) {
|
||||
@ -109,24 +110,24 @@
|
||||
nested.menu("focus", event, nested.children(":first"))
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
show: function() {
|
||||
},
|
||||
|
||||
|
||||
hide: function() {
|
||||
},
|
||||
|
||||
|
||||
widget: function() {
|
||||
return this.element.find(">ul");
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
var drilldown = $("#drilldown").drilldown({
|
||||
select: function(event, ui) {
|
||||
$("#log").append("<div>Selected " + ui.item.text() + "</div>");
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
drilldown.drilldown("widget").keydown(function(event) {
|
||||
var menu = drilldown.data("drilldown").active.data("menu");
|
||||
if (menu.widget().is(":hidden"))
|
||||
@ -171,7 +172,7 @@
|
||||
} else {
|
||||
character = prev + character;
|
||||
}
|
||||
|
||||
|
||||
var match = menu.widget().children("li").filter(function() {
|
||||
return new RegExp("^" + character, "i").test($("a", this).text());
|
||||
});
|
||||
@ -207,7 +208,7 @@
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
<div id="drilldown">
|
||||
<h3>Make a selection...</h3>
|
||||
<ul>
|
||||
|
@ -1,6 +1,7 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Menu Visual Test: Default</title>
|
||||
<link rel="stylesheet" href="../visual.css" type="text/css" />
|
||||
<link rel="stylesheet" href="../../../themes/base/jquery.ui.all.css" type="text/css" title="ui-theme" />
|
||||
@ -38,7 +39,7 @@
|
||||
menus: ".menuElement"
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
var menus = $("#menu1, #menu2, #menu3, .menu4");
|
||||
create();
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Menu Visual Test: Default</title>
|
||||
<link rel="stylesheet" href="../visual.css" type="text/css" />
|
||||
<link rel="stylesheet" href="../../../themes/base/jquery.ui.all.css" type="text/css" title="ui-theme" />
|
||||
@ -20,7 +21,7 @@
|
||||
rows.each(function() {
|
||||
$("<table>").width("100%").append(colgroup.clone()).append(this).wrap("<li><a></a></li>").parent().parent().appendTo(menu);
|
||||
});
|
||||
|
||||
|
||||
menu.menu({
|
||||
select: function(event, ui) {
|
||||
$("<div/>").text("Selected: " + ui.item.text()).appendTo("#log");
|
||||
@ -34,7 +35,7 @@
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
<table>
|
||||
<colgroup><col style="width: 50%"><col style="width: 50%"></colgroup>
|
||||
<thead>
|
||||
@ -54,7 +55,7 @@
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
<div class="ui-widget" style="clear: left; margin-top:2em; font-family:Arial">
|
||||
Log:
|
||||
<div id="log" style="height: 400px; width: 300px; overflow: auto;" class="ui-widget-content"></div>
|
||||
|
Loading…
Reference in New Issue
Block a user