Skip to content
Permalink
Browse files

Spinner: Visual test page for events

  • Loading branch information...
jzaefferer committed Oct 27, 2010
1 parent 78872dc commit 9fa6edcbec6c3bcbab1c761417cf14b6f030b2cb
Showing with 36 additions and 0 deletions.
  1. +36 −0 tests/visual/spinner/spinner.html
@@ -0,0 +1,36 @@
<!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" />
<script type="text/javascript" src="../../../jquery-1.4.3.js"></script>
<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>
<script type="text/javascript">
$(function() {
$('#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>

0 comments on commit 9fa6edc

Please sign in to comment.
You can’t perform that action at this time.