Fix potentiometer bar.
authorasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 17 Oct 2011 17:20:18 +0000 (17:20 +0000)
committerasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 17 Oct 2011 17:20:18 +0000 (17:20 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@5166 38d2e660-2303-0410-9eaa-f027e97ec537

boards/sam3x-ek/examples/sam3x-ek_http_server/sd_data/index.htm

index 551a7e38916b4ffb448b972c86409ec0a9e834f6..5879008abe0b040491714f7ba02fea79dabc5ccc 100644 (file)
@@ -82,8 +82,8 @@
                                          dataType :'json',
                                          success: function(data){
 
-                                                $('#trigger-value').width(200*(parseFloat(data['volt'])/3.5));
-                                                $('#uptime').text(data['up_time']+' sec');
+                                                $('#potentiometer').width(200*(parseInt(data['volt'])/4096));
+                                                $('#uptime').text(data['up_time'] +' sec');
                                                 $('#temperature').text(data['temp']+' °C');
                                                 temperature_data.push([data['up_time'],data['temp']]);
 
                                        </div>
                                        <div class="control">
                                                <b>Potentiometer Value:</b><br/>
-                                               <span class="trigger"><span id="trigger-value" >&nbsp;</span></span>
+                                               <span class="trigger"><span id="potentiometer">&nbsp;</span></span>
                                        </div>
                                </div>
                                <div class="content">