index.html 6.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>Seekbars</title>
  6. <meta name="description" content="Scroll through content (i.e. a song or video) ">
  7. <link rel="stylesheet" href="../seekbars.css">
  8. <!--
  9. This <style> and <link> is only used for the example code, is no needed for the real case use
  10. -->
  11. <style>
  12. html, body {
  13. margin: 0;
  14. padding: 0;
  15. font-size: 10px;
  16. }
  17. body {
  18. background: #fff;
  19. }
  20. h2.bb-docs {
  21. font-size: 1.8rem;
  22. font-family: sans-serif;
  23. font-weight: lighter;
  24. color: #666;
  25. margin: -1px 0 0;
  26. background-color: #f5f5f5;
  27. padding: 0.4rem 0.4rem 0.4rem 3rem;
  28. border: solid 1px #e8e8e8;
  29. }
  30. body[role="application"] section[role="region"]{
  31. background: #fff;
  32. padding: 2rem;
  33. }
  34. body[role="application"] section[role="region"] button {
  35. left: 80%;
  36. }
  37. body[role="application"] section[role="region"] label.icon {
  38. background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAA8CAYAAABxVAqfAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6Y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8X8CDABI2xLhHAdAlAAAAABJRU5ErkJggg==);
  39. }
  40. body[role="application"] section[role="region"] label.icon:last-of-type {
  41. background-position: right -3rem;
  42. }
  43. </style>
  44. </head>
  45. <body role="application">
  46. <h2 class="bb-docs">Default seeker</h2>
  47. <section role="region">
  48. <div role="slider" aria-valuemin="0" aria-valuenow="80" aria-valuemax="100" aria-valuetext="slider description">
  49. <div>
  50. <progress value="80" max="100"></progress>
  51. <button>handler</button>
  52. </div>
  53. </div>
  54. </section>
  55. <h2 class="bb-docs">Value seeker</h2>
  56. <section role="region">
  57. <div role="slider" aria-valuemin="0" aria-valuenow="80" aria-valuemax="100" aria-valuetext="slider description">
  58. <label>0</label>
  59. <label>100</label>
  60. <div>
  61. <progress value="80" max="100"></progress>
  62. <button>handler</button>
  63. </div>
  64. </div>
  65. </section>
  66. <h2 class="bb-docs">Icon seeker</h2>
  67. <section role="region">
  68. <div role="slider" aria-valuemin="0" aria-valuenow="80" aria-valuemax="100" aria-valuetext="slider description">
  69. <label class="icon">0</label>
  70. <label class="icon">100</label>
  71. <div>
  72. <progress value="80" max="100"></progress>
  73. <button>handler</button>
  74. </div>
  75. </div>
  76. </section>
  77. </body>
  78. </html>