Fix and update sd files.
authorasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 11 Oct 2011 15:04:43 +0000 (15:04 +0000)
committerasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 11 Oct 2011 15:04:43 +0000 (15:04 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@5153 38d2e660-2303-0410-9eaa-f027e97ec537

boards/sam3x-ek/examples/sam3x-ek_http_server/sd_data/etc/img/bertos.png
boards/sam3x-ek/examples/sam3x-ek_http_server/sd_data/etc/style.css
boards/sam3x-ek/examples/sam3x-ek_http_server/sd_data/index.htm

index da4fd4bed37148b8b78ebd9bdedee88c88773ed9..3b517c4bfda1b7d136f2b1ae38a8df7472975aae 100644 (file)
Binary files a/boards/sam3x-ek/examples/sam3x-ek_http_server/sd_data/etc/img/bertos.png and b/boards/sam3x-ek/examples/sam3x-ek_http_server/sd_data/etc/img/bertos.png differ
index 80d163ef6b47558073b34700bd229c9f25621121..904b0c127c0fde5b4ac90053a6057e0f777efae3 100644 (file)
@@ -32,7 +32,7 @@ body {
        color:#3E9A3C;
        margin-top: 35px;
        text-shadow:3px 3px 1px #eee;
-       margin-bottom: -10px;
+       margin-bottom: 0px;
 }
 
 #header h3 {
index 14b926fbd83fddd4b458b72ff06cd49573fae0df..bfb2aa070cc26833bccf9578c01d8d2cf78d5478 100644 (file)
                                                $.each(data,function(k,v){
                                                        $('#'+k).text(v);
                                                });
+                                         }
+                                       });
+                               $.ajax({
+                                         url: "get_ledStatus",
+                                         dataType :'json',
+                                         success: function(data){
+                                               $.each(data,function(k,v){
+                                                       
+                                                       if (v == 1) {
+                                                               $('#led-'+k).addClass('led-on').removeClass('led-off').text('ON').append("<span>&nbsp;</span>");
+                                                       } else {
+                                                               $('#led-'+k).addClass('led-off').removeClass('led-on').text('OFF').prepend("<span>&nbsp;</span>");
+                                                       }
+                                                       
+                                               });
                                          }
                                        });
                                
@@ -52,7 +67,7 @@
                                
                                var options = {
                                series: { shadowSize: 0 }, 
-                               yaxis: { min: 0, max: 100 },
+                               yaxis: { min: 0},
                                xaxis: {min:0}
                            };
                                
                                                 temperature_data.push([data['up_time'],data['temp']]);
                                                 
                                                 var o = plot_temperature.getAxes().xaxis.options;
-                                                o.max = Math.max(15,data['up_time']);
-                                                o.min = Math.max(0,(o.max - 15));
+                                                o.max = Math.max(25,data['up_time']);
+                                                o.min = Math.max(0,(o.max - 25));
                                                 plot_temperature.setData([temperature_data]);
-                                        plot_temperature.setupGrid();
-                                        plot_temperature.draw();
-                                        setTimeout(updateStatus, 5000);
+                                                plot_temperature.setupGrid();
+                                                plot_temperature.draw();
+                                                setTimeout(updateStatus, 5000);
                                                        
                                          }
                                        });
                                        <b>Hardware Info:</b><br>
                                        <b>Core name:</b><span id="core_name"></span>
                                        <b>Arch name:</b><span id="arch_name"></span>
-                                       <b>Sram size</b><span id="sram_size"></span>
-                                       <b>Flash size</b><span id="flash_size"></span>
-                                       <b>Mem boot type</b><span id="mem_boot_type"></span>
+                                       <b>Sram size:</b><span id="sram_size"></span>
+                                       <b>Flash size:</b><span id="flash_size"></span>
+                                       <b>Mem boot type:</b><span id="mem_boot_type"></span>
                                </div>
                                <div class="content">
                                        <div class="control">
                                        </div>
                                        <div class="control">
                                                <b>Led status:</b><br/>
-                                               <span id="led-1" name="0" class="led-off"><span>&nbsp;</span>OFF</span></span><span id="led-2" name="1" class="led-off"><span>&nbsp;</span>OFF</span></span><span id="led-3" name="2" class="led-off"><span>&nbsp;</span>OFF</span>
+                                               <span id="led-0" name="0" class="led-off">--</span><span id="led-1" name="1" class="led-off">--</span><span id="led-2" name="2" class="led-off">--</span>
                                        </div>
                                        <div class="control">
                                                <b>Trigger Value:</b><br/>
                                                <div id="temperature-plot"></div>
                                </div>
                                <div id="footer">                                       
-                                               Please visit <a href="www.bertos.org">www.berots.org</a> for more info
+                                               Please visit <a href="http://www.bertos.org">www.berots.org</a> for more info
                                </div>
                        </div>
                </div>