Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
| 1 |
<!doctype html> |
| 2 |
<html lang="en"> |
| 3 |
<head> |
| 4 |
<meta charset="utf-8"> |
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1"> |
| 6 |
<title>jQuery UI Spinner - Overflow</title> |
| 7 |
<link rel="stylesheet" href="../../themes/base/all.css"> |
| 8 |
<link rel="stylesheet" href="../demos.css"> |
| 9 |
<script src="../../external/requirejs/require.js"></script> |
| 10 |
<script src="../bootstrap.js" data-modules="external/jquery-mousewheel/jquery.mousewheel"> |
| 11 |
$( "#spinner" ).spinner({ |
| 12 |
spin: function( event, ui ) { |
| 13 |
if ( ui.value > 10 ) { |
| 14 |
$( this ).spinner( "value", -10 ); |
| 15 |
return false; |
| 16 |
} else if ( ui.value < -10 ) { |
| 17 |
$( this ).spinner( "value", 10 ); |
| 18 |
return false; |
| 19 |
} |
| 20 |
} |
| 21 |
}); |
| 22 |
</script> |
| 23 |
</head> |
| 24 |
<body> |
| 25 |
|
| 26 |
<p> |
| 27 |
<label for="spinner">Select a value:</label> |
| 28 |
<input id="spinner" name="value" /> |
| 29 |
</p> |
| 30 |
|
| 31 |
<div class="demo-description"> |
| 32 |
<p> |
| 33 |
Overflowing spinner restricted to a range of -10 to 10. |
| 34 |
For anything above 10, it'll overflow to -10, and the other way round. |
| 35 |
</p> |
| 36 |
</div> |
| 37 |
</body> |
| 38 |
</html> |