aboutsummaryrefslogtreecommitdiffstats
path: root/demos/spinner/currency.html
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2011-08-07 12:59:50 -0400
committerScott González <scott.gonzalez@gmail.com>2011-08-07 12:59:50 -0400
commitca2211f74851a066829464e78f50c90b49eac2dd (patch)
tree6e45fc575cc50586260270202bdc170060dde716 /demos/spinner/currency.html
parent6c84531d7ced59fc3b884aa11845c7016d4187aa (diff)
downloadjquery-ui-ca2211f74851a066829464e78f50c90b49eac2dd.tar.gz
jquery-ui-ca2211f74851a066829464e78f50c90b49eac2dd.zip
Spinner demos: Cleanup.
Diffstat (limited to 'demos/spinner/currency.html')
-rw-r--r--demos/spinner/currency.html54
1 files changed, 27 insertions, 27 deletions
diff --git a/demos/spinner/currency.html b/demos/spinner/currency.html
index a1768ff49..18d479de8 100644
--- a/demos/spinner/currency.html
+++ b/demos/spinner/currency.html
@@ -1,35 +1,34 @@
-<!DOCTYPE html>
+<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>jQuery UI Spinner - Default functionality</title>
- <link type="text/css" href="../../themes/base/jquery.ui.all.css" rel="stylesheet" />
- <script type="text/javascript" src="../../jquery-1.6.2.js"></script>
- <script type="text/javascript" src="../../external/jquery.mousewheel-3.0.4.js"></script>
- <script type="text/javascript" src="../../external/jquery.global.js"></script>
- <script type="text/javascript" src="../../external/jquery.global.de-DE.js"></script>
- <script type="text/javascript" src="../../external/jquery.global.ja-JP.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>
- <link type="text/css" href="../demos.css" rel="stylesheet" />
- <script type="text/javascript">
+ <link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
+ <script src="../../jquery-1.6.2.js"></script>
+ <script src="../../external/jquery.mousewheel-3.0.4.js"></script>
+ <script src="../../external/jquery.global.js"></script>
+ <script src="../../external/jquery.global.de-DE.js"></script>
+ <script src="../../external/jquery.global.ja-JP.js"></script>
+ <script src="../../ui/jquery.ui.core.js"></script>
+ <script src="../../ui/jquery.ui.widget.js"></script>
+ <script src="../../ui/jquery.ui.button.js"></script>
+ <script src="../../ui/jquery.ui.spinner.js"></script>
+ <link rel="stylesheet" href="../demos.css">
+ <script>
$(function() {
- $("#currency").change(function() {
- var current = $("#spinner").spinner("value");
- $.global.preferCulture($(this).val());
- $("#spinner").spinner("value", current);
- })
-
- $("#spinner").spinner({
+ $( "#currency" ).change(function() {
+ var current = $( "#spinner" ).spinner( "value" );
+ $.global.preferCulture( $(this).val() );
+ $( "#spinner" ).spinner( "value", current );
+ });
+
+ $( "#spinner" ).spinner({
min: 5,
max: 2500,
step: 25,
start: 1000,
numberFormat: "C"
});
-
});
</script>
</head>
@@ -47,15 +46,16 @@
</p>
<p>
<label for="spinner">Amount to donate:</label>
- <input id="spinner" name="spinner" value="5" />
+ <input id="spinner" name="spinner" value="5">
</p>
-</div>
+
+</div><!-- End demo -->
+
+
<div class="demo-description">
-<p>
- Example of a donation form, with currency selection and amout spinner.
-</p>
-</div>
+<p>Example of a donation form, with currency selection and amout spinner.</p>
+</div><!-- End demo-description -->
</body>
</html>