From d739c2d808f933170b0c1b80f7c6afb0684bdf27 Mon Sep 17 00:00:00 2001 From: Jeroen Domburg Date: Thu, 4 Dec 2014 22:35:58 +0100 Subject: [PATCH] Fixed icon offset values --- html/wifi/wifi.tpl | 4 ++-- user/user_main.c | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/html/wifi/wifi.tpl b/html/wifi/wifi.tpl index 39a8e3c..e4d19a8 100644 --- a/html/wifi/wifi.tpl +++ b/html/wifi/wifi.tpl @@ -11,7 +11,7 @@ function createInputForAp(ap) { var div=document.createElement("div"); div.id="apdiv"; var rssi=document.createElement("div"); - var rssiVal=Math.floor(ap.rssi/5)*32; + var rssiVal=-Math.floor(ap.rssi/5)*32; rssi.className="icon"; rssi.style.backgroundPosition="0px "+rssiVal+"px"; var encrypt=document.createElement("div"); @@ -19,7 +19,7 @@ function createInputForAp(ap) { if (ap.enc=="0") encVal="0"; //open if (ap.enc=="1") encVal="-32"; //wep encrypt.className="icon"; - encrypt.style.backgroundPosition="32px "+encVal+"px"; + encrypt.style.backgroundPosition="-32px "+encVal+"px"; var input=document.createElement("input"); input.type="radio"; input.name="essid"; diff --git a/user/user_main.c b/user/user_main.c index 95fd68e..9b765e4 100644 --- a/user/user_main.c +++ b/user/user_main.c @@ -43,7 +43,6 @@ HttpdBuiltInUrl builtInUrls[]={ void user_init(void) { stdoutInit(); - os_printf("HTTPD EXAMPLE START\n"); ioInit(); httpdInit(builtInUrls, 80); os_printf("\nReady\n");