Sha256: d9b81a375a5d55de1fdee96a23bb4528f3d7dc42f13b75a91d82c268cefe87a6

Contents?: true

Size: 1.7 KB

Versions: 8

Compression:

Stored size: 1.7 KB

Contents

var FormSliders = function () {

    return {
        
        //Form Sliders
        initFormSliders: function () {
	        // Regular slider
	        $('#slider1').slider({
		      min: 0,
		      max: 500,
		      slide: function(event, ui)
		      {
		        $('#slider1-value').text(ui.value);
		      }
	        });
	        
	        // Range slider
	        $('#slider2').slider({
		      min: 0,
		      max: 500,
		      range: true,
		      values: [75, 300],
		      slide: function(event, ui)
		      {
		        $('#slider2-value1').text(ui.values[0]);
		        $('#slider2-value2').text(ui.values[1]);
		      }
	        });
	        
	        // Step slider
	        $('#slider3').slider({
		      min: 0,
		      max: 500,
		      step: 100,
		      slide: function(event, ui)
		      {
		        $('#slider3-value').text(ui.value);
		      }
	        });

	         // Rounded Regular slider
	        $('#slider1-rounded').slider({
		      min: 0,
		      max: 500,
		      slide: function(event, ui)
		      {
		        $('#slider1-value-rounded').text(ui.value);
		      }
	        });
	        
	        // Rounded Range slider
	        $('#slider2-rounded').slider({
		      min: 0,
		      max: 500,
		      range: true,
		      values: [75, 300],
		      slide: function(event, ui)
		      {
		        $('#slider2-value1-rounded').text(ui.values[0]);
		        $('#slider2-value2-rounded').text(ui.values[1]);
		      }
	        });
	        
	        // Rounded Step slider
	        $('#slider3-rounded').slider({
		      min: 0,
		      max: 500,
		      step: 100,
		      slide: function(event, ui)
		      {
		        $('#slider3-value-rounded').text(ui.value);
		      }
	        });
        }

    };
    
}();

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
nunify-1.0.0 vendor/assets/javascripts/nunify/plugins/form-sliders.js
nunify-0.5.4 vendor/assets/javascripts/nunify/plugins/form-sliders.js
nunify-0.5.2 vendor/assets/javascripts/nunify/plugins/form-sliders.js
nunify-0.5.1 vendor/assets/javascripts/nunify/plugins/form-sliders.js
nunify-0.5.0 vendor/assets/javascripts/nunify/plugins/form-sliders.js
nunify-0.0.3 vendor/assets/javascripts/nunify/plugins/form-sliders.js
nunify-0.0.2 vendor/assets/javascripts/nunify/plugins/form-sliders.js
nunify-0.0.1 vendor/assets/javascripts/nunify/plugins/form-sliders.js