progress-bar.html 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
  2. "http://www.w3.org/TR/html4/strict.dtd">
  3. <html>
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  6. <title>
  7. ProgressBar
  8. </title>
  9. <link rel="stylesheet" type="text/css" href="../../resources/css/ext-all.css">
  10. <link rel="stylesheet" type="text/css" href="progress-bar.css">
  11. <link rel="stylesheet" type="text/css" href="../shared/example.css">
  12. <!-- GC -->
  13. <script type="text/javascript" src="../../ext-all.js">
  14. </script>
  15. <script type="text/javascript" src="progress-bar.js">
  16. </script>
  17. <style type="text/css">
  18. p {
  19. margin: 20px;
  20. }
  21. </style>
  22. </head>
  23. <body>
  24. <h1>
  25. Progress Bar
  26. </h1>
  27. <p>
  28. The example shows how to use the ProgressBar class. The js is not minified so it is readable. See <a href="progress-bar.js">progress-bar.js</a>.
  29. </p>
  30. <p>
  31. <b>Basic Progress Bar:</b> Deferred rendering, dynamic show/hide and built-in progress text: <button id="btn1">Show</button><br>
  32. </p>
  33. <div class="status" id="p1text">
  34. Nothing to see here.
  35. </div>
  36. <div id="p1" style="width:300px;"></div>
  37. <p>
  38. <b>Additional Options:</b> Rendered on page load, left-aligned text and % width: <button id="btn2">Show</button><br>
  39. </p>
  40. <div id="p2" style="width:50%;"></div>
  41. <p>
  42. <b>Waiting Bar:</b> Wait for a long operation to complete (example will stop after 5 secs): <button id="btn3">Show</button><br>
  43. </p>
  44. <div id="p3"></div>
  45. <p>
  46. <span class="status" id="p3text">Ready</span>
  47. </p>
  48. <p>
  49. <b>Custom Styles:</b> Rendered like Windows XP with custom progress text element: <button id="btn4">Show</button><br>
  50. </p>
  51. <div id="p4" style="width:300px;"></div>
  52. <div class="status">
  53. <b>Status:</b> <span id="p4text"></span>
  54. </div>
  55. </body>
  56. </html>