range-sliders.js 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. $(function () {
  2. //Taken from http://ionden.com/a/plugins/ion.rangeSlider/demo.html
  3. $("#range_01").ionRangeSlider();
  4. $("#range_02").ionRangeSlider({
  5. min: 100,
  6. max: 1000,
  7. from: 550
  8. });
  9. $("#range_03").ionRangeSlider({
  10. type: "double",
  11. grid: true,
  12. min: 0,
  13. max: 1000,
  14. from: 200,
  15. to: 800,
  16. prefix: "$"
  17. });
  18. $("#range_04").ionRangeSlider({
  19. type: "double",
  20. grid: true,
  21. min: -1000,
  22. max: 1000,
  23. from: -500,
  24. to: 500
  25. });
  26. $("#range_05").ionRangeSlider({
  27. type: "double",
  28. grid: true,
  29. min: -1000,
  30. max: 1000,
  31. from: -500,
  32. to: 500,
  33. step: 250
  34. });
  35. $("#range_06").ionRangeSlider({
  36. type: "double",
  37. grid: true,
  38. min: -12.8,
  39. max: 12.8,
  40. from: -3.2,
  41. to: 3.2,
  42. step: 0.1
  43. });
  44. $("#range_07").ionRangeSlider({
  45. type: "double",
  46. grid: true,
  47. from: 1,
  48. to: 5,
  49. values: [0, 10, 100, 1000, 10000, 100000, 1000000]
  50. });
  51. $("#range_08").ionRangeSlider({
  52. grid: true,
  53. from: 5,
  54. values: [
  55. "zero", "one",
  56. "two", "three",
  57. "four", "five",
  58. "six", "seven",
  59. "eight", "nine",
  60. "ten"
  61. ]
  62. });
  63. $("#range_09").ionRangeSlider({
  64. grid: true,
  65. from: 3,
  66. values: [
  67. "January", "February", "March",
  68. "April", "May", "June",
  69. "July", "August", "September",
  70. "October", "November", "December"
  71. ]
  72. });
  73. $("#range_10").ionRangeSlider({
  74. grid: true,
  75. min: 1000,
  76. max: 1000000,
  77. from: 100000,
  78. step: 1000,
  79. prettify_enabled: false
  80. });
  81. });