diff options
author | Alexander Schmitz <arschmitz@gmail.com> | 2015-06-30 22:11:05 -0400 |
---|---|---|
committer | Alexander Schmitz <arschmitz@gmail.com> | 2015-07-21 11:00:41 -0400 |
commit | df37d7d505edc429f4238f105e61ff3644a17b8b (patch) | |
tree | 3da59b9013c8203b14036eb12a7bded6fbbcc840 /demos/progressbar | |
parent | febd120d75d2acb61906949dcd41ffd760585472 (diff) | |
download | jquery-ui-df37d7d505edc429f4238f105e61ff3644a17b8b.tar.gz jquery-ui-df37d7d505edc429f4238f105e61ff3644a17b8b.zip |
Progressbar: Update demos to use AMD
Ref #10119
Diffstat (limited to 'demos/progressbar')
-rw-r--r-- | demos/progressbar/default.html | 9 | ||||
-rw-r--r-- | demos/progressbar/download.html | 14 | ||||
-rw-r--r-- | demos/progressbar/indeterminate.html | 9 | ||||
-rw-r--r-- | demos/progressbar/label.html | 9 |
4 files changed, 8 insertions, 33 deletions
diff --git a/demos/progressbar/default.html b/demos/progressbar/default.html index 197a976c5..b1ada1a0a 100644 --- a/demos/progressbar/default.html +++ b/demos/progressbar/default.html @@ -4,17 +4,12 @@ <meta charset="utf-8"> <title>jQuery UI Progressbar - Default functionality</title> <link rel="stylesheet" href="../../themes/base/all.css"> - <script src="../../external/jquery/jquery.js"></script> - <script src="../../ui/core.js"></script> - <script src="../../ui/widget.js"></script> - <script src="../../ui/progressbar.js"></script> <link rel="stylesheet" href="../demos.css"> - <script> - $(function() { + <script src="../../external/requirejs/require.js"></script> + <script src="../bootstrap.js"> $( "#progressbar" ).progressbar({ value: 37 }); - }); </script> </head> <body> diff --git a/demos/progressbar/download.html b/demos/progressbar/download.html index 1253176a4..a7731b387 100644 --- a/demos/progressbar/download.html +++ b/demos/progressbar/download.html @@ -4,18 +4,9 @@ <meta charset="utf-8"> <title>jQuery UI Progressbar - Download Dialog</title> <link rel="stylesheet" href="../../themes/base/all.css"> - <script src="../../external/jquery/jquery.js"></script> - <script src="../../ui/core.js"></script> - <script src="../../ui/widget.js"></script> - <script src="../../ui/progressbar.js"></script> - <script src="../../ui/mouse.js"></script> - <script src="../../ui/draggable.js"></script> - <script src="../../ui/button.js"></script> - <script src="../../ui/position.js"></script> - <script src="../../ui/dialog.js"></script> <link rel="stylesheet" href="../demos.css"> - <script> - $(function() { + <script src="../../external/requirejs/require.js"></script> + <script src="../bootstrap.js" data-modules="dialog"> var progressTimer, progressbar = $( "#progressbar" ), progressLabel = $( ".progress-label" ), @@ -83,7 +74,6 @@ .text( "Starting download..." ); downloadButton.trigger( "focus" ); } - }); </script> <style> #progressbar { diff --git a/demos/progressbar/indeterminate.html b/demos/progressbar/indeterminate.html index ef5f446f2..d349a7436 100644 --- a/demos/progressbar/indeterminate.html +++ b/demos/progressbar/indeterminate.html @@ -4,13 +4,9 @@ <meta charset="utf-8"> <title>jQuery UI Progressbar - Indeterminate Value</title> <link rel="stylesheet" href="../../themes/base/all.css"> - <script src="../../external/jquery/jquery.js"></script> - <script src="../../ui/core.js"></script> - <script src="../../ui/widget.js"></script> - <script src="../../ui/progressbar.js"></script> <link rel="stylesheet" href="../demos.css"> - <script> - $(function() { + <script src="../../external/requirejs/require.js"></script> + <script src="../bootstrap.js"> $( "#progressbar" ).progressbar({ value: false }); @@ -31,7 +27,6 @@ progressbar.progressbar( "option", "value", false ); } }); - }); </script> <style> #progressbar .ui-progressbar-value { diff --git a/demos/progressbar/label.html b/demos/progressbar/label.html index f4c493707..ea4c4ecdb 100644 --- a/demos/progressbar/label.html +++ b/demos/progressbar/label.html @@ -4,10 +4,6 @@ <meta charset="utf-8"> <title>jQuery UI Progressbar - Custom Label</title> <link rel="stylesheet" href="../../themes/base/all.css"> - <script src="../../external/jquery/jquery.js"></script> - <script src="../../ui/core.js"></script> - <script src="../../ui/widget.js"></script> - <script src="../../ui/progressbar.js"></script> <link rel="stylesheet" href="../demos.css"> <style> .ui-progressbar { @@ -21,8 +17,8 @@ text-shadow: 1px 1px 0 #fff; } </style> - <script> - $(function() { + <script src="../../external/requirejs/require.js"></script> + <script src="../bootstrap.js"> var progressbar = $( "#progressbar" ), progressLabel = $( ".progress-label" ); @@ -47,7 +43,6 @@ } setTimeout( progress, 2000 ); - }); </script> </head> <body> |