hybrid
This commit is contained in:
1 parent
e1c88ac774
commit
f746eaa220
4 files changed
+18
-23
No files matched your search
@@ -50,6 +50,8 @@
|
||||
new QRCode(e, {
|
||||
text: a,
|
||||
correctLevel: QRCode.CorrectLevel.L,
|
||||
width: 256,
|
||||
height: 256,
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
@@ -4,11 +4,6 @@
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Queue dump type shit</title>
|
||||
<style>
|
||||
li {
|
||||
width: min-content;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
@@ -81,7 +76,7 @@
|
||||
};
|
||||
|
||||
n.addEventListener("change", changeHandler);
|
||||
|
||||
|
||||
/** @type {HTMLFormElement} */
|
||||
const c = document.getElementById("c");
|
||||
c.addEventListener("submit", async (e) => {
|
||||
|
||||
+12
-17
@@ -12,28 +12,23 @@
|
||||
<body>
|
||||
<form method="POST" action="/queuein">
|
||||
<label for="lines">in:</label>
|
||||
<textarea
|
||||
id="l"
|
||||
rows="20"
|
||||
cols="100"
|
||||
style="min-width: 20%; min-height: 20dvh"
|
||||
name="lines"
|
||||
></textarea>
|
||||
<textarea id="lines" rows="20" cols="100" name="lines"></textarea>
|
||||
<input type="submit" value="ahh" />
|
||||
</form>
|
||||
<script>
|
||||
// lifted from google search ai
|
||||
/**@type {HTMLTextAreaElement} */
|
||||
(
|
||||
// lifted from google search ai
|
||||
document.getElementById("l")
|
||||
).addEventListener("keydown", function (e) {
|
||||
// Check for Ctrl+Enter (Windows/Linux) or Command+Enter (Mac)
|
||||
if ((e.ctrlKey || e.metaKey) && e.key === "Enter") {
|
||||
e.preventDefault(); // Prevent the default newline character
|
||||
// Submit the form associated with this textarea
|
||||
this.form.submit();
|
||||
(document.getElementById("lines")).addEventListener(
|
||||
"keydown",
|
||||
function (e) {
|
||||
// Check for Ctrl+Enter (Windows/Linux) or Command+Enter (Mac)
|
||||
if ((e.ctrlKey || e.metaKey) && e.key === "Enter") {
|
||||
e.preventDefault(); // Prevent the default newline character
|
||||
// Submit the form associated with this textarea
|
||||
this.form.submit();
|
||||
}
|
||||
}
|
||||
});
|
||||
);
|
||||
</script>
|
||||
{% from "macros.html" import qrcode_queue %} {% if queue_items %}
|
||||
<p>total: {{ queue_items|length }}</p>
|
||||
|
||||
Reference in new issue
Block a user