forked from olcxjas-softworks/LarpixClient
Add test mobile ui
This commit is contained in:
parent
d29c5eea74
commit
34ddd1d507
8 changed files with 356 additions and 190 deletions
|
|
@ -53,7 +53,6 @@
|
|||
</button>
|
||||
</sidebarelement>
|
||||
</sidebar>
|
||||
|
||||
<sidebar class="second" id="roomsbar">
|
||||
<roomtopbar>
|
||||
<blah>title.home</blah>
|
||||
|
|
@ -74,7 +73,7 @@
|
|||
</svg>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="sidebar-section-header">
|
||||
<button class="collapse-text-button" id="collapse-groups">
|
||||
<span><blah>title.groups</blah></span>
|
||||
|
|
@ -92,7 +91,7 @@
|
|||
</button>
|
||||
</div>
|
||||
</sidebar>
|
||||
|
||||
|
||||
<roomcontent>
|
||||
<roomtopbar>
|
||||
</roomtopbar>
|
||||
|
|
@ -103,7 +102,7 @@
|
|||
</sidebar>
|
||||
</main>
|
||||
<div id="fixed-context-menu" class="context-menu">
|
||||
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -112,7 +111,7 @@
|
|||
async function start() {
|
||||
updateLoadingStatus("loading.loading");
|
||||
try {
|
||||
switchRoomContent("title.splash", splashScreen, false);
|
||||
switchRoomContent("title.splash", splashScreen, false, "", true);
|
||||
if (host != null)
|
||||
{
|
||||
await updateProtocolAndUrl(host);
|
||||
|
|
@ -121,9 +120,8 @@
|
|||
{
|
||||
await updateProtocolAndUrl(window.location.hostname);
|
||||
}
|
||||
|
||||
sidebarPfp.src = await getAvatarUrl(username);
|
||||
|
||||
|
||||
showAction("Authenticating...", "startauth");
|
||||
let res = await Auth(username, password);
|
||||
clearAction("startauth");
|
||||
|
|
@ -146,12 +144,12 @@
|
|||
|
||||
async function refreshDms() {
|
||||
try {
|
||||
|
||||
|
||||
showAction("Refreshing dms...", "dmrefresh");
|
||||
let res = await fetchEncrypted("user/dm/list", "");
|
||||
console.log(res);
|
||||
clearAction("dmrefresh");
|
||||
|
||||
|
||||
showAction("Refreshing dms...", "dmrefresh");
|
||||
let res = await fetchEncrypted("user/dm/list", "");
|
||||
console.log(res);
|
||||
clearAction("dmrefresh");
|
||||
}
|
||||
catch (e) {
|
||||
clearAction("dmrefresh");
|
||||
|
|
@ -175,11 +173,10 @@
|
|||
showBlahNotification("error:chat.add.failed");
|
||||
}
|
||||
}
|
||||
|
||||
async function createGroup() {
|
||||
|
||||
}
|
||||
|
||||
async function createGroup() {
|
||||
|
||||
}
|
||||
</script>
|
||||
<script src="main.js"></script>
|
||||
<script src="userscript.js"></script>
|
||||
Loading…
Add table
Add a link
Reference in a new issue