diff --git a/libresapi/src/webui-src/app/_chat.sass b/libresapi/src/webui-src/app/_chat.sass index c0c46007a..f541f2f45 100644 --- a/libresapi/src/webui-src/app/_chat.sass +++ b/libresapi/src/webui-src/app/_chat.sass @@ -68,4 +68,4 @@ &.text padding-left: $author_width top: 0px - left: $author_width \ No newline at end of file + left: $author_width diff --git a/libresapi/src/webui-src/app/accountselect.js b/libresapi/src/webui-src/app/accountselect.js index 0aecff2e4..3def5da58 100644 --- a/libresapi/src/webui-src/app/accountselect.js +++ b/libresapi/src/webui-src/app/accountselect.js @@ -27,12 +27,12 @@ module.exports = {view: function(){ if (curraccount == null) { accountMap.clear(); return m("div", [ - m("h2","accounts:"), + m("h2","login:"), m("hr"), accounts.map(function(account){ accountMap.set(account.id,account); return [ - m("div", {onclick: m.withAttr("account", selAccount), account:account.id }, account.location + " (" + account.name + ")"), + m("div.btn2", {onclick: m.withAttr("account", selAccount), account:account.id }, account.location + " (" + account.name + ")"), m("br") ] })]); diff --git a/libresapi/src/webui-src/app/main.js b/libresapi/src/webui-src/app/main.js index 39273fba5..bccbfd616 100644 --- a/libresapi/src/webui-src/app/main.js +++ b/libresapi/src/webui-src/app/main.js @@ -23,20 +23,20 @@ function Page(content, runst){ var needpasswd = rs("control/password"); //console.log("runstate: " + (runstate === undefined ? runstate : runstate.runstate)); if(runstate === undefined){ - return m("div", "waiting_server ... "); + return m("h2", "waiting_server ... "); } else if (runstate.runstate == null){ - return m("div", "server down"); + return m("h2", "server down"); } else if (needpasswd != undefined && needpasswd.want_password === true){ return m("div",[ - m("div","password required"), - m("div",needpasswd.key_name), + m("h2","password required"), + m("h3",needpasswd.key_name), m("input",{type:"password", onchange:m.withAttr("value", setPasswd)}), m("br"), - m("button",{onclick: function(){sendPassword(needpasswd);}},"send password"), + m("input[type=button][value=send password]",{onclick: function(){sendPassword(needpasswd);}}), ]); } else { if ("waiting_init|waiting_startup".match(runstate.runstate)) { - return m("div","server starting ...") + return m("h2","server starting ...") } else if("waiting_account_select|running_ok*") { if (runst === undefined || runst.match(runstate.runstate)) { return m("div", [ diff --git a/libresapi/src/webui-src/app/search.js b/libresapi/src/webui-src/app/search.js index 7a6e5313f..0e7f24308 100644 --- a/libresapi/src/webui-src/app/search.js +++ b/libresapi/src/webui-src/app/search.js @@ -36,7 +36,7 @@ module.exports = { } } return m("div",[ - m("p","turtle file search"), + m("h2","turtle file search"), m("div", [ m("input[type=text]", {onchange:m.withAttr("value", updateText)}), m("input[type=button][value=search]",{onclick:dosearch})