mirror of
				https://github.com/s00500/ESPUI.git
				synced 2025-10-30 20:53:24 +00:00 
			
		
		
		
	Adding all the rest for sliderfeature
This commit is contained in:
		
							
								
								
									
										8
									
								
								examples/gui/data/js/controls.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										8
									
								
								examples/gui/data/js/controls.js
									
									
									
									
										vendored
									
									
								
							| @@ -218,7 +218,7 @@ function start() { | ||||
|                 break; | ||||
|             case UI_SLIDER: | ||||
|                 $('#row').append( | ||||
|                     "<div class='two columns card tcenter " + colorClass(data.color) + "'>" + | ||||
|                     "<div class='two columns card tcenter card-slider " + colorClass(data.color) + "'>" + | ||||
|                     "<h5 id='" + data.id + "'>" + data.label + "</h5><hr />" + | ||||
|                     "<div id='sl" + data.id + "' class='rkmd-slider slider-discrete slider-" + colorClass(data.color) + "'>" + | ||||
|                     "<input type='range' min='0' max='100' value='" + data.value + "'>" + | ||||
| @@ -233,7 +233,7 @@ function start() { | ||||
|                 break; | ||||
|  | ||||
|             case UPDATE_SLIDER: | ||||
|                 slider(data.id, data.value); | ||||
|                 slider_move($('#sl'+data.id), data.value ,'100', false); | ||||
|                 break; | ||||
|             default: | ||||
|                 console.error('Unknown type or event'); | ||||
| @@ -274,10 +274,6 @@ function padclick(type, number, isdown) { | ||||
|     } | ||||
| } | ||||
|  | ||||
| function slider(number, value) { | ||||
|   console.log('Should update slider: ' + value); | ||||
| } | ||||
|  | ||||
| function switcher(number, state) { | ||||
|     if (state == null) { | ||||
|         if ($('#s' + number).is(':checked')) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user