mirror of
https://github.com/KeyZox71/knl_meowscendence.git
synced 2026-01-01 06:06:41 +01:00
Merge branch 'front' of github.com:keyzox71/knl_meowscendence into front
This commit is contained in:
@ -1,6 +1,8 @@
|
||||
import { oneko } from "./oneko.ts";
|
||||
import ProfileMenu from "./views/ProfileMenu.ts";
|
||||
import FriendsMenu from "./views/Friends.ts";
|
||||
let profile_view = new ProfileMenu;
|
||||
let friends_view = new FriendsMenu;
|
||||
|
||||
export async function isLogged(): Promise<boolean> {
|
||||
let uuid_req = await fetch("http://localhost:3001/me", {
|
||||
@ -78,6 +80,10 @@ document.addEventListener("DOMContentLoaded", () => {
|
||||
profile_view.open = false;
|
||||
document.getElementById("taskbar-menu").innerHTML = "";
|
||||
}
|
||||
if (e.target.matches("#friends-btn")) {
|
||||
friends_view.open = !friends_view.open;
|
||||
friends_view.run();
|
||||
}
|
||||
if (e.target.matches("[data-link]")) {
|
||||
e.preventDefault();
|
||||
navigationManager(e.target.href);
|
||||
@ -96,7 +102,10 @@ document.addEventListener("DOMContentLoaded", () => {
|
||||
router();
|
||||
});
|
||||
|
||||
function updateClock() {
|
||||
oneko();
|
||||
|
||||
function updateClock()
|
||||
{
|
||||
const days = ['sun', 'mon', 'tue', 'wed', 'thu', 'fri', 'sat'];
|
||||
const months = ['jan', 'feb', 'mar', 'apr', 'may', 'jun', 'jul', 'aug', 'sep', 'oct', 'nov', 'dec'];
|
||||
const clock = document.getElementById("taskbar-clock");
|
||||
|
||||
Reference in New Issue
Block a user