From 2636d30743bd9b06cc1e63800192eb92a5e2a119 Mon Sep 17 00:00:00 2001 From: asyncnomi Date: Mon, 2 Jan 2023 23:45:00 +0100 Subject: [PATCH] add some listeners --- static/index.html | 8 ++++---- static/js/main.js | 10 ++++++++++ 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/static/index.html b/static/index.html index cfabfec..8e96ebc 100644 --- a/static/index.html +++ b/static/index.html @@ -80,11 +80,11 @@ diff --git a/static/js/main.js b/static/js/main.js index a5b9dc4..d43f8c6 100644 --- a/static/js/main.js +++ b/static/js/main.js @@ -73,6 +73,16 @@ $("#logo").click(function () { } }); +$("#admin-prank").click(() => { + get_admin("prank"); +}) +$("#admin-treasure").click(() => { + get_admin("treasure"); +}) +$("#admin-activity").click(() => { + get_admin("activity"); +}) + function get_admin(type) { $("#admin-content").innerHTML = ""; $.ajax({