forked from Belupeti/scottgpt
Add basic auth
This commit is contained in:
@@ -7,13 +7,14 @@
|
||||
<link rel="stylesheet" href="/resources/style.css">
|
||||
|
||||
</head>
|
||||
<body onload="javascript:init()">
|
||||
<body onload="javascript:init()" style="margin: 0; height: 100%; overflow: hidden;">
|
||||
|
||||
<div class="main-flexbox">
|
||||
|
||||
<header class="navbar">
|
||||
<a href="https://sc0tt.org/" style="float: left" target="_blank">Sc0tt főoldal</a>
|
||||
<a href="/about" style="float: left">About</a>
|
||||
<button onclick="genZ()" style="float: left;">Gen Z compatible site</button>
|
||||
|
||||
<img src="resources/logo.png" alt=logo" style="float: right;">
|
||||
|
||||
@@ -24,9 +25,16 @@
|
||||
</a>
|
||||
</header>
|
||||
|
||||
<iframe width="420" height="315"
|
||||
src="https://www.youtube.com/embed/mn-Tlb_wfjc"
|
||||
id="funniez"
|
||||
style="display: none;">
|
||||
</iframe>
|
||||
|
||||
<div id="messages" class="messages">
|
||||
|
||||
</div>
|
||||
|
||||
<footer>
|
||||
<div class="textbox">
|
||||
<input class="text_input" name="valami" type="text" id="promptText" placeholder="Kérdezz az OSI modellről... vagy idk...">
|
||||
@@ -36,9 +44,21 @@
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<script>
|
||||
let id;
|
||||
|
||||
|
||||
function genZ() {
|
||||
var x = document.getElementById("funniez");
|
||||
if (x.style.display === "none") {
|
||||
x.style.display = "block";
|
||||
} else {
|
||||
x.style.display = "none";
|
||||
}
|
||||
}
|
||||
|
||||
function sleep(ms) {
|
||||
return new Promise(resolve => setTimeout(resolve, ms));
|
||||
}
|
||||
@@ -113,7 +133,7 @@
|
||||
}
|
||||
});
|
||||
|
||||
//document.getElementById("promptText").value = "";
|
||||
document.getElementById("promptText").value = "";
|
||||
|
||||
await sleep(10);
|
||||
fetch_data("messages", false);
|
||||
|
||||
Reference in New Issue
Block a user