Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(function() {
- var p = {
- 100000: "∞"
- };
- $('#slider1').slider({
- value: 0,
- min: 0,
- max: 100000,
- slide: function(event, ui) {
- if (ui.value != 100000) {
- $('#slider1-value').text(numberWithCommas(ui.value))
- } else {
- $('#slider1-value').text("Max")
- }
- }
- });
- $('#slider2').slider({
- value: 0,
- min: 0,
- max: 100000,
- slide: function(event, ui) {
- if (ui.value != 100000) {
- $('#slider2-value').text(numberWithCommas(ui.value))
- } else {
- $('#slider2-value').text("Max")
- }
- }
- });
- $('#slider3').slider({
- value: 1000,
- min: 0,
- max: 100000,
- slide: function(event, ui) {
- if (ui.value != 100000) {
- $('#slider3-value').text(numberWithCommas(ui.value))
- } else {
- $('#slider3-value').text("Max")
- }
- }
- })
- });
Advertisement
Add Comment
Please, Sign In to add comment