diff --git a/frontend/Web/communication.js b/frontend/Web/communication.js index 521e9aa..6c12c84 100644 --- a/frontend/Web/communication.js +++ b/frontend/Web/communication.js @@ -84,12 +84,16 @@ async function Request(req) async function GetMyName() { + session_token=localStorage.getItem("session_token"); + outhentication_key=localStorage.getItem("outhentication_key"); let ret = await RawRequest("#Who "+session_token+" InfoQuery "+outhentication_key); return ret.split('\n')[1].split(' ')[0]; } async function GetMyPrivilege() { + session_token=localStorage.getItem("session_token"); + outhentication_key=localStorage.getItem("outhentication_key"); let ret = await RawRequest("#Who "+session_token+" InfoQuery "+outhentication_key); return parseInt(ret.split('\n')[1].split(' ')[1]); } diff --git a/frontend/Web/index.html b/frontend/Web/index.html index c020ac6..4cf2125 100644 --- a/frontend/Web/index.html +++ b/frontend/Web/index.html @@ -90,7 +90,7 @@ } .main-content { - height: calc(100vh - 40px); + height: 80vh; display: flex; } @@ -98,6 +98,7 @@ width: 200px; background-color: #f4f4f4; padding: 20px; + height: 80vh; } nav a { @@ -130,7 +131,7 @@