IamFrozenFruit
Add Light Mode (#72)
ef571a5 unverified
raw
history blame
4.69 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0 maximum-scale=1.0" />
<meta name="description" content="A conversational AI system that listens, learns, and challenges" />
<meta property="og:title" content="ChatGPT" />
<meta property="og:image" content="https://openai.com/content/images/2022/11/ChatGPT.jpg" />
<meta
property="og:description"
content="A conversational AI system that listens, learns, and challenges" />
<meta property="og:url" content="https://chat.acy.dev" />
<link rel="stylesheet" href="/assets/css/style.css" />
<link rel="apple-touch-icon" sizes="180x180" href="/assets/img/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="/assets/img/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/assets/img/favicon-16x16.png" />
<link rel="manifest" href="/assets/img/site.webmanifest" />
<link
rel="stylesheet"
href="//cdn.jsdelivr.net/gh/highlightjs/cdn-release@latest/build/styles/base16/dracula.min.css" />
<title>FreeGPT</title>
</head>
<body>
<div class="main-container">
<div class="box sidebar">
<div class="top">
<button class="button" onclick="new_conversation()">
<i class="fa-regular fa-plus"></i>
<span>New Conversation</span>
</button>
<div class="spinner"></div>
</div>
<div class="sidebar-footer">
<button class="button" onclick="delete_conversations()">
<i class="fa-regular fa-trash"></i>
<span>Clear Conversations</span>
</button>
<a class="info" href="https://github.com/ramonvc/gptfree-jailbreak-webui" target="_blank">
<i class="fa-brands fa-github"></i>
<span class="conversation-title">
Author: @ramonvc<br />
Version: 0.0.9-Alpha<br />
</span>
</a>
</div>
</div>
<div class="conversation">
<div class="stop-generating stop-generating-hidden">
<button class="button" id="cancelButton">
<span>Stop Generating</span>
</button>
</div>
<div class="box" id="messages"></div>
<div class="user-input">
<div class="box input-box">
<textarea
id="message-input"
placeholder="Ask a question"
cols="30"
rows="10"
style="white-space: pre-wrap"></textarea>
<div id="send-button">
<i class="fa-regular fa-paper-plane-top"></i>
</div>
</div>
</div>
<div>
<div class="options-container">
<div class="buttons">
<div class="field">
<select class="dropdown" name="model" id="model">
<option value="gpt-3.5-turbo">GPT-3.5</option>
<option value="gpt-3.5-turbo-0613">GPT-3.5-0613</option>
<option value="gpt-3.5-turbo-16k">GPT-3.5-turbo-16k</option>
<option value="gpt-3.5-turbo-16k-0613" selected>GPT-3.5-turbo-16k-0613</option>
<option value="gpt-4" disabled>GPT-4 (offline)</option>
</select>
</div>
<div class="field">
<select class="dropdown" name="jailbreak" id="jailbreak">
<option value="default" selected>Default</option>
<option value="gpt-dan-11.0">DAN</option>
<option value="gpt-evil">Evil</option>
</select>
</div>
</div>
<div class="field checkbox">
<input type="checkbox" id="switch" />
<label for="switch"></label>
<span>Web Access</span>
</div>
<div class="field checkbox">
<input type="checkbox" id="lightmode" />
<label for="lightmode"></label>
<span>Light Mode</span>
</div>
</div>
</div>
</div>
</div>
<div class="mobile-sidebar">
<i class="fa-solid fa-bars"></i>
</div>
<!-- scripts -->
<script>
window.conversation_id = "{{ chat_id }}";
</script>
<script src="/assets/js/icons.js"></script>
<script src="/assets/js/chat.js" defer></script>
<script src="https://cdn.jsdelivr.net/npm/markdown-it@latest/dist/markdown-it.min.js"></script>
<script src="/assets/js/highlight.min.js"></script>
<script src="/assets/js/highlightjs-copy.min.js"></script>
<script>
var lightmode = document.getElementById("lightmode");
var styleLink = document.createElement("link");
styleLink.rel = "stylesheet";
styleLink.href = "/assets/css/global.css";
document.head.appendChild(styleLink);
lightmode.addEventListener("change", function() {
if (lightmode.checked) {
styleLink.href = "/assets/css/global-light.css";
} else {
styleLink.href = "/assets/css/global.css";
}
});
</script>
</body>
</html>