2010-10-27 15:47:49 +00:00
|
|
|
<!doctype html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<title>Spinner Visual Test Page</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" />
|
2011-03-03 01:44:26 +00:00
|
|
|
<script type="text/javascript" src="../../../jquery-1.5.1.js"></script>
|
2010-10-27 15:47:49 +00:00
|
|
|
<script type="text/javascript" src="../../../external/jquery.mousewheel-3.0.4.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" src="../../../ui/jquery.ui.spinner.js"></script>
|
2010-12-01 21:56:58 +00:00
|
|
|
<script type="text/javascript" src="http://jqueryui.com/themeroller/themeswitchertool/"></script>
|
2010-10-27 15:47:49 +00:00
|
|
|
<script type="text/javascript">
|
|
|
|
$(function() {
|
2010-12-01 21:56:58 +00:00
|
|
|
$.fn.themeswitcher && $('<div/>').css({
|
|
|
|
position: "absolute",
|
|
|
|
right: 10,
|
|
|
|
top: 10
|
|
|
|
}).appendTo(document.body).themeswitcher();
|
|
|
|
|
2010-10-27 15:47:49 +00:00
|
|
|
$('#spinner').spinner({
|
|
|
|
start: function(event, ui) {
|
|
|
|
console.log(event.type, ui.value, $(this).spinner("value"));
|
|
|
|
},
|
|
|
|
spin: function(event, ui) {
|
|
|
|
console.log(event.type, ui.value, $(this).spinner("value"));
|
|
|
|
},
|
|
|
|
stop: function(event) {
|
|
|
|
console.log(event.type, $(this).spinner("value"));
|
|
|
|
},
|
|
|
|
change: function(event) {
|
|
|
|
console.log(event.type, $(this).spinner("value"));
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
|
|
|
|
<p><label for="spinner">Basic with event callbacks:</label> <input id="spinner"></p>
|
|
|
|
</body>
|
|
|
|
</html>
|