From 9f784f5c0aaf6c38e553545e480e9a64aeb855f9 Mon Sep 17 00:00:00 2001 From: Raven Scott Date: Wed, 2 Oct 2024 05:10:03 -0400 Subject: [PATCH] Add injected Menu Items --- public/js/chat.js | 14 +++++++++++++- views/chat.ejs | 34 ++++++++++++++++++++++++++++++---- 2 files changed, 43 insertions(+), 5 deletions(-) diff --git a/public/js/chat.js b/public/js/chat.js index 395917a..952cf65 100644 --- a/public/js/chat.js +++ b/public/js/chat.js @@ -198,4 +198,16 @@ async function resetChat(displaySuccessMessage = true) { // Resets the chat on page load without displaying the success message document.addEventListener('DOMContentLoaded', function () { resetChat(false); -}); \ No newline at end of file +}); + +function openGpuStats() { + window.open('https://chat.x64.world/smi.html', 'gpuStatsWindow', 'width=800,height=600'); +} + +function openLiveLog() { + window.open('https://llama-live-log.x64.world/', 'liveLogWindow', 'width=600,height=600'); +} + +function openTop() { + window.open('https://ai-top.x64.world/', 'liveLogGtopWindow', 'width=800,height=600'); +} diff --git a/views/chat.ejs b/views/chat.ejs index 8ab35ee..46b40d5 100644 --- a/views/chat.ejs +++ b/views/chat.ejs @@ -24,7 +24,14 @@ - + @@ -44,14 +51,32 @@ + @@ -67,6 +92,7 @@
+