some fixes

This commit is contained in:
2023-06-28 02:57:57 +05:00
parent 0b1b498b7d
commit b8725f33af
11 changed files with 366 additions and 174 deletions

View File

@ -9,9 +9,11 @@
}
#top_panel_right{
float: right;
display: flex;
}
#top_panel_left{
float: left;
display: flex;
}
/* button{
/* margin-inline: 5px; */
@ -24,7 +26,8 @@
let right = document.getElementById("top_panel_right");
let left = document.getElementById("top_panel_left");
left.innerHTML += res["login"];
if(document.title != "main") left.innerHTML += `<button onclick="goto('/');">main page</button>`;
left.innerHTML += `<div id="user_name">${res["login"]}</div>`;
if (res["admin"] == true){
right.innerHTML += "<button>admin panel</button>";