diff --git a/main.c b/main.c index 26cdc18..53da143 100644 --- a/main.c +++ b/main.c @@ -1056,15 +1056,16 @@ static void fn(struct mg_connection *c, int ev, void *ev_data) { H("
v %s
", sm_ver); else H(""); - H("", + H("", sm_running ? "stop" : "start", sm_running ? "stop" : "start", + sm_running ? "smCtrl()" : "smCtrlPick()", sm_running ? "Stop" : "Start"); /* ELF selector next to Start button, hidden when SM is running */ if(!sm_running){ SMPrefs _ep; read_prefs(&_ep); char elfs[SM_MAX_ELFS][SM_EPATH]; int ec=sm_find_elfs(elfs); - H(""); H("",L(LS_SELECT_ELF)); for(int ei=0;ei1024&&n<65535)fetch('/api/prefs/save',{method:'POST',headers:{'Content-Type':'application/x-www-form-urlencoded'},body:'http_port='+n});}" "function saveIconFront(v){fetch('/api/prefs/save',{method:'POST',headers:{'Content-Type':'application/x-www-form-urlencoded'},body:'icon_always_front='+(v?1:0)});}" "function onAS(willOn){"