WHY SMARTY?

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas metus nulla, commodo a sodales sed, dignissim pretium nunc. Nam et lacus neque. Ut enim massa, sodales tempor convallis et, iaculis ac massa.

CONTACT INFO
  • Address: PO Box 21132, Here Weare St,
    Melbourne, Vivas 2355 Australia
  • Phone: 1-800-565-2390
  • Email: support@yourname.com
UI Sliders - Based on jQuery UI
See the bottom of the page for javascript code.

UI Sliders

Select a month:

UI Vertical Sliders

100
77
55
40
55
77
100
100
77
55
40
55
77
100



Show Javascript Code
/** Place/load this code after scripts.js **/
jQuery(window).ready(function() {

	/** jQuery UI **/
	loadScript(plugin_path + 'jquery/jquery-ui.min.js', function() { 
		/** Enable Mobile Touch Slider **/
		loadScript(plugin_path + 'jquery/jquery.ui.touch-punch.min.js', function() { 
			/** Slider Script **/
			loadScript(plugin_path + 'form.slidebar/jquery-ui-slider-pips.min.js', function() { 

				/** Slider 0
				******************** **/
				var months 	= ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
				var $slidern 	= jQuery("#slider").slider({
					range: "min",
					animate: true,
					min: 0,
					max: 11,
					value: 5			
				});
				
				$slidern.slider("pips", { rest: "label", labels: months });
				$slidern.slider("float" , { labels: months });
				$slidern.on("slidechange", function(e,ui) {
					jQuery("#monthOutput").text(months[ui.value]);
				});


				/** Slider 1
				******************** **/
				var $slider1 = jQuery("#slider1").slider({
					range: true,
					animate: true,
					min: 0,
					max: 10,					
					values: [2, 8]
				});	
				
				jQuery("#slider1").slider("pips", { first: "pip", last: "pip" });



				/** Slider 2
				******************** **/
				jQuery( "#slider2" ).slider({
					range: "min",
					animate: true,
					value: 299,
					min: 99,
					max: 499,
					step: 100,
					slide: function(event, ui) {
						jQuery("#amount").val("$" + ui.value);
					}
				});
							
				jQuery("#amount").val( "$" + jQuery("#slider2").slider("value"));
				jQuery("#slider2").slider("pips", { rest: "label", prefix: "$", suffix: "" });
				jQuery("#slider2").slider("float", { prefix: "$", suffix: "", pips: true });



				/** Slider 3
				******************** **/
				jQuery("#slider3").slider({
					range: "max",
					animate: true,
					min: 1,
					max: 10,
					value: 2,
					slide: function(event, ui) {
						jQuery("#bedrooms").val(ui.value);
					}
				});
				
				jQuery("#bedrooms").val( $("#slider3").slider("value"));
				jQuery("#slider3").slider("pips",{ rest: "label" });



				/** Slider 4
				******************** **/
				var select 		= jQuery("#guests");
				var guestnumber = jQuery("#slider4").slider({
					min: 1,
					max: 10,
					animate: true,
					range: "min",
					value: select[0].selectedIndex + 1,
					slide: function(event, ui) {
						select[0].selectedIndex = ui.value - 1;
					}
				});
				
				jQuery("#guests").change(function() {
					guestnumber.slider("value", this.selectedIndex + 1);
				});
				
				jQuery("#slider4").slider("pips" , {
					rest: false
				});				



				/** Slider 5
				******************** **/
				jQuery("#slider5").slider({
					value:100,
					animate: true,
					min: 0,
					max: 500,
					step: 50,
					range: "min",
					slide: function(event, ui) {
						jQuery("#donation").val(ui.value);
					}
				});
				
				jQuery("#donation").val(jQuery("#slider5").slider("value"));
				jQuery("#donation").blur(function() {
						jQuery("#slider5").slider("value", jQuery(this).val());
				});


				/** Vertical 1
				******************** **/
				var $sliderv = jQuery("#eq > .sliderv-wrapper").each(function() {
					var value = parseInt(jQuery(this).text(), 10);
						jQuery(this).empty().slider({
						value: value,
						range: "min",
						step: 10,
						animate: true,
						orientation: "vertical"
					});
				});
				
				$sliderv.slider("pips", { 
					first: "pip", 
					last: "pip"
				});


				/** Vertical 2
				******************** **/
				var $sliderv1 	= $("#eq2 > .sliderv-wrapper").each(function() {
					var value 	= parseInt(jQuery(this).text(), 10);
						jQuery(this).empty().slider({
						value: value,
						range: "min",
						step: 5,
						animate: true,
						orientation: "vertical"
					});
				});
				
				$sliderv1.slider("pips", { 
					first: "pip", 
					last: "pip"
				});


			});
		});
	});

});